MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / getTwoDigits

Function getTwoDigits

Sources/Shared/Base/Format.cpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 inline const char* getTwoDigits(std::size_t value) {
189 alignas(2) static const char Digits[] =
190 "0001020304050607080910111213141516171819"
191 "2021222324252627282930313233343536373839"
192 "4041424344454647484950515253545556575859"
193 "6061626364656667686970717273747576777879"
194 "8081828384858687888990919293949596979899";
195 return &Digits[value * 2];
196 }
197
198 template<typename TUint>
199 char* formatDecimal(char* out, TUint value, std::int32_t digitCount) {

Callers 1

formatDecimalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected