| 587 | |
| 588 | |
| 589 | String __hxcpp_char_bytes_to_utf8_string(String &inBytes) |
| 590 | { |
| 591 | #ifdef HX_SMART_STRINGS |
| 592 | // This does not really make much sense |
| 593 | return inBytes; |
| 594 | #else |
| 595 | int len = inBytes.length; |
| 596 | char *result = TConvertToUTF8((unsigned char *)inBytes.__s,&len,0,true); |
| 597 | return String(result,len); |
| 598 | #endif |
| 599 | } |
| 600 | |
| 601 | |
| 602 | String __hxcpp_utf8_string_to_char_bytes(String &inUTF8) |
nothing calls this directly
no test coverage detected