Lines Matching refs:encoding
2346 ** filenames between the UTF-8 encoding used by SQLite
2347 ** and whatever filename encoding is used by the particular Windows
2624 ** ^The default encoding for the database will be UTF-8 if
2691 ** <b>Note to Windows users:</b> The encoding used for the filename argument
3170 ** always in UTF-8 encoding even if the named parameter was
3253 ** again in a different encoding.
3672 ** [SQLITE_UTF8 | text encoding] this SQL function prefers for
3675 ** more efficient with one encoding than another. ^An application may
3681 ** encoding is used, then the fourth argument should be [SQLITE_ANY].
3700 ** a negative nArg. ^A function where the preferred text encoding
3701 ** matches the database encoding is a better
3702 ** match than a function where the encoding is different.
3703 ** ^A function where the encoding difference is between UTF16le and UTF16be
3704 ** is a closer match than a function where the encoding difference is
3712 ** number of parameters and preferred encoding.
4111 ** each represented by a (length, data) pair and encoded in the encoding
8202 u8 enc; /* Text encoding used by this database */
8413 ** A macro to discover the encoding of a database.
8475 u8 iPrefEnc; /* Preferred text encoding (SQLITE_UTF8, 16LE, 16BE) */
8591 ** that processes text in UTF-8 encoding (CollSeq.xCmp) and another that
8594 ** the version that will require the least expensive encoding
8608 u8 enc; /* Text encoding handled by xCmp() */
8883 u8 enc; /* Text encoding - one of the TEXT_Utf* values */
8896 ** the key of an index. A blob encoding of a record is created by
9025 Expr *pExpr; /* Expression encoding the function */
17681 ** Usually this is encoded in the same unicode encoding as the main
18095 ** This routine transforms the internal text encoding used by pMem to
18097 ** encoding
18237 ** the encoding of the Mem adjusted. This routine does not do any
18240 ** The allocation (static, dynamic etc.) and encoding of the Mem may be
18309 ** correct UTF-8 encoding to be longer than a malformed encoding).
18329 ** Convert a UTF-16 string in the native encoding into a UTF-8 string.
18351 ** Convert a UTF-8 string to the UTF-16 encoding specified by parameter
18404 ** characters in each encoding are inverses of each other.
19016 ** The variable-length integer encoding is as follows:
28637 void *zConverted; /* Filename in OS encoding */
28638 const char *zUtf8Name = zName; /* Filename in UTF-8 encoding */
28655 /* Convert the filename to the system encoding. */
46339 ** ensures the internal encoding for the string representation is
46342 ** If pMem is not a string object, or the encoding of the string
46343 ** representation is already stored using the requested encoding, then this
46364 ** then the encoding of the value may not have changed.
46528 ** string representation of the value. Then, if the required encoding
46660 ** If pMem represents a string value, its encoding might be changed.
46976 u8 enc, /* Encoding of z. 0 for BLOBs */
47137 /* The strings are already in the correct encoding. Call the
47233 ** except the data returned is in the encoding specified by the second
47303 u8 enc, /* Encoding to use */
47382 u8 enc, /* Encoding to use */
47399 ** that it uses the encoding "enc"
48485 ** sqlite3_column_text16(), causing a translation to UTF-16 encoding.
50108 ** Given the nKey-byte encoding of a record in pKey[], parse the
50719 u8 enc, /* Encoding of z. 0 for BLOBs */
51212 /* If malloc() failed during an encoding conversion within an
51231 /* Even though there is no encoding conversion, value_blob() might
51494 u8 encoding /* Encoding for the data */
51504 rc = sqlite3VdbeMemSetStr(pVar, zData, nData, encoding, xDel);
51505 if( rc==SQLITE_OK && encoding!=0 ){
52202 u8 enc /* Use this text encoding */
52560 u8 encoding = ENC(db); /* The database encoding */
52687 int file_format; /* File format to use for encoding */
53326 if( encoding!=SQLITE_UTF8 ){
53329 if( SQLITE_OK!=sqlite3VdbeChangeEncoding(pOut, encoding) ) goto no_mem;
53358 pOut->enc = encoding;
53385 pOut->enc = encoding;
53597 Stringify(pIn1, encoding);
53598 Stringify(pIn2, encoding);
53615 pOut->enc = encoding;
53851 sqlite3VdbeChangeEncoding(&u.ag.ctx.s, encoding);
53940 applyAffinity(pIn1, SQLITE_AFF_NUMERIC, encoding);
53986 applyAffinity(pIn1, SQLITE_AFF_TEXT, encoding);
54007 applyAffinity(pIn1, SQLITE_AFF_TEXT, encoding);
54184 applyAffinity(pIn1, u.ai.affinity, encoding);
54185 applyAffinity(pIn3, u.ai.affinity, encoding);
54725 u.am.pDest->enc = encoding;
54778 applyAffinity(pIn1, u.an.cAff, encoding);
54816 int file_format; /* File format to use for encoding */
54853 applyAffinity(u.ao.pRec, u.ao.zAffinity[u.ao.pRec-u.ao.pData0], encoding);
57208 sqlite3VdbeChangeEncoding(pIn1, encoding);
57657 sqlite3VdbeChangeEncoding(u.cc.pMem, encoding);
57971 sqlite3VdbeChangeEncoding(&u.ch.sContext.s, encoding);
58525 ** text, it is up to the caller to get the encoding right.
59819 u8 enc = ENC(pParse->db); /* The database encoding */
63057 u8 enc = ENC(db); /* The text encoding used by this database */
65823 "attached databases must use the same text encoding as main database");
67331 /* If the file format and encoding in the database have not been set,
67711 ** encoding identified by the string zName, length nName.
67714 ** in the database native encoding, the collation factory is invoked to
67716 ** and the sequence is available in another text encoding, then that is
70198 ** in the encoding enc of name zName, length nName.
70224 ** collation function in the best encoding but there may be other versions
70247 ** or substituting a collation sequence of a different encoding when the
70248 ** requested collation sequence is not available in the desired encoding.
70250 ** If it is not NULL, then pColl must point to the database native encoding
70261 u8 enc, /* The desired encoding for the collating sequence */
70262 CollSeq *pColl, /* Collating sequence with native encoding, or NULL */
70272 /* No collation sequence of this type for this encoding is registered.
70293 ** an equivalent collating sequence that uses a text encoding different
70367 ** for the encoding 'enc' from the database 'db'.
70400 ** that uses encoding enc. The value returned indicates how well the
70407 ** encoding is requested, or vice versa.
70410 ** 3: A variable arguments function using the same text encoding.
70412 ** prefers UTF-8 when a UTF-16 encoding is requested, or vice versa.
70507 u8 enc, /* Preferred text encoding */
70553 ** exact match for the name, number of arguments and encoding, then add a
71950 assert( zB==sqlite3_value_text(argv[0]) ); /* Encoding did not change */
72050 assert( zBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */
72114 assert( pBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */
72176 assert( zStr==sqlite3_value_text(argv[0]) ); /* No encoding change */
72189 assert( zPattern==sqlite3_value_text(argv[1]) ); /* No encoding change */
72326 ** Compute the soundex encoding of a word.
72329 ** soundex encoding of the string X.
78133 ** PRAGMA encoding
78134 ** PRAGMA encoding = "utf-8"|"utf-16"|"utf-16le"|"utf-16be"
78136 ** In its first form, this pragma returns the encoding of the main
78141 ** encoding that will be used for the main database file if a new file
78143 ** default text encoding for the existing database is used.
78146 ** created to use the same default text encoding as the main database. If
78150 ** In the second form this pragma sets the text encoding to be used in
78154 if( sqlite3StrICmp(zLeft, "encoding")==0 ){
78170 if( !zRight ){ /* "PRAGMA encoding" */
78173 sqlite3VdbeSetColName(v, 0, COLNAME_NAME, "encoding", SQLITE_STATIC);
78180 }else{ /* "PRAGMA encoding = XXX" */
78184 ** already exists, it will be created to use the new encoding value.
78197 sqlite3ErrorMsg(pParse, "unsupported encoding: %s", zRight);
78606 ** meta[4] Db text encoding. 1:UTF-8 2:UTF-16LE 3:UTF-16BE
78621 /* If opening a non-empty database, check the text encoding. For the
78622 ** main database, set sqlite3.enc to the encoding of the main database.
78623 ** For an attached db, it is an error if the encoding is not the same
78626 if( meta[BTREE_TEXT_ENCODING-1] ){ /* text encoding */
78628 u8 encoding;
78630 encoding
78631 if( encoding==0 ) encoding = SQLITE_UTF8;
78632 ENC(db) = encoding;
78635 /* If opening an attached database, the encoding much match ENC(db) */
78638 " text encoding as main database");
85745 BTREE_TEXT_ENCODING, 0, /* Preserve the text encoding */
86802 ** the <op> using a bitmask encoding defined by WO_xxx below. The
86803 ** use of a bitmask encoding for the operator allows us to search
94292 ** to adjust the encoding. Only alphabetic characters and underscores
96398 /* If SQLITE_UTF16 is specified as the encoding type, transform this
96813 ** and the encoding is enc.
96830 /* If SQLITE_UTF16 is specified as the encoding type, transform this
98164 ** The basic unit of encoding is a variable-length integer called a
98315 ** The root node is the top node of the segment's tree after encoding
110816 int enc; /* Optimal text encoding */
110902 UChar *aChar; /* Copy of input using utf-16 encoding */