Lines Matching refs:junkout

2633     char junkout[NEW_MAX_BUFFER]; /* FIX */  in testConvertFromUnicode()  local
2654 junkout[i] = (char)0xF0; in testConvertFromUnicode()
2688 targ = junkout; in testConvertFromUnicode()
2691 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertFromUnicode()
2692 realBufferEnd = junkout + realBufferSize; in testConvertFromUnicode()
2753 sourceLen, targ-junkout); in testConvertFromUnicode()
2759 for(p = junkout;p<targ;p++) in testConvertFromUnicode()
2762 … sprintf(offset_str + strlen(offset_str), "0x%02x, ", (0xFF) & (unsigned int)junokout[p-junkout]); in testConvertFromUnicode()
2777 if(expectLen != targ-junkout) in testConvertFromUnicode()
2779 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2780 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2781 printSeqErr((const uint8_t *)junkout, (int32_t)(targ-junkout)); in testConvertFromUnicode()
2788 log_verbose("comparing %d offsets..\n", targ-junkout); in testConvertFromUnicode()
2789 if(memcmp(junokout,expectOffsets,(targ-junkout) * sizeof(int32_t) )){ in testConvertFromUnicode()
2792 printSeqErr((const uint8_t *)junkout, (int32_t)(targ-junkout)); in testConvertFromUnicode()
2794 for(p=junkout;p<targ;p++) in testConvertFromUnicode()
2795 log_err("%d,", junokout[p-junkout]); in testConvertFromUnicode()
2798 for(i=0; i<(targ-junkout); i++) in testConvertFromUnicode()
2805 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
2816 printSeqErr((const uint8_t *)junkout, expectLen); in testConvertFromUnicode()
2829 UChar junkout[NEW_MAX_BUFFER]; /* FIX */ in testConvertToUnicode() local
2850 junkout[i] = 0xFFFE; in testConvertToUnicode()
2869 targ = junkout; in testConvertToUnicode()
2872 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertToUnicode()
2873 realBufferEnd = junkout + realBufferSize; in testConvertToUnicode()
2948 sourcelen, targ-junkout); in testConvertToUnicode()
2955 for(p = junkout;p<targ;p++) in testConvertToUnicode()
2958 …sprintf(offset_str + strlen(offset_str), "0x%04x, ", (0xFFFF) & (unsigned int)junokout[p-junkout]); in testConvertToUnicode()
2976 if(memcmp(junokout,expectOffsets,(targ-junkout) * sizeof(int32_t))) in testConvertToUnicode()
2980 for(p=junkout;p<targ;p++) in testConvertToUnicode()
2981 log_err(" %2d,", junokout[p-junkout]); in testConvertToUnicode()
2984 for(i=0; i<(targ-junkout); i++) in testConvertToUnicode()
2988 for(i=0; i<(targ-junkout); i++) in testConvertToUnicode()
2989 log_err("0x%04x,", junkout[i]); in testConvertToUnicode()
2998 if(!memcmp(junkout, expect, expectlen*2)) in testConvertToUnicode()
3008 printUSeqErr(junkout, expectlen); in testConvertToUnicode()
3024 char junkout[NEW_MAX_BUFFER]; /* FIX */ in testConvertFromUnicodeWithContext() local
3045 junkout[i] = (char)0xF0; in testConvertFromUnicodeWithContext()
3079 targ = junkout; in testConvertFromUnicodeWithContext()
3082 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertFromUnicodeWithContext()
3083 realBufferEnd = junkout + realBufferSize; in testConvertFromUnicodeWithContext()
3127 sourceLen, targ-junkout); in testConvertFromUnicodeWithContext()
3133 for(p = junkout;p<targ;p++) in testConvertFromUnicodeWithContext()
3136 … sprintf(offset_str + strlen(offset_str), "0x%02x, ", (0xFF) & (unsigned int)junokout[p-junkout]); in testConvertFromUnicodeWithContext()
3151 if(expectLen != targ-junkout) in testConvertFromUnicodeWithContext()
3153 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicodeWithContext()
3154 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicodeWithContext()
3155 printSeqErr((const uint8_t *)junkout, (int32_t)(targ-junkout)); in testConvertFromUnicodeWithContext()
3162 log_verbose("comparing %d offsets..\n", targ-junkout); in testConvertFromUnicodeWithContext()
3163 if(memcmp(junokout,expectOffsets,(targ-junkout) * sizeof(int32_t) )){ in testConvertFromUnicodeWithContext()
3166 printSeqErr((const uint8_t *)junkout, (int32_t)(targ-junkout)); in testConvertFromUnicodeWithContext()
3168 for(p=junkout;p<targ;p++) in testConvertFromUnicodeWithContext()
3169 log_err("%d,", junokout[p-junkout]); in testConvertFromUnicodeWithContext()
3172 for(i=0; i<(targ-junkout); i++) in testConvertFromUnicodeWithContext()
3179 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicodeWithContext()
3190 printSeqErr((const uint8_t *)junkout, expectLen); in testConvertFromUnicodeWithContext()
3202 UChar junkout[NEW_MAX_BUFFER]; /* FIX */ in testConvertToUnicodeWithContext() local
3223 junkout[i] = 0xFFFE; in testConvertToUnicodeWithContext()
3242 targ = junkout; in testConvertToUnicodeWithContext()
3245 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertToUnicodeWithContext()
3246 realBufferEnd = junkout + realBufferSize; in testConvertToUnicodeWithContext()
3305 sourcelen, targ-junkout); in testConvertToUnicodeWithContext()
3312 for(p = junkout;p<targ;p++) in testConvertToUnicodeWithContext()
3315 …sprintf(offset_str + strlen(offset_str), "0x%04x, ", (0xFFFF) & (unsigned int)junokout[p-junkout]); in testConvertToUnicodeWithContext()
3333 if(memcmp(junokout,expectOffsets,(targ-junkout) * sizeof(int32_t))) in testConvertToUnicodeWithContext()
3337 for(p=junkout;p<targ;p++) in testConvertToUnicodeWithContext()
3338 log_err(" %2d,", junokout[p-junkout]); in testConvertToUnicodeWithContext()
3341 for(i=0; i<(targ-junkout); i++) in testConvertToUnicodeWithContext()
3345 for(i=0; i<(targ-junkout); i++) in testConvertToUnicodeWithContext()
3346 log_err("0x%04x,", junkout[i]); in testConvertToUnicodeWithContext()
3355 if(!memcmp(junkout, expect, expectlen*2)) in testConvertToUnicodeWithContext()
3365 printUSeqErr(junkout, expectlen); in testConvertToUnicodeWithContext()