MCPcopy Create free account
hub / github.com/apache/cloudberry / array_isspace

Function array_isspace

src/backend/utils/adt/arrayfuncs.c:438–449  ·  view source on GitHub ↗

* array_isspace() --- a non-locale-dependent isspace() * * We used to use isspace() for parsing array values, but that has * undesirable results: an array value might be silently interpreted * differently depending on the locale setting. Now we just hard-wire * the traditional ASCII definition of isspace(). */

Source from the content-addressed store, hash-verified

436 * the traditional ASCII definition of isspace().
437 */
438static bool
439array_isspace(char ch)
440{
441 if (ch == ' ' ||
442 ch == '\t' ||
443 ch == '\n' ||
444 ch == '\r' ||
445 ch == '\v' ||
446 ch == '\f')
447 return true;
448 return false;
449}
450
451/*
452 * ArrayCount

Callers 4

array_inFunction · 0.85
ArrayCountFunction · 0.85
ReadArrayStrFunction · 0.85
array_outFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected