MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / PutUtf8

Method PutUtf8

src/core/string_builder.cpp:113–117  ·  view source on GitHub ↗

* Append UTF.8 char. */

Source from the content-addressed store, hash-verified

111 * Append UTF.8 char.
112 */
113void BaseStringBuilder::PutUtf8(char32_t c)
114{
115 auto [buf, len] = EncodeUtf8(c);
116 this->PutBuffer({buf, len});
117}
118
119/**
120 * Append buffer.

Callers 15

GetEncodedStringWithArgsFunction · 0.80
operator()Method · 0.80
FormatGenericCurrencyFunction · 0.80
FormatStringFunction · 0.80
StationGetSpecialStringFunction · 0.80
CheckForMissingGlyphsFunction · 0.80
SetFilterTermMethod · 0.80
FlushMethod · 0.80
TranslateTTDPatchCodesFunction · 0.80
StrMakeValidFunction · 0.80
IConsoleAliasExecFunction · 0.80

Calls 2

EncodeUtf8Function · 0.85
PutBufferMethod · 0.45

Tested by 1

ComposePartFunction · 0.64