Home
last modified time | relevance | path

Searched full:bom (Results 1 – 25 of 66) sorted by relevance

123

/freebsd/contrib/file/magic/Magdir/
H A Dscientific84 # 0\040HEAD as UTF-16 big endian without BOM
92 >>0 string x \b, UTF-16 (without BOM) big-endian text
93 # 0\040HEAD as UTF-16 little endian without BOM
101 >>2 string x \b, UTF-16 (without BOM) little-endian text
102 # Note: UTF-16 with BOM variants already described above by first test as "GEDCOM genealogy text"
103 # 0\040HEAD as UTF-16 big endian with BOM
105 # 0\040HEAD as UTF-16 little endian with BOM
H A Dispell122 # starting with UTF-8 Byte Order Mark (BOM) https://en.wikipedia.org/wiki/Byte_order_mark
124 # starting with UTF-8 Byte Order Mark (BOM) followed by comment starting character
126 # starting with UTF-8 BOM and with SET character command followed by whitespace
204 # for control reasons show first lines for variant starting with ByteOrderMark (BOM=\xEF\xBB\xBF)
205 >1 ubeshort =0xBBBF \b, with BOM
H A Dunicode4 # Unicode: BOM prefixed text files - Adrian Havill <havill@turbolinux.co.jp>
H A Dsosi18 # separator (any number of " ", "\t", "\n" or "\r"), might have BOM at
/freebsd/crypto/heimdal/lib/wind/
H A Dutf8.c278 * If the flags WIND_RW_BOM is set, check for BOM. If not BOM is in wind_ucs2read()
284 uint16_t bom = (p[0] << 8) + p[1]; in wind_ucs2read() local
285 if (bom == 0xfffe || bom == 0xfeff) { in wind_ucs2read()
286 little = (bom == 0xfffe); in wind_ucs2read()
343 uint16_t bom = 0xfffe; in wind_ucs2write() local
349 p[0] = (bom ) & 0xff; in wind_ucs2write()
350 p[1] = (bom >> 8) & 0xff; in wind_ucs2write()
352 p[1] = (bom ) & 0xff; in wind_ucs2write()
353 p[0] = (bom >> 8) & 0xff; in wind_ucs2write()
H A Dtest-rw.c65 /* only BE BOM */
81 /* BOM only */
105 /* BOM + water + z */
113 /* BOM + water + z */
129 /* error, missing BOM */
H A Dwind_err.et20 error_code NO_BOM, "No byte order mark (BOM) in string"
/freebsd/contrib/nvi/common/
H A Dencoding.c51 * Based on RFC 3629. UTF-8 with BOM is not accepted.
123 int bom; in looks_utf16() local
129 bom = buf[0] << 8 ^ buf[1]; in looks_utf16()
130 if (bom == 0xFFFE) in looks_utf16()
132 else if (bom == 0xFEFF) in looks_utf16()
/freebsd/crypto/krb5/src/lib/krb5/unicode/ucdata/
H A Ducdata.c61 krb5_ui_2 bom; member
167 if (hdr.bom == 0xfffe) { in _ucprop_load()
202 if (hdr.bom == 0xfffe) { in _ucprop_load()
219 if (hdr.bom == 0xfffe) { in _ucprop_load()
348 if (hdr.bom == 0xfffe) { in _uccase_load()
373 if (hdr.bom == 0xfffe) { in _uccase_load()
543 if (hdr.bom == 0xfffe) { in _uccomp_load()
560 if (hdr.bom == 0xfffe) { in _uccomp_load()
741 if (hdr.bom == 0xfffe) { in _ucdcmp_load()
759 if (hdr.bom == 0xfffe) { in _ucdcmp_load()
[all …]
/freebsd/contrib/bearssl/src/x509/
H A Dasn1.t0488 \ set to 0 on error. Leading BOM are ignored.
490 \ Skip leading BOM (U+FEFF when off is 1).
526 \ and the length is written in the first pad byte. A leading BOM is
527 \ honoured (big-endian is assumed if there is no BOM). A code point of
535 \ Leading BOM, and indicates little-endian.
543 \ Big-endian BOM, or no BOM.
/freebsd/contrib/libyaml/tests/
H A Dtest-reader.c108 {"no bom (utf-8)", "Hi is \xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82!", 13},
109 {"bom (utf-8)", "\xef\xbb\xbfHi is \xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82!", 13},
110 …{"bom (utf-16-le)", "\xff\xfeH\x00i\x00 \x00i\x00s\x00 \x00\x1f\x04@\x04""8\x04""2\x04""5\x04""B\x…
111 …{"bom (utf-16-be)", "\xfe\xff\x00H\x00i\x00 \x00i\x00s\x00 \x04\x1f\x04@\x04""8\x04""2\x04""5\x04"…
/freebsd/contrib/lyaml/spec/
H A Dext_yaml_scanner_spec.yaml26 k = yaml.scanner "# no BOM"
35 - it recognizes UTF-16 BOM:
36 k = yaml.scanner (BOM .. " BOM")
H A Dext_yaml_parser_spec.yaml20 e = yaml.parser "# no BOM"
29 - it recognizes UTF-16 BOM:
30 e = yaml.parser (BOM .. " BOM")
/freebsd/sys/geom/label/
H A Dg_label_gpt.c74 } else if (ch == 0xfffe) { /* BOM (U+FEFF) swapped. */ in sbuf_nprintf_utf16()
77 } else if (ch == 0xfeff) /* BOM (U+FEFF) unswapped. */ in sbuf_nprintf_utf16()
/freebsd/crypto/heimdal/doc/doxyout/wind/man/man3/
H A Dwind.3143 If the flags WIND_RW_BOM is set, check for BOM. If not BOM is found, check is LE/BE flag is already…
/freebsd/lib/libiconv_modules/UTF1632/
H A Dcitrus_utf1632.c255 const char *bom = &_bom[0]; in _citrus_UTF1632_wcrtomb_priv() local
265 bom += 2; in _citrus_UTF1632_wcrtomb_priv()
269 memcpy(s, bom, cnt); in _citrus_UTF1632_wcrtomb_priv()
/freebsd/contrib/lua/src/
H A Dlauxlib.c750 ** Skip an optional BOM at the start of a stream. If there is an
751 ** incomplete BOM (the first character is correct but the rest is
757 if (c == 0xEF && getc(f) == 0xBB && getc(f) == 0xBF) /* correct BOM? */ in skipBOM()
758 return getc(f); /* ignore BOM and return next char */ in skipBOM()
759 else /* no (valid) BOM */ in skipBOM()
765 ** reads the first character of file 'f' and skips an optional BOM mark
768 ** first "valid" character of the file (after the optional BOM and
/freebsd/share/i18n/csmapper/APPLE/
H A DTHAI%UCS.src31 # 3.2 WORD JOINER instead of ZWNBSP (BOM).
165 # WORD JOINER instead of U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM)
H A DUCS%THAI.src31 # 3.2 WORD JOINER instead of ZWNBSP (BOM).
165 # WORD JOINER instead of U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM)
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DProgram.inc549 char BOM[2];
551 memcpy(BOM, &src, 2);
552 OS.write(BOM, 2);
/freebsd/contrib/libxo/tests/core/
H A Dtest_11.c97 entry..." The BOM at the beginning of MSG indicates UTF-8 encoding. in main()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DConvertUTFWrapper.cpp110 // Skip the BOM for conversion. in convertUTF16ToUTF8String()
168 // Skip the BOM for conversion. in convertUTF32ToUTF8String()
/freebsd/sys/geom/bde/
H A Dg_bde_crypt.c
/freebsd/tools/tools/locale/tools/
H A Dmkwidths.pl52 # Remove BOM
/freebsd/contrib/file/src/
H A Dencoding.c116 DPRINTF(("utf8/bom %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
117 *code = "Unicode text, UTF-8 (with BOM)"; in file_encoding()
426 * Decide whether some text looks like UTF-8 with BOM. If there is no
427 * BOM, return -1; otherwise return the result of looks_utf8 on the

123