Lines Matching refs:output
42 int AppendHumanMicros(uint64_t micros, char* output, int len, in AppendHumanMicros() argument
45 return snprintf(output, len, "%" PRIu64 " us", micros); in AppendHumanMicros()
47 return snprintf(output, len, "%.3lf ms", in AppendHumanMicros()
50 return snprintf(output, len, "%.3lf sec", in AppendHumanMicros()
53 return snprintf(output, len, "%02" PRIu64 ":%05.3f M:S", in AppendHumanMicros()
57 return snprintf(output, len, "%02" PRIu64 ":%02" PRIu64 ":%05.3f H:M:S", in AppendHumanMicros()
67 int AppendHumanBytes(uint64_t bytes, char* output, int len) { in AppendHumanBytes() argument
70 return snprintf(output, len, "%" PRIu64 "TB", bytes >> 40); in AppendHumanBytes()
72 return snprintf(output, len, "%" PRIu64 "GB", bytes >> 30); in AppendHumanBytes()
74 return snprintf(output, len, "%" PRIu64 "MB", bytes >> 20); in AppendHumanBytes()
76 return snprintf(output, len, "%" PRIu64 "KB", bytes >> 10); in AppendHumanBytes()
78 return snprintf(output, len, "%" PRIu64 "B", bytes); in AppendHumanBytes()
218 std::string output; in EscapeOptionString() local
221 output += '\\'; in EscapeOptionString()
222 output += EscapeChar(c); in EscapeOptionString()
224 output += c; in EscapeOptionString()
228 return output; in EscapeOptionString()
233 std::string output; in UnescapeOptionString() local
237 output += UnescapeChar(c); in UnescapeOptionString()
244 output += c; in UnescapeOptionString()
247 return output; in UnescapeOptionString()