MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / fixNumericLocale

Function fixNumericLocale

Source/JSON/jsoncpp.cpp:164–171  ·  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

162 * @see https://github.com/open-source-parsers/jsoncpp/pull/9
163 */
164static inline void fixNumericLocale(char* begin, char* end) {
165 while (begin < end) {
166 if (*begin == ',') {
167 *begin = '.';
168 }
169 ++begin;
170 }
171}
172
173} // namespace Json
174

Callers 1

valueToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected