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

Method charCodeAt

src/String.cpp:1398–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396
1397
1398Dynamic String::charCodeAt(int inPos) const
1399{
1400 if (inPos<0 || inPos>=length)
1401 return null();
1402
1403 #ifdef HX_SMART_STRINGS
1404 if (isUTF16Encoded())
1405 {
1406 return (int)__w[inPos];
1407 }
1408 #endif
1409 return (int)(((unsigned char *)__s)[inPos]);
1410}
1411
1412String String::fromCharCode( int c )
1413{

Callers 3

runIntMethod · 0.80
runObjectMethod · 0.80
runCharCodeAtMethod · 0.80

Calls 2

isUTF16EncodedFunction · 0.85
nullClass · 0.50

Tested by

no test coverage detected