Lines Matching refs:pStr
863 EditDist3FromString *pStr, /* Left hand string */ in matchFromTo() argument
868 int b1 = pStr->a[n1].nByte; in matchFromTo()
871 if( pStr->z[n1]!=z2[0] ) return 0; in matchFromTo()
872 if( strncmp(pStr->z+n1, z2, b1)!=0 ) return 0; in matchFromTo()
898 EditDist3FromString *pStr; in editDist3FromStringNew() local
904 pStr = sqlite3_malloc64( sizeof(*pStr) + sizeof(pStr->a[0])*n + n + 1 ); in editDist3FromStringNew()
905 if( pStr==0 ) return 0; in editDist3FromStringNew()
906 pStr->a = (EditDist3From*)&pStr[1]; in editDist3FromStringNew()
907 memset(pStr->a, 0, sizeof(pStr->a[0])*n); in editDist3FromStringNew()
908 pStr->n = n; in editDist3FromStringNew()
909 pStr->z = (char*)&pStr->a[n]; in editDist3FromStringNew()
910 memcpy(pStr->z, z, n+1); in editDist3FromStringNew()
912 pStr->isPrefix = 1; in editDist3FromStringNew()
914 pStr->n--; in editDist3FromStringNew()
915 pStr->z[n] = 0; in editDist3FromStringNew()
917 pStr->isPrefix = 0; in editDist3FromStringNew()
921 EditDist3From *pFrom = &pStr->a[i]; in editDist3FromStringNew()
943 editDist3FromStringDelete(pStr); in editDist3FromStringNew()
944 pStr = 0; in editDist3FromStringNew()
948 return pStr; in editDist3FromStringNew()