MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_char_bytes_to_utf8_string

Function __hxcpp_char_bytes_to_utf8_string

src/String.cpp:589–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587
588
589String __hxcpp_char_bytes_to_utf8_string(String &inBytes)
590{
591 #ifdef HX_SMART_STRINGS
592 // This does not really make much sense
593 return inBytes;
594 #else
595 int len = inBytes.length;
596 char *result = TConvertToUTF8((unsigned char *)inBytes.__s,&len,0,true);
597 return String(result,len);
598 #endif
599}
600
601
602String __hxcpp_utf8_string_to_char_bytes(String &inUTF8)

Callers

nothing calls this directly

Calls 2

TConvertToUTF8Function · 0.85
StringClass · 0.50

Tested by

no test coverage detected