Lines Matching full:in
7 * "License"); you may not use this file except in compliance
12 * Unless required by applicable law or agreed to in writing,
64 * should not normally be overwritten in the subclasses.
93 * Escape string to use one in generated sources.
95 virtual std::string escape_string(const std::string& in) const;
200 * comments, which are also fair game in Java / PHP, yay!
229 pverbose("Wrong indent count in %s: difference = %i \n", func_name, (expected - indent_)); in indent_validate()
253 std::string capitalize(std::string in) { in capitalize() argument
254 in[0] = toupper(in[0]); in capitalize()
255 return in; in capitalize()
257 std::string decapitalize(std::string in) { in decapitalize() argument
258 in[0] = tolower(in[0]); in decapitalize()
259 return in; in decapitalize()
261 static std::string lowercase(std::string in) { in lowercase() argument
262 for (size_t i = 0; i < in.size(); ++i) { in lowercase()
263 in[i] = tolower(in[i]); in lowercase()
265 return in; in lowercase()
267 static std::string uppercase(std::string in) { in uppercase() argument
268 for (size_t i = 0; i < in.size(); ++i) { in uppercase()
269 in[i] = toupper(in[i]); in uppercase()
271 return in; in uppercase()
282 std::string underscore(std::string in) { in underscore() argument
283 in[0] = tolower(in[0]); in underscore()
284 for (size_t i = 1; i < in.size(); ++i) { in underscore()
285 if (isupper(in[i])) { in underscore()
286 in[i] = tolower(in[i]); in underscore()
287 in.insert(i, "_"); in underscore()
290 return in; in underscore()
299 std::string camelcase(std::string in) { in camelcase() argument
303 for (size_t i = 0; i < in.size(); i++) { in camelcase()
304 if (in[i] == '_') { in camelcase()
309 out << (char)toupper(in[i]); in camelcase()
313 out << in[i]; in camelcase()
322 …// sets the output format to fixed: http://en.cppreference.com/w/cpp/io/manip/fixed (not in scient… in emit_double_as_string()
326 …// strtod is broken in MSVC compilers older than 2015, so std::fixed fails to format a double lite… in emit_double_as_string()
328 … // c-runtime-crt-features-fixes-and-breaking-changes-in-visual-studio-14-ctp1/ in emit_double_as_string()
374 * Map of characters to escape in string literals.
425 old_file.open(output_file_path.c_str(), std::ios::in); in close()