aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/replxx/src/conversion.hxx
blob: 45d251a6c7455dca80bd9415e2ae164f7b7f1bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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