Lines Matching refs:zPath
1100 const char *zPath, /* The path to search */ in jsonLookupStep() argument
1107 if( zPath[0]==0 ) return pRoot; in jsonLookupStep()
1109 if( zPath[0]=='.' ){ in jsonLookupStep()
1111 zPath++; in jsonLookupStep()
1112 if( zPath[0]=='"' ){ in jsonLookupStep()
1113 zKey = zPath + 1; in jsonLookupStep()
1114 for(i=1; zPath[i] && zPath[i]!='"'; i++){} in jsonLookupStep()
1116 if( zPath[i] ){ in jsonLookupStep()
1119 *pzErr = zPath; in jsonLookupStep()
1124 zKey = zPath; in jsonLookupStep()
1125 for(i=0; zPath[i] && zPath[i]!='.' && zPath[i]!='['; i++){} in jsonLookupStep()
1128 *pzErr = zPath; in jsonLookupStep()
1136 return jsonLookupStep(pParse, iRoot+j+1, &zPath[i], pApnd, pzErr); in jsonLookupStep()
1152 zPath += i; in jsonLookupStep()
1153 pNode = jsonLookupAppend(pParse, zPath, pApnd, pzErr); in jsonLookupStep()
1165 }else if( zPath[0]=='[' ){ in jsonLookupStep()
1168 while( sqlite3Isdigit(zPath[j]) ){ in jsonLookupStep()
1169 i = i*10 + zPath[j] - '0'; in jsonLookupStep()
1172 if( j<2 || zPath[j]!=']' ){ in jsonLookupStep()
1173 if( zPath[1]=='#' ){ in jsonLookupStep()
1189 if( zPath[2]=='-' && sqlite3Isdigit(zPath[3]) ){ in jsonLookupStep()
1193 x = x*10 + zPath[j] - '0'; in jsonLookupStep()
1195 }while( sqlite3Isdigit(zPath[j]) ); in jsonLookupStep()
1199 if( zPath[j]!=']' ){ in jsonLookupStep()
1200 *pzErr = zPath; in jsonLookupStep()
1204 *pzErr = zPath; in jsonLookupStep()
1209 zPath += j + 1; in jsonLookupStep()
1223 return jsonLookupStep(pParse, iRoot+j, zPath, pApnd, pzErr); in jsonLookupStep()
1229 pNode = jsonLookupAppend(pParse, zPath, pApnd, pzErr); in jsonLookupStep()
1241 *pzErr = zPath; in jsonLookupStep()
1252 const char *zPath, /* Description of content to append */ in jsonLookupAppend() argument
1257 if( zPath[0]==0 ){ in jsonLookupAppend()
1261 if( zPath[0]=='.' ){ in jsonLookupAppend()
1263 }else if( strncmp(zPath,"[0]",3)==0 ){ in jsonLookupAppend()
1269 return jsonLookupStep(pParse, pParse->nNode-1, zPath, pApnd, pzErr); in jsonLookupAppend()
1292 const char *zPath, /* The path to search */ in jsonLookup() argument
1300 if( zPath==0 ) return 0; in jsonLookup()
1301 if( zPath[0]!='$' ){ in jsonLookup()
1302 zErr = zPath; in jsonLookup()
1305 zPath++; in jsonLookup()
1306 pNode = jsonLookupStep(pParse, 0, zPath, pApnd, &zErr); in jsonLookup()
1489 const char *zPath = (const char*)sqlite3_value_text(argv[1]); in jsonArrayLengthFunc() local
1490 pNode = jsonLookup(p, zPath, 0, ctx); in jsonArrayLengthFunc()
1542 const char *zPath; in jsonExtractFunc() local
1551 zPath = (const char*)sqlite3_value_text(argv[1]); in jsonExtractFunc()
1552 if( zPath==0 ) return; in jsonExtractFunc()
1554 if( zPath[0]!='$' ){ in jsonExtractFunc()
1564 if( sqlite3Isdigit(zPath[0]) ){ in jsonExtractFunc()
1566 jsonAppendRaw(&jx, zPath, (int)strlen(zPath)); in jsonExtractFunc()
1569 jsonAppendRaw(&jx, "$.", 1 + (zPath[0]!='[')); in jsonExtractFunc()
1570 jsonAppendRaw(&jx, zPath, (int)strlen(zPath)); in jsonExtractFunc()
1576 pNode = jsonLookup(p, zPath, 0, ctx); in jsonExtractFunc()
1587 pNode = jsonLookup(p, zPath, 0, ctx); in jsonExtractFunc()
1597 zPath = (const char*)sqlite3_value_text(argv[i]); in jsonExtractFunc()
1598 pNode = jsonLookup(p, zPath, 0, ctx); in jsonExtractFunc()
1781 const char *zPath; in jsonRemoveFunc() local
1788 zPath = (const char*)sqlite3_value_text(argv[i]); in jsonRemoveFunc()
1789 if( zPath==0 ) goto remove_done; in jsonRemoveFunc()
1790 pNode = jsonLookup(&x, zPath, 0, ctx); in jsonRemoveFunc()
1814 const char *zPath; in jsonReplaceFunc() local
1825 zPath = (const char*)sqlite3_value_text(argv[i]); in jsonReplaceFunc()
1826 pNode = jsonLookup(&x, zPath, 0, ctx); in jsonReplaceFunc()
1866 const char *zPath; in jsonSetFunc() local
1879 zPath = (const char*)sqlite3_value_text(argv[i]); in jsonSetFunc()
1881 pNode = jsonLookup(&x, zPath, &bApnd, ctx); in jsonSetFunc()
1918 const char *zPath; in jsonTypeFunc() local
1924 zPath = (const char*)sqlite3_value_text(argv[1]); in jsonTypeFunc()
1925 pNode = jsonLookup(p, zPath, 0, ctx); in jsonTypeFunc()