From 669cd52f685282289590200daed3fc89466e7206 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 3 Sep 2019 17:45:58 +0100 Subject: [Rework] Replace linenoise with replxx Source: https://github.com/AmokHuginnsson/replxx --- contrib/replxx/src/conversion.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 contrib/replxx/src/conversion.hxx (limited to 'contrib/replxx/src/conversion.hxx') 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 -- cgit v1.2.3