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

Method utf8_str

src/String.cpp:1604–1615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602
1603
1604const char * String::utf8_str(hx::IStringAlloc *inBuffer,bool throwInvalid, int *byteLength) const
1605{
1606 #ifdef HX_SMART_STRINGS
1607 if (isUTF16Encoded())
1608 return TConvertToUTF8(__w,byteLength,inBuffer,throwInvalid);
1609 #endif
1610 if (byteLength != 0)
1611 {
1612 *byteLength = length;
1613 }
1614 return __s;
1615}
1616
1617const char *String::ascii_substr(hx::IStringAlloc *inBuffer,int start, int length) const
1618{

Callers 15

__hxcpp_set_float_formatFunction · 0.80
__ToDoubleMethod · 0.80
__ToIntMethod · 0.80
__hxcpp_tracy_plotFunction · 0.80
__hxcpp_tracy_messageFunction · 0.80
val_dup_stringFunction · 0.80
hxs_utf8Function · 0.80
InitFunction · 0.80
__traceFunction · 0.80

Calls 6

isUTF16EncodedFunction · 0.85
TConvertToUTF8Function · 0.85
Char16AdvanceFunction · 0.85
UTF8BytesFunction · 0.85
UTF8EncodeAdvanceFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected