MCPcopy Create free account
hub / github.com/PlayFab/gsdk / fixNumericLocaleInput

Function fixNumericLocaleInput

cpp/cppsdk/jsoncpp.cpp:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189template <typename Iter> void fixNumericLocaleInput(Iter begin, Iter end) {
190 char decimalPoint = getDecimalPoint();
191 if (decimalPoint == '\0' || decimalPoint == '.') {
192 return;
193 }
194 for (; begin != end; ++begin) {
195 if (*begin == '.') {
196 *begin = decimalPoint;
197 }
198 }
199}
200
201/**
202 * 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