Lines Matching refs:zOut
195 unsigned char *zOut = sqlite3_malloc64( nIn + 1 ); in phoneticHash() local
202 if( zOut==0 ) return 0; in phoneticHash()
236 if( nOut==0 || c!=zOut[nOut-1] ) zOut[nOut++] = c; in phoneticHash()
238 zOut[nOut] = 0; in phoneticHash()
239 return zOut; in phoneticHash()
252 unsigned char *zOut; in phoneticHashSqlFunc() local
256 zOut = phoneticHash(zIn, sqlite3_value_bytes(argv[0])); in phoneticHashSqlFunc()
257 if( zOut==0 ){ in phoneticHashSqlFunc()
260 sqlite3_result_text(context, (char*)zOut, -1, sqlite3_free); in phoneticHashSqlFunc()
1715 unsigned char *zOut = sqlite3_malloc64( nIn*5 + 1 ); in transliterate() local
1717 unsigned char *zOut = sqlite3_malloc64( nIn*4 + 1 ); in transliterate()
1720 if( zOut==0 ) return 0; in transliterate()
1727 zOut[nOut++] = (unsigned char)c; in transliterate()
1735 zOut[nOut++] = tbl[x].cTo0; in transliterate()
1737 zOut[nOut++] = tbl[x].cTo1; in transliterate()
1739 zOut[nOut++] = tbl[x].cTo2; in transliterate()
1741 zOut[nOut++] = tbl[x].cTo3; in transliterate()
1744 zOut[nOut++] = tbl[x].cTo4; in transliterate()
1758 if( c ) zOut[nOut++] = '?'; in transliterate()
1761 zOut[nOut] = 0; in transliterate()
1762 return zOut; in transliterate()
1824 unsigned char *zOut = transliterate(zIn, nIn); in transliterateSqlFunc() local
1825 if( zOut==0 ){ in transliterateSqlFunc()
1828 sqlite3_result_text(context, (char*)zOut, -1, sqlite3_free); in transliterateSqlFunc()
2006 char *zOut; in spellfix1Dequote() local
2010 zOut = sqlite3_mprintf("%s", zIn); in spellfix1Dequote()
2011 if( zOut==0 ) return 0; in spellfix1Dequote()
2012 i = (int)strlen(zOut); in spellfix1Dequote()
2014 while( i>0 && isspace(zOut[i-1]) ){ i--; } in spellfix1Dequote()
2016 zOut[i] = 0; in spellfix1Dequote()
2017 c = zOut[0]; in spellfix1Dequote()
2019 for(i=1, j=0; ALWAYS(zOut[i]); i++){ in spellfix1Dequote()
2020 zOut[j++] = zOut[i]; in spellfix1Dequote()
2021 if( zOut[i]==c ){ in spellfix1Dequote()
2022 if( zOut[i+1]==c ){ in spellfix1Dequote()
2025 zOut[j-1] = 0; in spellfix1Dequote()
2031 return zOut; in spellfix1Dequote()