| 83 | } |
| 84 | |
| 85 | static bool IsLowerSnakeCase(const std::string &str) { |
| 86 | for (size_t i = 0; i < str.length(); i++) { |
| 87 | char c = str[i]; |
| 88 | if (!check_ascii_range(c, 'a', 'z') && !is_digit(c) && c != '_') { |
| 89 | return false; |
| 90 | } |
| 91 | } |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | // Convert an underscore_based_identifier in to camelCase. |
| 96 | // Also uppercases the first character if first is true. |
no test coverage detected