MCPcopy Create free account
hub / github.com/apache/arrow / FormatTwoDigits

Function FormatTwoDigits

cpp/src/arrow/util/formatting.h:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154// * Release build
155template <typename Int>
156inline void FormatTwoDigits(Int value, char** cursor) {
157 assert(value >= 0 && value <= 99);
158 auto digit_pair = &digit_pairs[value * 2];
159 FormatOneChar(digit_pair[1], cursor);
160 FormatOneChar(digit_pair[0], cursor);
161}
162
163template <typename Int>
164void FormatAllDigits(Int value, char** cursor) {

Callers 4

GeneratePhoneNumberFunction · 0.85
FormatAllDigitsFunction · 0.85
FormatYYYY_MM_DDFunction · 0.85
FormatHH_MM_SSFunction · 0.85

Calls 1

FormatOneCharFunction · 0.85

Tested by

no test coverage detected