Lines Matching refs:zOut
64 #define WRITE_UTF8(zOut, c) { \ argument
66 *zOut++ = (u8)(c&0xFF); \
69 *zOut++ = 0xC0 + (u8)((c>>6)&0x1F); \
70 *zOut++ = 0x80 + (u8)(c & 0x3F); \
73 *zOut++ = 0xE0 + (u8)((c>>12)&0x0F); \
74 *zOut++ = 0x80 + (u8)((c>>6) & 0x3F); \
75 *zOut++ = 0x80 + (u8)(c & 0x3F); \
77 *zOut++ = 0xF0 + (u8)((c>>18) & 0x07); \
78 *zOut++ = 0x80 + (u8)((c>>12) & 0x3F); \
79 *zOut++ = 0x80 + (u8)((c>>6) & 0x3F); \
80 *zOut++ = 0x80 + (u8)(c & 0x3F); \
84 #define WRITE_UTF16LE(zOut, c) { \ argument
86 *zOut++ = (u8)(c&0x00FF); \
87 *zOut++ = (u8)((c>>8)&0x00FF); \
89 *zOut++ = (u8)(((c>>10)&0x003F) + (((c-0x10000)>>10)&0x00C0)); \
90 *zOut++ = (u8)(0x00D8 + (((c-0x10000)>>18)&0x03)); \
91 *zOut++ = (u8)(c&0x00FF); \
92 *zOut++ = (u8)(0x00DC + ((c>>8)&0x03)); \
96 #define WRITE_UTF16BE(zOut, c) { \ argument
98 *zOut++ = (u8)((c>>8)&0x00FF); \
99 *zOut++ = (u8)(c&0x00FF); \
101 *zOut++ = (u8)(0x00D8 + (((c-0x10000)>>18)&0x03)); \
102 *zOut++ = (u8)(((c>>10)&0x003F) + (((c-0x10000)>>10)&0x00C0)); \
103 *zOut++ = (u8)(0x00DC + ((c>>8)&0x03)); \
104 *zOut++ = (u8)(c&0x00FF); \
184 unsigned char *zOut; /* Output buffer */ in sqlite3VdbeMemTranslate() local
256 zOut = sqlite3DbMallocRaw(pMem->db, len); in sqlite3VdbeMemTranslate()
257 if( !zOut ){ in sqlite3VdbeMemTranslate()
260 z = zOut; in sqlite3VdbeMemTranslate()
277 pMem->n = (int)(z - zOut); in sqlite3VdbeMemTranslate()
340 pMem->n = (int)(z - zOut); in sqlite3VdbeMemTranslate()
349 pMem->z = (char*)zOut; in sqlite3VdbeMemTranslate()
446 unsigned char *zOut = zIn; in sqlite3Utf8To8() local
450 while( zIn[0] && zOut<=zIn ){ in sqlite3Utf8To8()
453 WRITE_UTF8(zOut, c); in sqlite3Utf8To8()
456 *zOut = 0; in sqlite3Utf8To8()
457 return (int)(zOut - zStart); in sqlite3Utf8To8()