aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/icu/Converter.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/icu/Converter.hxx')
-rw-r--r--src/lib/icu/Converter.hxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/icu/Converter.hxx b/src/lib/icu/Converter.hxx
index 3eba86c25..fd5ea2132 100644
--- a/src/lib/icu/Converter.hxx
+++ b/src/lib/icu/Converter.hxx
@@ -33,14 +33,14 @@
#ifdef HAVE_ICU_CONVERTER
-#include <string>
-
class Error;
#ifdef HAVE_ICU
struct UConverter;
#endif
+template<typename T> class AllocatedString;
+
/**
* This class can convert strings with a certain character set to and
* from UTF-8.
@@ -77,17 +77,19 @@ public:
/**
* Convert the string to UTF-8.
- * Returns empty string on error.
+ *
+ * Returns AllocatedString::Null() on error.
*/
gcc_pure gcc_nonnull_all
- std::string ToUTF8(const char *s) const;
+ AllocatedString<char> ToUTF8(const char *s) const;
/**
* Convert the string from UTF-8.
- * Returns empty string on error.
+ *
+ * Returns AllocatedString::Null() on error.
*/
gcc_pure gcc_nonnull_all
- std::string FromUTF8(const char *s) const;
+ AllocatedString<char> FromUTF8(const char *s) const;
};
#endif