| 1602 | |
| 1603 | |
| 1604 | const 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 | |
| 1617 | const char *String::ascii_substr(hx::IStringAlloc *inBuffer,int start, int length) const |
| 1618 | { |
no test coverage detected