MCPcopy Create free account
hub / github.com/Samsung/UTopia / fixNumericLocaleInput

Function fixNumericLocaleInput

external/jsoncpp/jsoncpp.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183template <typename Iter> void fixNumericLocaleInput(Iter begin, Iter end) {
184 char decimalPoint = getDecimalPoint();
185 if (decimalPoint == '\0' || decimalPoint == '.') {
186 return;
187 }
188 for (; begin != end; ++begin) {
189 if (*begin == '.') {
190 *begin = decimalPoint;
191 }
192 }
193}
194
195/**
196 * Return iterator that would be the new end of the range [begin,end), if we

Callers 1

decodeDoubleMethod · 0.85

Calls 1

getDecimalPointFunction · 0.85

Tested by

no test coverage detected