summaryrefslogtreecommitdiff
path: root/src/string_func.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-29 16:02:53 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-29 19:02:18 +0200
commitb4aedef848822649d3f7a045504eb2a9870b4b7e (patch)
treedcade3be2cc07f795b1b56e658437c356b814c6b /src/string_func.h
parent0125ba82e8b94461894a9628dea6552c0bbfa38d (diff)
downloadopenttd-b4aedef848822649d3f7a045504eb2a9870b4b7e.tar.xz
Codechange: add std::string variant of Utf8StringLength
Diffstat (limited to 'src/string_func.h')
-rw-r--r--src/string_func.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string_func.h b/src/string_func.h
index 0988f01b3..2e258fbd2 100644
--- a/src/string_func.h
+++ b/src/string_func.h
@@ -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?