| 113 | |
| 114 | namespace Json { |
| 115 | static inline char getDecimalPoint() { |
| 116 | #ifdef JSONCPP_NO_LOCALE_SUPPORT |
| 117 | return '\0'; |
| 118 | #else |
| 119 | struct lconv* lc = localeconv(); |
| 120 | return lc ? *(lc->decimal_point) : '\0'; |
| 121 | #endif |
| 122 | } |
| 123 | |
| 124 | /// Converts a unicode code-point to UTF-8. |
| 125 | static inline JSONCPP_STRING codePointToUTF8(unsigned int cp) { |
no outgoing calls
no test coverage detected