Lines Matching refs:BOM
278 UChar BOM = 0x0000;
763 ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), &BOM, &oldFromUAction, &oldFromUContext, &err);
770 if (MIA1_2 != otherUnicodeAction(MIA1) || MIA1Context2 != &BOM)
777 if (U_FAILURE(err) || oldFromUAction != otherUnicodeAction(MIA1) || oldFromUContext != &BOM)
791 ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), &BOM, &oldFromUAction, &oldFromUContext, &err);
793 if(MIA1_2 == otherUnicodeAction(MIA1) || MIA1Context2 == &BOM){
803 ucnv_setToUCallBack(myConverter,otherCharAction(MIA2), &BOM, &oldToUAction, &oldToUContext, &err);
810 if (MIA2_2 != otherCharAction(MIA2) || MIA2Context2 != &BOM)
817 BOM)
831 if (MIA2_2 == otherCharAction(MIA2) || MIA2Context2 == &BOM){
875 /*Reads the BOM*/
876 fread(&BOM, sizeof(UChar), 1, ucs_file_in);
877 if (BOM!=0xFEFF && BOM!=0xFFFE)
879 log_err("File Missing BOM...Bailing!\n");
889 ucs_file_buffer[i-1] = (UChar)((BOM==0xFEFF)?myUChar:((myUChar >> 8) | (myUChar << 8))); /*adjust if BIG_ENDIAN*/
893 ucs_file_buffer[i-1] = (UChar)((BOM==0xFEFF)?myUChar:((myUChar >> 8) | (myUChar << 8))); /*adjust if BIG_ENDIAN Corner Case*/
2699 0xfe, 0xff /* BOM only, no text */
2702 0xff, 0xfe, 0, 0 /* BOM only, no text */
2769 log_err("ucnv_fromAlgorithmic(UTF-16 only BOM -> Shift-JIS) fails (%s expect U_STRING_NOT_TERMINATED_WARNING), returns %d expect 0\n",
2778 log_err("ucnv_fromAlgorithmic(UTF-32 only BOM -> Shift-JIS) fails (%s expect U_STRING_NOT_TERMINATED_WARNING), returns %d expect 0\n",
3456 /* UTF-16/32: test that the BOM is output before the sub character */
3469 log_err("ucnv_fromUChars(UTF-16, U+D900) did not write a BOM\n");
3484 log_err("ucnv_fromUChars(UTF-32, U+D900) did not write a BOM\n");
3596 "x-UTF-16LE-BOM", "UTF-16LE,version=1"
3654 log_err("unexpected %s BOM writing behavior -- %s\n",