Lines Matching defs:round*
632 * Used only for round-trip testing of the difference encoding and decoding.
668 * Also checks for roundtripping of the difference encoding.
786 * Prints some of the #define values and performs round-trip tests of the
880 roundtripBOCU1(UConverter *bocu1, int32_t number, const UChar *text, int32_t length) {
881 UChar *roundtripRef, *roundtripICU;
884 int32_t bocu1RefLength, bocu1ICULength, roundtripRefLength, roundtripICULength;
887 roundtripRef = malloc(DEFAULT_BUFFER_SIZE * sizeof(UChar));
888 roundtripICU = malloc(DEFAULT_BUFFER_SIZE * sizeof(UChar));
908 roundtripRefLength=readString((uint8_t *)bocu1Ref, bocu1RefLength, roundtripRef);
909 if(roundtripRefLength<0) {
913 roundtripICULength=ucnv_toUChars(bocu1, roundtripICU, DEFAULT_BUFFER_SIZE, bocu1ICU, bocu1ICULength, &errorCode);
919 if(length!=roundtripRefLength || 0!=u_memcmp(text, roundtripRef, length)) {
920 log_err("BOCU-1 -> Unicode: original(%d)[%d]!=reference[%d]\n", number, length, roundtripRefLength);
923 if(roundtripRefLength!=roundtripICULength || 0!=u_memcmp(roundtripRef, roundtripICU, roundtripRefLength)) {
924 log_err("BOCU-1 -> Unicode: reference(%d)[%d]!=ICU[%d]\n", number, roundtripRefLength, roundtripICULength);
928 free(roundtripRef);
929 free(roundtripICU);
975 * identical results and roundtripping.
1000 roundtripBOCU1(bocu1, 1, text, length);
1010 roundtripBOCU1(bocu1, 2, text, length);
1021 roundtripBOCU1(bocu1, 3, text, length);