Commit 3a183f86 authored by Denis Krjuchkov's avatar Denis Krjuchkov

fs/Traits.hxx: add GetLengthFS()

There is no GetLengthUTF8() because strlen or std::string::size() could be used instead.
parent 6c582882
......@@ -29,6 +29,7 @@
#include <string>
#include <string.h>
#include <assert.h>
/**
......@@ -79,6 +80,11 @@ struct PathTraits {
return IsSeparatorUTF8(*p);
}
gcc_pure
static size_t GetLengthFS(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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment