Lines Matching refs:c_string
108 const char* c_string = (current ? flag.current_value.c_str() : in PrintStringFlagsWithQuotes() local
111 return StringPrintf("%s: \"%s\"", text.c_str(), c_string); in PrintStringFlagsWithQuotes()
113 return StringPrintf("%s: %s", text.c_str(), c_string); in PrintStringFlagsWithQuotes()
124 const char* c_string = main_part.c_str(); in DescribeOneFlag() local
130 == strlen(c_string)); // Unless there's a \0 in there? in DescribeOneFlag()
131 const char* newline = strchr(c_string, '\n'); in DescribeOneFlag()
134 final_string += c_string; in DescribeOneFlag()
138 if (newline != NULL && newline - c_string < kLineLength - chars_in_line) { in DescribeOneFlag()
139 int n = static_cast<int>(newline - c_string); in DescribeOneFlag()
140 final_string.append(c_string, n); in DescribeOneFlag()
142 c_string += n + 1; in DescribeOneFlag()
146 while ( whitespace > 0 && !isspace(c_string[whitespace]) ) { in DescribeOneFlag()
152 final_string += c_string; in DescribeOneFlag()
156 final_string += string(c_string, whitespace); in DescribeOneFlag()
158 while (isspace(c_string[whitespace])) ++whitespace; in DescribeOneFlag()
159 c_string += whitespace; in DescribeOneFlag()
162 if (*c_string == '\0') in DescribeOneFlag()