@@ -203,7 +203,6 @@ TEST(bug_416116)
203
203
}
204
204
205
205
// TODO: re-enable some of these for Linux, TFS#535122.
206
- #ifdef _MS_WINDOWS
207
206
208
207
TEST (byte_ptr_parsing_array)
209
208
{
@@ -238,7 +237,7 @@ TEST(byte_ptr_parsing_object)
238
237
TEST (Konnichiwa)
239
238
{
240
239
utility::string_t ws = U (" \" こんにちは\" " );
241
- std::string s = utf16_to_utf8 (ws);
240
+ std::string s = to_utf8string (ws);
242
241
243
242
std::stringstream ss;
244
243
ss << s;
@@ -254,14 +253,14 @@ TEST(Konnichiwa)
254
253
255
254
TEST (Russian)
256
255
{
257
- std::wstring ws = L " { \" results\" : [ { \" id\" : 272655310, \" name\" : \" Андрей Иванов\" } ] }" ;
256
+ utility:: string_t ws = U ( " { \" results\" : [ { \" id\" : 272655310, \" name\" : \" Андрей Иванов\" } ] }" ) ;
258
257
259
258
json::value v1 = json::value::parse (ws);
260
259
auto s2 = v1.to_string ();
261
260
262
261
VERIFY_ARE_EQUAL (s2, ws);
263
262
264
- std::string s = utf16_to_utf8 (ws);
263
+ std::string s = to_utf8string (ws);
265
264
266
265
std::stringstream ss;
267
266
ss << s;
@@ -271,8 +270,6 @@ TEST(Russian)
271
270
VERIFY_ARE_EQUAL (s3, ws);
272
271
}
273
272
274
- #endif // _MS_WINDOWS
275
-
276
273
utility::string_t make_deep_json_string (size_t depth)
277
274
{
278
275
utility::string_t strval;
@@ -302,4 +299,4 @@ TEST(deeply_nested)
302
299
303
300
} // SUITE(parsing_tests)
304
301
305
- }}}
302
+ }}}
0 commit comments