MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / NumToStringWidth

Function NumToStringWidth

native/thirdpart/flatbuffers/util.h:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105template<typename T> size_t NumToStringWidth(T t, int precision = 0) {
106 size_t string_width = IntToDigitCount(t);
107 // Count the dot for floating point numbers
108 if (precision) string_width += (precision + 1);
109 return string_width;
110}
111
112template<typename T>
113std::string NumToStringImplWrapper(T t, const char *fmt, int precision = 0) {

Callers 1

NumToStringImplWrapperFunction · 0.85

Calls 1

IntToDigitCountFunction · 0.85

Tested by

no test coverage detected