MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isNull

Function isNull

src/function/cast_from_string_functions.cpp:251–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251static 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 ------------------------------ //
272struct CountPartOperation {

Callers 1

setVectorNullFunction · 0.70

Calls 3

skipWhitespaceFunction · 0.85
lengthMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected