MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetStringSize

Function GetStringSize

src/openrct2/core/UTF8.cpp:106–109  ·  view source on GitHub ↗

* Return the number of bytes (including the null terminator) in the given UTF-8 string. */

Source from the content-addressed store, hash-verified

104 * Return the number of bytes (including the null terminator) in the given UTF-8 string.
105 */
106size_t GetStringSize(const utf8* text)
107{
108 return GetStringEnd(text) - text + 1;
109}

Callers 1

onDrawMethod · 0.85

Calls 1

GetStringEndFunction · 0.85

Tested by

no test coverage detected