MCPcopy Create free account
hub / github.com/MariaDB/server / IsArray

Function IsArray

storage/connect/json.cpp:83–96  ·  view source on GitHub ↗

/ IsArray: check whether this is a Mongo array path. */ /

Source from the content-addressed store, hash-verified

81/* IsArray: check whether this is a Mongo array path. */
82/***********************************************************************/
83bool IsArray(PSZ s)
84{
85 char* p = s;
86
87 if (!p || !*p)
88 return false;
89 else for (; *p; p++)
90 if (*p == '.')
91 break;
92 else if (!isdigit(*p))
93 return false;
94
95 return true;
96} // end of IsArray
97
98/***********************************************************************/
99/* NextChr: return the first found '[' or Sep pointer. */

Callers 2

AddColMethod · 0.85
AddColMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected