Home | History | Annotate | Download | only in cintltst

Lines Matching defs:BOM

243     UChar                BOM                 =   0x0000;
727 ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), &BOM, &oldFromUAction, &oldFromUContext, &err);
734 if (MIA1_2 != otherUnicodeAction(MIA1) || MIA1Context2 != &BOM)
741 if (U_FAILURE(err) || oldFromUAction != otherUnicodeAction(MIA1) || oldFromUContext != &BOM)
755 ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), &BOM, &oldFromUAction, &oldFromUContext, &err);
757 if(MIA1_2 == otherUnicodeAction(MIA1) || MIA1Context2 == &BOM){
767 ucnv_setToUCallBack(myConverter,otherCharAction(MIA2), &BOM, &oldToUAction, &oldToUContext, &err);
774 if (MIA2_2 != otherCharAction(MIA2) || MIA2Context2 != &BOM)
781 if (U_FAILURE(err) || oldToUAction != otherCharAction(MIA2) || oldToUContext != &BOM)
795 if (MIA2_2 == otherCharAction(MIA2) || MIA2Context2 == &BOM){
839 /*Reads the BOM*/
842 size_t numRead = fread(&BOM, sizeof(UChar), 1, ucs_file_in);
845 if (BOM!=0xFEFF && BOM!=0xFFFE)
847 log_err("File Missing BOM...Bailing!\n");
858 ucs_file_buffer[i-1] = (UChar)((BOM==0xFEFF)?myUChar:((myUChar >> 8) | (myUChar << 8))); /*adjust if BIG_ENDIAN*/
862 ucs_file_buffer[i-1] = (UChar)((BOM==0xFEFF)?myUChar:((myUChar >> 8) | (myUChar << 8))); /*adjust if BIG_ENDIAN Corner Case*/
2757 0xfe, 0xff /* BOM only, no text */
2760 0xff, 0xfe, 0, 0 /* BOM only, no text */
2827 log_err("ucnv_fromAlgorithmic(UTF-16 only BOM -> Shift-JIS) fails (%s expect U_STRING_NOT_TERMINATED_WARNING), returns %d expect 0\n",
2836 log_err("ucnv_fromAlgorithmic(UTF-32 only BOM -> Shift-JIS) fails (%s expect U_STRING_NOT_TERMINATED_WARNING), returns %d expect 0\n",
3509 /* UTF-16/32: test that the BOM is output before the sub character */
3522 log_err("ucnv_fromUChars(UTF-16, U+D900) did not write a BOM\n");
3537 log_err("ucnv_fromUChars(UTF-32, U+D900) did not write a BOM\n");
3649 "x-UTF-16LE-BOM", "UTF-16LE,version=1"
3707 log_err("unexpected %s BOM writing behavior -- %s\n",