From dab7348da8c1167be810d265ae581e365e06d36b Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Thu, 5 Dec 2013 04:56:02 +0600 Subject: fs/Traits.hxx: add PathTraitsUTF8::GetLength for consistency --- src/fs/Traits.hxx | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.3