6 #ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
7 #define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
11 #ifdef NO_LOCALE_SUPPORT
12 #define JSONCPP_NO_LOCALE_SUPPORT
15 #ifndef JSONCPP_NO_LOCALE_SUPPORT
27 #ifdef JSONCPP_NO_LOCALE_SUPPORT
30 struct lconv* lc = localeconv();
31 return lc ? *(lc->decimal_point) :
'\0';
43 result[0] =
static_cast<char>(cp);
44 }
else if (cp <= 0x7FF) {
46 result[1] =
static_cast<char>(0x80 | (0x3f & cp));
47 result[0] =
static_cast<char>(0xC0 | (0x1f & (cp >> 6)));
48 }
else if (cp <= 0xFFFF) {
50 result[2] =
static_cast<char>(0x80 | (0x3f & cp));
51 result[1] =
static_cast<char>(0x80 | (0x3f & (cp >> 6)));
52 result[0] =
static_cast<char>(0xE0 | (0xf & (cp >> 12)));
53 }
else if (cp <= 0x10FFFF) {
55 result[3] =
static_cast<char>(0x80 | (0x3f & cp));
56 result[2] =
static_cast<char>(0x80 | (0x3f & (cp >> 6)));
57 result[1] =
static_cast<char>(0x80 | (0x3f & (cp >> 12)));
58 result[0] =
static_cast<char>(0xF0 | (0x7 & (cp >> 18)));
81 *--current =
static_cast<char>(value % 10U +
static_cast<unsigned>(
'0'));
102 if (decimalPoint !=
'\0' && decimalPoint !=
'.') {
103 while (begin < end) {
105 *begin = decimalPoint;
114 #endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED