| 117 | } |
| 118 | |
| 119 | bool is_identifier_char(char c) { |
| 120 | if (c >= 'a' && c <= 'z') { |
| 121 | return true; |
| 122 | } |
| 123 | if (c >= 'A' && c <= 'Z') { |
| 124 | return true; |
| 125 | } |
| 126 | if (c == '_') { |
| 127 | return true; |
| 128 | } |
| 129 | if (c >= '0' && c <= '9') { |
| 130 | return true; |
| 131 | } |
| 132 | return false; |
| 133 | } |
| 134 | |
| 135 | std::string sanitize_section_name(std::string section_name) { |
| 136 | // Skip periods at the start of the section name. |
nothing calls this directly
no outgoing calls
no test coverage detected