summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2011-01-15 10:56:18 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2011-01-15 10:56:18 +0000
commit81e4707fcaa537da96b5f7a3a1bd2119ee959672 (patch)
treeaf0eb93915b040d725d33b2f0177525c4238aba7 /src
parent175b3ff633ead4aed3a31475968ae81f855a877a (diff)
Replaced std::wstring with std::basic_string<wchar_t> (fixes Android compilation)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@803 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 9b88c23..d5539c7 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1324,7 +1324,7 @@ namespace
return result;
}
- std::wstring as_wide_impl(const char* str, size_t size)
+ std::basic_string<wchar_t> as_wide_impl(const char* str, size_t size)
{
const uint8_t* data = reinterpret_cast<const uint8_t*>(str);
@@ -1332,7 +1332,7 @@ namespace
size_t length = utf_decoder<wchar_counter>::decode_utf8_block(data, size, 0);
// allocate resulting string
- std::wstring result;
+ std::basic_string<wchar_t> result;
result.resize(length);
// second pass: convert to wchar_t
@@ -4744,19 +4744,19 @@ namespace pugi
return as_utf8_impl(str, wcslen(str));
}
- std::string PUGIXML_FUNCTION as_utf8(const std::wstring& str)
+ std::string PUGIXML_FUNCTION as_utf8(const std::basic_string<wchar_t>& str)
{
return as_utf8_impl(str.c_str(), str.size());
}
- std::wstring PUGIXML_FUNCTION as_wide(const char* str)
+ std::basic_string<wchar_t> PUGIXML_FUNCTION as_wide(const char* str)
{
assert(str);
return as_wide_impl(str, strlen(str));
}
- std::wstring PUGIXML_FUNCTION as_wide(const std::string& str)
+ std::basic_string<wchar_t> PUGIXML_FUNCTION as_wide(const std::string& str)
{
return as_wide_impl(str.c_str(), str.size());
}