Change ',' to '.' everywhere in buffer. * * We had a sophisticated way, but it did not work in WinCE. * @see https://github.com/open-source-parsers/jsoncpp/pull/9 */
| 175 | * @see https://github.com/open-source-parsers/jsoncpp/pull/9 |
| 176 | */ |
| 177 | static inline void fixNumericLocale(char* begin, char* end) { |
| 178 | while (begin < end) { |
| 179 | if (*begin == ',') { |
| 180 | *begin = '.'; |
| 181 | } |
| 182 | ++begin; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | static inline void fixNumericLocaleInput(char* begin, char* end) { |
| 187 | char decimalPoint = getDecimalPoint(); |