Lines Matching refs:BOM
241 UChar BOM = 0x0000;
725 ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), &BOM, &oldFromUAction, &oldFromUContext, &err);
732 if (MIA1_2 != otherUnicodeAction(MIA1) || MIA1Context2 != &BOM)
739 if (U_FAILURE(err) || oldFromUAction != otherUnicodeAction(MIA1) || oldFromUContext != &BOM)
753 ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), &BOM, &oldFromUAction, &oldFromUContext, &err);
755 if(MIA1_2 == otherUnicodeAction(MIA1) || MIA1Context2 == &BOM){
765 ucnv_setToUCallBack(myConverter,otherCharAction(MIA2), &BOM, &oldToUAction, &oldToUContext, &err);
772 if (MIA2_2 != otherCharAction(MIA2) || MIA2Context2 != &BOM)
779 if (U_FAILURE(err) || oldToUAction != otherCharAction(MIA2) || oldToUContext != &BOM)
793 if (MIA2_2 == otherCharAction(MIA2) || MIA2Context2 == &BOM){
837 /*Reads the BOM*/
840 size_t numRead = fread(&BOM, sizeof(UChar), 1, ucs_file_in);
843 if (BOM!=0xFEFF && BOM!=0xFFFE)
845 log_err("File Missing BOM...Bailing!\n");
856 ucs_file_buffer[i-1] = (UChar)((BOM==0xFEFF)?myUChar:((myUChar >> 8) | (myUChar << 8))); /*adjust if BIG_ENDIAN*/
860 ucs_file_buffer[i-1] = (UChar)((BOM==0xFEFF)?myUChar:((myUChar >> 8) | (myUChar << 8))); /*adjust if BIG_ENDIAN Corner Case*/
2758 0xfe, 0xff /* BOM only, no text */
2762 0xff, 0xfe, 0, 0 /* BOM only, no text */
2830 log_err("ucnv_fromAlgorithmic(UTF-16 only BOM -> Shift-JIS) fails (%s expect U_STRING_NOT_TERMINATED_WARNING), returns %d expect 0\n",
2840 log_err("ucnv_fromAlgorithmic(UTF-32 only BOM -> Shift-JIS) fails (%s expect U_STRING_NOT_TERMINATED_WARNING), returns %d expect 0\n",
3514 /* UTF-16/32: test that the BOM is output before the sub character */
3527 log_err("ucnv_fromUChars(UTF-16, U+D900) did not write a BOM\n");
3542 log_err("ucnv_fromUChars(UTF-32, U+D900) did not write a BOM\n");
3654 "x-UTF-16LE-BOM", "UTF-16LE,version=1"
3712 log_err("unexpected %s BOM writing behavior -- %s\n",