| 152 | } |
| 153 | |
| 154 | inline static bool isStringCharLiteral(const std::string &str, char q) |
| 155 | { |
| 156 | // early out to avoid the loop |
| 157 | if (!endsWith(str, q)) |
| 158 | return false; |
| 159 | |
| 160 | static const std::array<std::string, 5> suffixes{"", "u8", "u", "U", "L"}; |
| 161 | return std::any_of(suffixes.cbegin(), suffixes.cend(), [&](const std::string& p) { |
| 162 | return isPrefixStringCharLiteral(str, q, p); |
| 163 | }); |
| 164 | } |
| 165 | |
| 166 | inline static bool isStringLiteral(const std::string &str) |
| 167 | { |
no test coverage detected