MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / tool_StripLeadingZero

Function tool_StripLeadingZero

Source/stdafx.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63std::string tool_StripLeadingZero(const std::string& pValue) {
64 std::string Final = pValue;
65
66 while (*Final.begin() == 0x30 && Final.length() > 1) {
67
68 Final.erase(Final.begin());
69 }
70
71 return Final;
72}
73
74uint16 tool_DecimalToBinaryCodedDecimal(uint16 pDecimal) {
75

Calls 2

eraseMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected