MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

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

Source from the content-addressed store, hash-verified

212
213 template <typename Appender>
214 Return<Appender> operator()(value_type value, Appender&& append) {
215 constexpr size_t buffer_size =
216 detail::Digits10(std::numeric_limits<value_type>::max()) + 1;
217
218 std::array<char, buffer_size> buffer;
219 char* cursor = buffer.data() + buffer_size;
220 detail::FormatAllDigits(detail::Abs(value), &cursor);
221 if (value < 0) {
222 detail::FormatOneChar('-', &cursor);
223 }
224 return append(detail::ViewDigitBuffer(buffer, cursor));
225 }
226};
227
228template <>

Callers

nothing calls this directly

Calls 6

Digits10Function · 0.85
FormatAllDigitsFunction · 0.85
FormatOneCharFunction · 0.85
ViewDigitBufferFunction · 0.85
AbsFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected