Home | History | Annotate | Download | only in common

Lines Matching refs:bom

32  * "with BOM" variants of UTF-16BE and UTF-16LE.
68 /* write the BOM if necessary */
70 static const char bom[]={ (char)0xfe, (char)0xff };
72 bom, 2,
573 cnv->mode=8; /* no BOM handling */
575 cnv->mode=0; /* Java-specific "UnicodeBig" requires BE BOM or no BOM */
579 /* reset fromUnicode for "UnicodeBig": prepare to output the UTF-16BE BOM */
667 /* write the BOM if necessary */
669 static const char bom[]={ (char)0xff, (char)0xfe };
671 bom, 2,
1172 cnv->mode=8; /* no BOM handling */
1174 cnv->mode=0; /* Java-specific "UnicodeLittle" requires LE BOM or no BOM */
1178 /* reset fromUnicode for "UnicodeLittle": prepare to output the UTF-16LE BOM */
1244 /* UTF-16 (Detect BOM) ------------------------------------------------------ */
1247 * Detect a BOM at the beginning of the stream and select UTF-16BE or UTF-16LE
1265 * - UTF-16,version=1 (Java "Unicode" encoding) treats a missing BOM as an error.
1267 * UTF-16LE,version=1 (Java "UnicodeLittle" encoding) treat a reverse BOM as an error.
1277 /* reset fromUnicode: prepare to output the UTF-16PE BOM */
1336 * If we detect a BOM in this buffer, then we must add the BOM size to the
1337 * offsets because the actual converter function will not see and count the BOM.
1338 * offsetDelta will have the number of the BOM bytes that are in the current buffer.
1353 * 6: BOM error, continue with BE
1354 * 7: BOM error, continue with LE
1359 state=7; /* illegal reverse BOM for Java "UnicodeLittle" */
1365 state=6; /* illegal reverse BOM for Java "UnicodeBig" */
1370 state=6; /* illegal missing BOM for Java "Unicode" */
1373 /* BOM detected, consume it */
1378 /* ok: no BOM, and not a reverse BOM */
1393 * error: missing BOM, or reverse BOM
1394 * UTF-16,version=1: Java-specific "Unicode" requires a BOM.
1395 * UTF-16BE,version=1: Java-specific "UnicodeBig" requires a BE BOM or no BOM.
1396 * UTF-16LE,version=1: Java-specific "UnicodeLittle" requires an LE BOM or no BOM.
1398 /* report the non-BOM or reverse BOM as an illegal sequence */
1432 /* add BOM size to offsets - see comment at offsetDelta declaration */
1501 1204, /* CCSID for BOM sensitive UTF-16 */
1546 1204, /* CCSID for BOM sensitive UTF-16 */