MCPcopy Create free account
hub / github.com/Illumina/paragraph / fixNumericLocale

Function fixNumericLocale

external/jsoncpp/jsoncpp.cpp:177–184  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

175 * @see https://github.com/open-source-parsers/jsoncpp/pull/9
176 */
177static inline void fixNumericLocale(char* begin, char* end) {
178 while (begin < end) {
179 if (*begin == ',') {
180 *begin = '.';
181 }
182 ++begin;
183 }
184}
185
186static inline void fixNumericLocaleInput(char* begin, char* end) {
187 char decimalPoint = getDecimalPoint();

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected