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

Function skipWhitespace

src/function/cast_from_string_functions.cpp:180–193  ·  view source on GitHub ↗

---------------------- cast String to nested types ------------------------------ //

Source from the content-addressed store, hash-verified

178
179// ---------------------- cast String to nested types ------------------------------ //
180static void skipWhitespace(const char*& input, const char* end) {
181 while (input < end) {
182 if (*input & 0x80) {
183 // We only skip ASCII white spaces there.
184 break;
185 } else {
186 DASSERT(*input >= -1);
187 if (!isspace(*input)) {
188 break;
189 }
190 }
191 input++;
192 }
193}
194
195static void trimRightWhitespace(const char* input, const char*& end) {
196 while (input < end && isspace(*(end - 1))) {

Callers 5

isNullFunction · 0.85
handleValueMethod · 0.85
splitCStringListFunction · 0.85
splitCStringMapFunction · 0.85
tryCastStringToStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected