MCPcopy Create free account
hub / github.com/MoeMod/CSMoE / PopulateUTF8

Method PopulateUTF8

SourceSDK/public/tier1/strtools.h:1035–1061  ·  view source on GitHub ↗

ensure we have done any conversion work required to farm out a UTF-8 encoded string. We perform two heap allocs here; the first one is the worst-case (four bytes per Unicode code point). This is usually quite pessimistic, so we perform a second allocation that's just the size we need.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

V_wcslenFunction · 0.85
V_strlenFunction · 0.85
V_strncpyFunction · 0.85

Tested by

no test coverage detected