From 04629118dbde33fdedfe489119f34912f8e7c124 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Tue, 6 Mar 2012 08:49:58 +0000 Subject: tests: Android compilation fixes git-svn-id: http://pugixml.googlecode.com/svn/trunk@846 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_unicode.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_unicode.cpp') diff --git a/tests/test_unicode.cpp b/tests/test_unicode.cpp index c1a5533..1902e36 100644 --- a/tests/test_unicode.cpp +++ b/tests/test_unicode.cpp @@ -24,7 +24,7 @@ TEST(as_wide_valid_basic) TEST(as_wide_valid_astral) { // valid 4-byte input - std::wstring b4 = as_wide("\xf2\x97\x98\xa4 \xf4\x80\x8f\xbf"); + std::basic_string b4 = as_wide("\xf2\x97\x98\xa4 \xf4\x80\x8f\xbf"); size_t wcharsize = sizeof(wchar_t); @@ -65,7 +65,7 @@ TEST(as_wide_invalid) CHECK(as_wide("a\xf2_") == L"a_"); // invalid 5-byte input - std::wstring b5 = as_wide("\xf8\nbcd"); + std::basic_string b5 = as_wide("\xf8\nbcd"); CHECK(b5 == L"\nbcd"); } @@ -98,7 +98,7 @@ TEST(as_utf8_valid_astral) if (wcharsize == 4) { - std::wstring s; + std::basic_string s; s.resize(3); s[0] = wchar_cast(0x97624); s[1] = ' '; @@ -144,7 +144,7 @@ TEST(as_utf8_invalid) TEST(as_utf8_string) { - std::wstring s = L"abcd"; + std::basic_string s = L"abcd"; CHECK(as_utf8(s) == "abcd"); } -- cgit v1.2.3