fs/Traits.hxx: add PathTraitsUTF8::GetLength for consistency

This commit is contained in:
Denis Krjuchkov 2013-12-05 04:56:02 +06:00
parent 378e8a6224
commit dab7348da8

View File

@ -140,6 +140,11 @@ struct PathTraitsUTF8 {
return IsSeparator(*p);
}
gcc_pure gcc_nonnull_all
static size_t GetLength(const_pointer p) {
return strlen(p);
}
/**
* Determine the "base" file name of the given UTF-8 path.
* The return value points inside the given string.