MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / fixZerosInTheEnd

Function fixZerosInTheEnd

json/jsoncpp.cpp:207–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 * were to delete zeros in the end of string, but not the last zero before '.'.
206 */
207template <typename Iter> Iter fixZerosInTheEnd(Iter begin, Iter end) {
208 for (; begin != end; --end) {
209 if (*(end - 1) != '0') {
210 return end;
211 }
212 // Don't delete the last zero before the decimal point.
213 if (begin != (end - 1) && *(end - 2) == '.') {
214 return end;
215 }
216 }
217 return end;
218}
219
220} // namespace Json
221

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected