| 169 | |
| 170 | |
| 171 | HxString addStrings(HxString s0, HxString s1) |
| 172 | { |
| 173 | if (hxs_encoding(s0)!=hx::StringUtf16 && hxs_encoding(s1)!=hx::StringUtf16) |
| 174 | { |
| 175 | std::string w0 = hxs_utf8(s0,0); |
| 176 | std::string w1 = hxs_utf8(s1,0); |
| 177 | std::string result = w0+w1; |
| 178 | return alloc_hxs_utf8( result.c_str(), result.size() ); |
| 179 | } |
| 180 | std::wstring w0 = hxs_wchar(s0,0); |
| 181 | std::wstring w1 = hxs_wchar(s1,0); |
| 182 | std::wstring result = w0+w1; |
| 183 | return alloc_hxs_wchar( result.c_str(), result.size() ); |
| 184 | } |
| 185 | DEFINE_PRIME2(addStrings); |
| 186 | |
| 187 |
nothing calls this directly
no test coverage detected