aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.