MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / fixNumericLocale

Function fixNumericLocale

src/share/jsoncpp/jsoncpp.cpp:180–187  ·  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

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

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected