aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/replxx/src/conversion.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/replxx/src/conversion.hxx')
-rw-r--r--contrib/replxx/src/conversion.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/replxx/src/conversion.hxx b/contrib/replxx/src/conversion.hxx
new file mode 100644
index 000000000..45d251a6c
--- /dev/null
+++ b/contrib/replxx/src/conversion.hxx
@@ -0,0 +1,20 @@
+#ifndef REPLXX_CONVERSION_HXX_INCLUDED
+#define REPLXX_CONVERSION_HXX_INCLUDED 1
+
+#include "ConvertUTF.h"
+
+namespace replxx {
+
+typedef unsigned char char8_t;
+
+ConversionResult copyString8to32( char32_t* dst, int dstSize, int& dstCount, char const* src );
+ConversionResult copyString8to32( char32_t* dst, int dstSize, int& dstCount, char8_t const* src );
+void copyString32to8( char* dst, int dstSize, char32_t const* src, int srcSize, int* dstCount = nullptr );
+
+namespace locale {
+extern bool is8BitEncoding;
+}
+
+}
+
+#endif