MCPcopy Create free account
hub / github.com/apache/impala / GetNegStr

Function GetNegStr

be/src/gutil/strings/human_readable.cc:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <typename T>
17const char* GetNegStr(T* value) {
18 if (*value < 0) {
19 *value = -(*value);
20 return "-";
21 } else {
22 return "";
23 }
24}
25
26} // namespace
27

Callers 3

DoubleToStringMethod · 0.85
ToStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected