| 249 | } |
| 250 | |
| 251 | static bool isNull(std::string_view& str) { |
| 252 | auto start = str.data(); |
| 253 | auto end = start + str.length(); |
| 254 | skipWhitespace(start, end); |
| 255 | if (start == end) { |
| 256 | return true; |
| 257 | } |
| 258 | if (end - start >= 4 && (*start == 'N' || *start == 'n') && |
| 259 | (*(start + 1) == 'U' || *(start + 1) == 'u') && |
| 260 | (*(start + 2) == 'L' || *(start + 2) == 'l') && |
| 261 | (*(start + 3) == 'L' || *(start + 3) == 'l')) { |
| 262 | start += 4; |
| 263 | skipWhitespace(start, end); |
| 264 | if (start == end) { |
| 265 | return true; |
| 266 | } |
| 267 | } |
| 268 | return false; |
| 269 | } |
| 270 | |
| 271 | // ---------------------- cast String to List Helper ------------------------------ // |
| 272 | struct CountPartOperation { |
no test coverage detected