Lines Matching refs:zOut
1165 unsigned char *z, *zOut; in charFunc() local
1167 zOut = z = sqlite3_malloc64( argc*4+1 ); in charFunc()
1179 *zOut++ = (u8)(c&0xFF); in charFunc()
1181 *zOut++ = 0xC0 + (u8)((c>>6)&0x1F); in charFunc()
1182 *zOut++ = 0x80 + (u8)(c & 0x3F); in charFunc()
1184 *zOut++ = 0xE0 + (u8)((c>>12)&0x0F); in charFunc()
1185 *zOut++ = 0x80 + (u8)((c>>6) & 0x3F); in charFunc()
1186 *zOut++ = 0x80 + (u8)(c & 0x3F); in charFunc()
1188 *zOut++ = 0xF0 + (u8)((c>>18) & 0x07); in charFunc()
1189 *zOut++ = 0x80 + (u8)((c>>12) & 0x3F); in charFunc()
1190 *zOut++ = 0x80 + (u8)((c>>6) & 0x3F); in charFunc()
1191 *zOut++ = 0x80 + (u8)(c & 0x3F); in charFunc()
1194 sqlite3_result_text64(context, (char*)z, zOut-z, sqlite3_free, SQLITE_UTF8); in charFunc()
1260 unsigned char *zOut; /* The output */ in replaceFunc() local
1295 zOut = contextMalloc(context, (i64)nOut); in replaceFunc()
1296 if( zOut==0 ){ in replaceFunc()
1303 zOut[j++] = zStr[i]; in replaceFunc()
1311 sqlite3_free(zOut); in replaceFunc()
1319 zOld = zOut; in replaceFunc()
1320 zOut = sqlite3Realloc(zOut, (int)nOut + (nOut - nStr - 1)); in replaceFunc()
1321 if( zOut==0 ){ in replaceFunc()
1328 memcpy(&zOut[j], zRep, nRep); in replaceFunc()
1334 memcpy(&zOut[j], &zStr[i], nStr-i); in replaceFunc()
1337 zOut[j] = 0; in replaceFunc()
1338 sqlite3_result_text(context, (char*)zOut, j, sqlite3_free); in replaceFunc()