Lines Matching refs:SQLITE_UTF8
4505 ** [SQLITE_UTF8 | text encoding] this SQL function prefers for
4596 #define SQLITE_UTF8 1
4955 ** <li> [SQLITE_UTF8],
5060 ** connection. The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE],
10226 u8 iPrefEnc; /* Preferred text encoding (SQLITE_UTF8, 16LE, 16BE) */
10298 {nArg, SQLITE_UTF8, (bNC*SQLITE_FUNC_NEEDCOLL), \
10301 {nArg, SQLITE_UTF8, (bNC*SQLITE_FUNC_NEEDCOLL)|extraFlags, \
10304 {nArg, SQLITE_UTF8, bNC*SQLITE_FUNC_NEEDCOLL, \
10307 {nArg, SQLITE_UTF8, flags, (void *)arg, 0, likeFunc, 0, 0, #zName, 0, 0}
10309 {nArg, SQLITE_UTF8, nc*SQLITE_FUNC_NEEDCOLL, \
13413 u8 enc; /* SQLITE_UTF8, SQLITE_UTF16BE, SQLITE_UTF16LE */
14298 }else if( sqlite3AtoF(zDate, &r, sqlite3Strlen30(zDate), SQLITE_UTF8) ){
14569 && sqlite3AtoF(&z[8], &r, sqlite3Strlen30(&z[8]), SQLITE_UTF8)
14626 if( !sqlite3AtoF(z, &r, n, SQLITE_UTF8) ){
20899 if( pMem->enc!=SQLITE_UTF8 && desiredEnc!=SQLITE_UTF8 ){
20920 if( desiredEnc==SQLITE_UTF8 ){
20951 if( pMem->enc==SQLITE_UTF8 ){
20969 assert( desiredEnc==SQLITE_UTF8 );
20986 assert( (pMem->n+(desiredEnc==SQLITE_UTF8?1:2))<=len );
21112 sqlite3VdbeChangeEncoding(&m, SQLITE_UTF8);
21139 sqlite3VdbeMemSetStr(&m, z, n, SQLITE_UTF8, SQLITE_STATIC);
21355 sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC);
21357 sqlite3ValueSetStr(db->pErr, 0, 0, SQLITE_UTF8, SQLITE_STATIC);
21506 assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE );
21509 if( enc==SQLITE_UTF8 ){
21717 assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE );
21718 if( enc==SQLITE_UTF8 ){
58810 ** 'desiredEnc', one of SQLITE_UTF8, SQLITE_UTF16LE or SQLITE_UTF16BE.
58825 assert( desiredEnc==SQLITE_UTF8 || desiredEnc==SQLITE_UTF16LE
59020 pMem->enc = SQLITE_UTF8;
59300 pMem->enc = SQLITE_UTF8;
59504 if( enc==SQLITE_UTF8 ){
59519 nAlloc += (enc==SQLITE_UTF8?1:2);
59541 pMem->enc = (enc==0 ? SQLITE_UTF8 : enc);
59545 if( pMem->enc!=SQLITE_UTF8 && sqlite3VdbeMemHandleBom(pMem) ){
59630 assert( pMem1->enc==SQLITE_UTF8 ||
59739 ** SQLITE_UTF8.
59852 sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC);
59856 sqlite3ValueApplyAffinity(pVal, SQLITE_AFF_NUMERIC, SQLITE_UTF8);
59858 sqlite3ValueApplyAffinity(pVal, affinity, SQLITE_UTF8);
59861 if( enc!=SQLITE_UTF8 ){
61163 pMem->enc = SQLITE_UTF8;
61208 sqlite3VdbeMemSetStr(pMem, z, -1, SQLITE_UTF8, 0);
61212 pMem->enc = SQLITE_UTF8;
61226 pMem->enc = SQLITE_UTF8;
61234 pMem->enc = SQLITE_UTF8;
61665 rc = sqlite3VdbeMemSetStr(pColName, zName, -1, SQLITE_UTF8, xDel);
62254 sqlite3ValueSetStr(db->pErr, -1, p->zErrMsg, SQLITE_UTF8, SQLITE_TRANSIENT);
62323 sqlite3ValueSetStr(db->pErr, -1, p->zErrMsg, SQLITE_UTF8, SQLITE_TRANSIENT);
63178 sqlite3ValueApplyAffinity(pRet, aff, SQLITE_UTF8);
63346 return sqlite3ValueBytes(pVal, SQLITE_UTF8);
63361 return (const unsigned char *)sqlite3ValueText(pVal, SQLITE_UTF8);
63414 sqlite3VdbeMemSetStr(&pCtx->s, z, n, SQLITE_UTF8, SQLITE_TRANSIENT);
63442 setResultStrOrError(pCtx, z, n, SQLITE_UTF8, xDel);
63485 SQLITE_UTF8, SQLITE_STATIC);
63494 SQLITE_UTF8, SQLITE_STATIC);
64302 return bindText(pStmt, i, zData, nData, xDel, SQLITE_UTF8);
64638 if( enc!=SQLITE_UTF8 ){
64642 sqlite3VdbeChangeEncoding(&utf8, SQLITE_UTF8);
64658 if( enc!=SQLITE_UTF8 ) sqlite3VdbeMemRelease(&utf8);
66239 if( encoding!=SQLITE_UTF8 ){
66240 rc = sqlite3VdbeMemSetStr(pOut, pOp->p4.z, -1, SQLITE_UTF8, SQLITE_STATIC);
67984 pOut->enc = SQLITE_UTF8; /* In case the blob is ever converted to text */
69687 pOut->enc = SQLITE_UTF8; /* In case the blob is ever cast to text */
70430 sqlite3VdbeMemSetStr(pIn1, u.ca.z, -1, SQLITE_UTF8, sqlite3_free);
71045 pOut->enc = SQLITE_UTF8;
71426 testcase( u.cq.pName->enc==SQLITE_UTF8 );
71429 rc = sqlite3VdbeChangeEncoding(u.cq.pName, SQLITE_UTF8);
75838 int bOk = 0==sqlite3Atoi64(&z[1], &i, n-1, SQLITE_UTF8);
77240 sqlite3AtoF(z, &value, sqlite3Strlen30(z), SQLITE_UTF8);
77268 c = sqlite3Atoi64(z, &value, sqlite3Strlen30(z), SQLITE_UTF8);
80106 if( sqlite3ValueFromExpr(db, pDflt, SQLITE_UTF8, SQLITE_AFF_NONE, &pVal) ){
80516 SQLITE_UTF8, /* iPrefEnc */
80609 SQLITE_UTF8, /* iPrefEnc */
80651 SQLITE_UTF8, /* iPrefEnc */
81748 SQLITE_UTF8, /* iPrefEnc */
81770 SQLITE_UTF8, /* iPrefEnc */
86054 sqlite3ValueSetStr(pTmp, -1, zName, SQLITE_UTF8, SQLITE_STATIC);
86075 static const u8 aEnc[] = { SQLITE_UTF16BE, SQLITE_UTF16LE, SQLITE_UTF8 };
86184 pColl[0].enc = SQLITE_UTF8;
86235 assert( SQLITE_UTF8==1 && SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 );
86236 assert( enc>=SQLITE_UTF8 && enc<=SQLITE_UTF16BE );
86379 assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE );
86494 p->enc = SQLITE_UTF8;
87498 sqlite3AtoF(zBuf, &r, sqlite3Strlen30(zBuf), SQLITE_UTF8);
88061 sqlite3AtoF(zBuf, &r2, 20, SQLITE_UTF8);
88711 2, SQLITE_UTF8, 0);
88729 sqlite3CreateFunc(db, "like", 2, SQLITE_UTF8, pInfo, likeFunc, 0, 0, 0);
88730 sqlite3CreateFunc(db, "like", 3, SQLITE_UTF8, pInfo, likeFunc, 0, 0, 0);
88731 sqlite3CreateFunc(db, "glob", 2, SQLITE_UTF8,
88756 2, SQLITE_UTF8, 0);
88848 {0,SQLITE_UTF8,SQLITE_FUNC_COUNT,0,0,0,countStep,countFinalize,"count",0,0},
94005 sqlite3Atoi64(zRight, &iLimit, 1000000, SQLITE_UTF8);
94142 sqlite3Atoi64(zRight, &sz, 1000, SQLITE_UTF8);
94892 { "UTF8", SQLITE_UTF8 },
94893 { "UTF-8", SQLITE_UTF8 }, /* Must be element [1] */
94908 assert( encnames[SQLITE_UTF8].enc==SQLITE_UTF8 );
95468 if( encoding==0 ) encoding = SQLITE_UTF8;
95471 ENC(db) = SQLITE_UTF8;
106907 assert( pColl->enc==SQLITE_UTF8 );
106909 pColl = sqlite3GetCollSeq(pParse, SQLITE_UTF8, 0, *pIdx->azColl);
106927 if( pColl->enc!=SQLITE_UTF8 ){
107016 return sqlite3ValueFromExpr(pParse->db, pExpr, SQLITE_UTF8, aff, pp);
114681 zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8);
116157 rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF8,
116169 enc = SQLITE_UTF8;
116310 if( sqlite3FindFunction(db, zName, nName, nArg, SQLITE_UTF8, 0)==0 ){
116311 rc = sqlite3CreateFunc(db, zName, nArg, SQLITE_UTF8,
116675 SQLITE_UTF8, SQLITE_STATIC);
116750 if( enc2<SQLITE_UTF8 || enc2>SQLITE_UTF16BE ){
117258 createCollation(db, "BINARY", SQLITE_UTF8, 0, binCollFunc, 0);
117261 createCollation(db, "RTRIM", SQLITE_UTF8, (void*)1, binCollFunc, 0);
117265 db->pDfltColl = sqlite3FindCollSeq(db, SQLITE_UTF8, "BINARY", 0);
117269 createCollation(db, "NOCASE", SQLITE_UTF8, 0, nocaseCollatingFunc, 0);
117442 zFilename8 = sqlite3ValueText(pVal, SQLITE_UTF8);
118080 if( z && sqlite3Atoi64(z, &v, sqlite3Strlen30(z), SQLITE_UTF8)==SQLITE_OK ){
126406 db, "fts3_exprtest", -1, SQLITE_UTF8, 0, fts3ExprTest, 0, 0
126410 -1, SQLITE_UTF8, (void *)1, fts3ExprTest, 0, 0
139588 const int utf8 = SQLITE_UTF8;
140157 {"lower", 1, SQLITE_UTF8, 0, icuCaseFunc16},
140158 {"lower", 2, SQLITE_UTF8, 0, icuCaseFunc16},
140159 {"upper", 1, SQLITE_UTF8, (void*)1, icuCaseFunc16},
140160 {"upper", 2, SQLITE_UTF8, (void*)1, icuCaseFunc16},
140162 {"like", 2, SQLITE_UTF8, 0, icuLikeFunc},
140163 {"like", 3, SQLITE_UTF8, 0, icuLikeFunc},
140165 {"icu_load_collation", 2, SQLITE_UTF8, (void*)db, icuLoadCollation},