summaryrefslogtreecommitdiff
path: root/indra/llcommon/llstring.h
diff options
context:
space:
mode:
authorsimon <none@none>2014-04-07 14:31:36 -0700
committersimon <none@none>2014-04-07 14:31:36 -0700
commit45651fda5a9b0ace8ef580751304b704a7fd9152 (patch)
tree3130f25613f1d829a35f15757898ce2a98aadb64 /indra/llcommon/llstring.h
parent436332627021dbd82c1a98b2bfb97fdf6337234d (diff)
parentc9620e24d32a08ee79486d5ecc4085731432a0a6 (diff)
Merge downstream code
Diffstat (limited to 'indra/llcommon/llstring.h')
-rwxr-xr-xindra/llcommon/llstring.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h
index f9702868c8..16a19e7021 100755
--- a/indra/llcommon/llstring.h
+++ b/indra/llcommon/llstring.h
@@ -518,10 +518,13 @@ LL_COMMON_API S32 wchar_to_utf8chars(llwchar inchar, char* outchars);
LL_COMMON_API std::string wstring_to_utf8str(const LLWString &utf32str, S32 len);
LL_COMMON_API std::string wstring_to_utf8str(const LLWString &utf32str);
-
LL_COMMON_API std::string utf16str_to_utf8str(const llutf16string &utf16str, S32 len);
LL_COMMON_API std::string utf16str_to_utf8str(const llutf16string &utf16str);
+#if LL_WINDOWS
+inline std::string wstring_to_utf8str(const llutf16string &utf16str) { return utf16str_to_utf8str(utf16str);}
+#endif
+
// Length of this UTF32 string in bytes when transformed to UTF8
LL_COMMON_API S32 wstring_utf8_length(const LLWString& wstr);