| 1396 | |
| 1397 | |
| 1398 | Dynamic 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 | |
| 1412 | String String::fromCharCode( int c ) |
| 1413 | { |
no test coverage detected