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

Method charAt

src/String.cpp:1472–1482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470}
1471
1472String String::charAt( int at ) const
1473{
1474 if (at<0 || at>=length)
1475 return emptyString;
1476
1477 #ifdef HX_SMART_STRINGS
1478 if (isUTF16Encoded())
1479 return fromCharCode(__w[at]);
1480 #endif
1481 return fromCharCode(__s[at]);
1482}
1483
1484void __hxcpp_bytes_of_string(Array<unsigned char> &outBytes,const String &inString)
1485{

Callers 3

runStringMethod · 0.80
runObjectMethod · 0.80
runCharAtMethod · 0.80

Calls 1

isUTF16EncodedFunction · 0.85

Tested by

no test coverage detected