diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 04:56:02 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 12:35:28 +0600 |
commit | dab7348da8c1167be810d265ae581e365e06d36b (patch) | |
tree | 5c65f2542234a6b72370fcdeaa430304f1ab724d /src | |
parent | 378e8a6224c76b2f7d70c1ff718f8a911c4b34b9 (diff) | |
download | mpd-dab7348da8c1167be810d265ae581e365e06d36b.tar.gz mpd-dab7348da8c1167be810d265ae581e365e06d36b.tar.xz mpd-dab7348da8c1167be810d265ae581e365e06d36b.zip |
fs/Traits.hxx: add PathTraitsUTF8::GetLength for consistency
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/Traits.hxx | 5 |
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. |