| 371 | } |
| 372 | |
| 373 | hx::StringEncoding hxs_encoding(const String &str) |
| 374 | { |
| 375 | #ifdef HX_SMART_STRINGS |
| 376 | if (str.isUTF16Encoded()) |
| 377 | return hx::StringUtf16; |
| 378 | else |
| 379 | return hx::StringAscii; |
| 380 | #else |
| 381 | return hx::StringUtf8; |
| 382 | #endif |
| 383 | } |
| 384 | |
| 385 | |
| 386 | wchar_t * val_dup_wstring(value inVal) |