Codechange: add std::string variant of Utf8StringLength

This commit is contained in:
rubidium42
2021-05-29 16:02:53 +02:00
committed by rubidium42
parent 0125ba82e8
commit b4aedef848
2 changed files with 11 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ static inline const char *Utf8PrevChar(const char *s)
}
size_t Utf8StringLength(const char *s);
size_t Utf8StringLength(const std::string &str);
/**
* Is the given character a lead surrogate code point?