/ IsArray: check whether this is a Mongo array path. */ /
| 81 | /* IsArray: check whether this is a Mongo array path. */ |
| 82 | /***********************************************************************/ |
| 83 | bool 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. */ |