MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / fixNumericLocale

Function fixNumericLocale

src/jsoncpp.cpp:162–169  ·  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

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

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected