| 1470 | } |
| 1471 | |
| 1472 | String 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 | |
| 1484 | void __hxcpp_bytes_of_string(Array<unsigned char> &outBytes,const String &inString) |
| 1485 | { |
no test coverage detected