summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-12-05 04:56:02 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-12-05 12:35:28 +0600
commitdab7348da8c1167be810d265ae581e365e06d36b (patch)
tree5c65f2542234a6b72370fcdeaa430304f1ab724d /src/fs
parent378e8a6224c76b2f7d70c1ff718f8a911c4b34b9 (diff)
fs/Traits.hxx: add PathTraitsUTF8::GetLength for consistency
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/Traits.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx
index bd65f53bf..761db0704 100644
--- a/src/fs/Traits.hxx
+++ b/src/fs/Traits.hxx
@@ -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.