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

Function FormatAllDigits

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

Source from the content-addressed store, hash-verified

162
163template <typename Int>
164void FormatAllDigits(Int value, char** cursor) {
165 assert(value >= 0);
166 while (value >= 100) {
167 FormatTwoDigits(value % 100, cursor);
168 value /= 100;
169 }
170
171 if (value >= 10) {
172 FormatTwoDigits(value, cursor);
173 } else {
174 FormatOneDigit(value, cursor);
175 }
176}
177
178template <typename Int>
179void FormatAllDigitsLeftPadded(Int value, size_t pad, char pad_char, char** cursor) {

Callers 6

GeneratePhoneNumberFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls 2

FormatTwoDigitsFunction · 0.85
FormatOneDigitFunction · 0.85

Tested by

no test coverage detected