Home | History | Annotate | Download | only in cintltst

Lines Matching refs:buffer

757             log_err("Did not consume whole buffer on first call.\n");
763 log_err("Did not consume whole buffer on second call.\n");
861 log_err("Did not consume whole buffer on first call.\n");
867 log_err("Did not consume whole buffer on second call.\n");
893 log_err("Did not consume whole buffer on first call.\n");
899 log_err("Did not consume whole buffer on second call.\n");
1014 char buffer[MAX_LENGTH];
1031 buffer[i]=(char)0xF0;
1037 targ=buffer;
1055 sourceLen, targ-buffer);
1057 if(expectLen != targ-buffer)
1059 log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage);
1060 log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage);
1061 printSeqErr((const unsigned char *)buffer, (int32_t)(targ-buffer));
1066 if(memcmp(buffer, expect, expectLen)){
1069 printSeqErr((const unsigned char *)buffer, expectLen);
1079 log_verbose("comparing %d offsets..\n", targ-buffer);
1080 if(memcmp(offsetBuffer,expectOffsets,(targ-buffer) * sizeof(int32_t) )){
1083 printSeqErr((const unsigned char*)buffer, (int32_t)(targ-buffer));
1084 for(p=buffer;p<targ;p++)
1085 log_info("%d, ", offsetBuffer[p-buffer]);
1087 for(i=0; i< (targ-buffer); i++)
1104 UChar buffer[MAX_LENGTH];
1124 buffer[i]=0xFFFE;
1130 targ=buffer;
1151 sourceLen, targ-buffer);
1159 if(memcmp(offsetBuffer, expectOffsets, (targ-buffer) * sizeof(int32_t))){
1163 for(p=buffer;p<targ;p++)
1164 log_info("%d, ", offsetBuffer[p-buffer]);
1166 for(i=0; i<(targ-buffer); i++)
1169 for(i=0; i<(targ-buffer); i++)
1170 log_info("0x%04X,", buffer[i]);
1177 if(memcmp(buffer, expect, expectLen*2)){
1180 printUSeqErr(buffer, expectLen);
1263 log_err("Error, overflowed the real buffer while about to call fromUnicode! targ=%08lx %s", targ, gNuConvTestName);
1435 log_err("Error, the end would overflow the real output buffer while about to call toUnicode! tarjey=%08lx %s",targ,gNuConvTestName);
1459 } while ( (status == U_BUFFER_OVERFLOW_ERROR) || (U_SUCCESS(status) && (srcLimit < realSourceEnd)) ); /* while we just need another buffer */
1797 UChar buffer[2];
1819 target=buffer;
1820 targetLimit=buffer+LENGTHOF(buffer);
1824 if(U_FAILURE(errorCode) || source!=sourceLimit || target!=buffer) {
1826 cnvName, length, u_errorName(errorCode), (int)(sourceLimit-source), (int)(target-buffer));
1831 target=buffer;
1833 if(errorCode!=U_TRUNCATED_CHAR_FOUND || target!=buffer) {
1835 cnvName, (int)length, u_errorName(errorCode), (int)(target-buffer));
1843 target=buffer;
1845 if(errorCode!=U_TRUNCATED_CHAR_FOUND || source!=sourceLimit || target!=buffer) {
1847 cnvName, length, u_errorName(errorCode), (int)(sourceLimit-source), (int)(target-buffer));