Lines Matching refs:dest
885 UChar dest[64]; in Test_FromUTF8() local
919 dest[0]=dest[1]=99; in Test_FromUTF8()
921 …destPointer=u_strFromUTF8(dest, UPRV_LENGTHOF(dest), &destLength, (const char *)bytes, 3, &errorCo… in Test_FromUTF8()
922 if(U_FAILURE(errorCode) || destPointer!=dest || destLength!=1 || dest[0]!=0x95c || dest[1]!=0) { in Test_FromUTF8()
984 UChar dest[64]; in Test_FromUTF8Lenient() local
992 dest[0]=0x1234; in Test_FromUTF8Lenient()
995 pDest=u_strFromUTF8Lenient(dest, 1, &destLength, NULL, -1, &errorCode); in Test_FromUTF8Lenient()
996 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0x1234) { in Test_FromUTF8Lenient()
1000 dest[0]=0x1234; in Test_FromUTF8Lenient()
1008 dest[0]=0x1234; in Test_FromUTF8Lenient()
1011 pDest=u_strFromUTF8Lenient(dest, 1, &destLength, (const char *)bytes, -1, &errorCode); in Test_FromUTF8Lenient()
1012 if(errorCode!=U_MEMORY_ALLOCATION_ERROR || dest[0]!=0x1234) { in Test_FromUTF8Lenient()
1016 dest[0]=0x1234; in Test_FromUTF8Lenient()
1019 pDest=u_strFromUTF8Lenient(dest, 1, &destLength, (const char *)bytes, -1, NULL); in Test_FromUTF8Lenient()
1020 if(dest[0]!=0x1234) { in Test_FromUTF8Lenient()
1035 dest[0]=0x1234; in Test_FromUTF8Lenient()
1040 pDest!=NULL || dest[0]!=0x1234 || destLength!=destLength0 in Test_FromUTF8Lenient()
1047 dest[destLength0-1]=0x1234; in Test_FromUTF8Lenient()
1050 pDest=u_strFromUTF8Lenient(dest, destLength0-1, &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1052 dest[destLength0-1]!=0x1234 || destLength!=destLength0 in Test_FromUTF8Lenient()
1059 dest[0]=dest[destLength0]=0x1234; in Test_FromUTF8Lenient()
1062 pDest=u_strFromUTF8Lenient(dest, UPRV_LENGTHOF(dest), &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1064 pDest!=dest || dest[destLength0]!=0 || in Test_FromUTF8Lenient()
1065 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1071 dest[0]=dest[destLength0]=0x1234; in Test_FromUTF8Lenient()
1074 pDest=u_strFromUTF8Lenient(dest, destLength0, &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1076 pDest!=dest || dest[destLength0]!=0x1234 || in Test_FromUTF8Lenient()
1077 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1083 dest[0]=0x1234; in Test_FromUTF8Lenient()
1088 pDest!=NULL || dest[0]!=0x1234 || destLength!=srcLength in Test_FromUTF8Lenient()
1095 dest[srcLength-1]=0x1234; in Test_FromUTF8Lenient()
1098 pDest=u_strFromUTF8Lenient(dest, srcLength-1, &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1100 dest[srcLength-1]!=0x1234 || destLength!=srcLength in Test_FromUTF8Lenient()
1107 dest[0]=dest[destLength0]=0x1234; in Test_FromUTF8Lenient()
1110 … pDest=u_strFromUTF8Lenient(dest, UPRV_LENGTHOF(dest), &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1112 pDest!=dest || dest[destLength0]!=0 || in Test_FromUTF8Lenient()
1113 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1119 dest[0]=dest[srcLength]=dest[destLength0]=0x1234; in Test_FromUTF8Lenient()
1122 pDest=u_strFromUTF8Lenient(dest, srcLength, &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1125 pDest!=dest || dest[destLength0]!=0x1234 || in Test_FromUTF8Lenient()
1126 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1132 pDest!=dest || dest[destLength0]!=0 || in Test_FromUTF8Lenient()
1133 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1548 char dest[200]; in Test_strToJavaModifiedUTF8() local
1558 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1560 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1561 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strToJavaModifiedUTF8()
1562 dest[length]!=0 in Test_strToJavaModifiedUTF8()
1566 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1569 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), NULL, in Test_strToJavaModifiedUTF8()
1571 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1572 0!=memcmp(dest, expected, UPRV_LENGTHOF(expected)) || in Test_strToJavaModifiedUTF8()
1573 dest[UPRV_LENGTHOF(expected)]!=0 in Test_strToJavaModifiedUTF8()
1577 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1580 p=u_strToJavaModifiedUTF8(dest, UPRV_LENGTHOF(expected), &length, in Test_strToJavaModifiedUTF8()
1582 if( errorCode!=U_STRING_NOT_TERMINATED_WARNING || p!=dest || in Test_strToJavaModifiedUTF8()
1583 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strToJavaModifiedUTF8()
1584 dest[length]!=(char)0xff in Test_strToJavaModifiedUTF8()
1588 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1591 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), &length, src, -1, &errorCode); in Test_strToJavaModifiedUTF8()
1592 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1593 length!=expectedTerminatedLength || 0!=memcmp(dest, expected, length) || in Test_strToJavaModifiedUTF8()
1594 dest[length]!=0 in Test_strToJavaModifiedUTF8()
1598 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1601 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), NULL, src, -1, &errorCode); in Test_strToJavaModifiedUTF8()
1602 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1603 0!=memcmp(dest, expected, expectedTerminatedLength) || in Test_strToJavaModifiedUTF8()
1604 dest[expectedTerminatedLength]!=0 in Test_strToJavaModifiedUTF8()
1608 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1611 p=u_strToJavaModifiedUTF8(dest, UPRV_LENGTHOF(expected)/2, &length, in Test_strToJavaModifiedUTF8()
1614 length!=UPRV_LENGTHOF(expected) || dest[UPRV_LENGTHOF(expected)/2]!=(char)0xff in Test_strToJavaModifiedUTF8()
1618 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1624 length!=UPRV_LENGTHOF(expected) || dest[0]!=(char)0xff in Test_strToJavaModifiedUTF8()
1628 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1631 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1633 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1634 length!=UPRV_LENGTHOF(shortExpected) || 0!=memcmp(dest, shortExpected, length) || in Test_strToJavaModifiedUTF8()
1635 dest[length]!=0 in Test_strToJavaModifiedUTF8()
1639 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1642 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1644 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1645 length!=UPRV_LENGTHOF(asciiNulExpected) || 0!=memcmp(dest, asciiNulExpected, length) || in Test_strToJavaModifiedUTF8()
1646 dest[length]!=0 in Test_strToJavaModifiedUTF8()
1650 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1653 p=u_strToJavaModifiedUTF8(dest, (int32_t)sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1655 if( U_FAILURE(errorCode) || p!=dest || in Test_strToJavaModifiedUTF8()
1656 length!=0 || dest[0]!=0 in Test_strToJavaModifiedUTF8()
1662 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1665 p=u_strToJavaModifiedUTF8(NULL, sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1667 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=(char)0xff) { in Test_strToJavaModifiedUTF8()
1670 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1673 p=u_strToJavaModifiedUTF8(dest, -1, &length, in Test_strToJavaModifiedUTF8()
1675 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=(char)0xff) { in Test_strToJavaModifiedUTF8()
1678 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1681 p=u_strToJavaModifiedUTF8(dest, sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1683 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=(char)0xff) { in Test_strToJavaModifiedUTF8()
1686 memset(dest, 0xff, sizeof(dest)); in Test_strToJavaModifiedUTF8()
1689 p=u_strToJavaModifiedUTF8(dest, sizeof(dest), &length, in Test_strToJavaModifiedUTF8()
1691 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=(char)0xff) { in Test_strToJavaModifiedUTF8()
1739 UChar dest[200]; in Test_strFromJavaModifiedUTF8() local
1749 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1752 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1753 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1754 dest[length]!=0 || in Test_strFromJavaModifiedUTF8()
1759 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1762 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), NULL, in Test_strFromJavaModifiedUTF8()
1765 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1766 0!=memcmp(dest, expected, UPRV_LENGTHOF(expected)) || in Test_strFromJavaModifiedUTF8()
1767 dest[UPRV_LENGTHOF(expected)]!=0 || in Test_strFromJavaModifiedUTF8()
1772 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1775 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1778 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1779 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1780 dest[length]!=0 in Test_strFromJavaModifiedUTF8()
1784 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1787 p=u_strFromJavaModifiedUTF8WithSub(dest, UPRV_LENGTHOF(expected), &length, in Test_strFromJavaModifiedUTF8()
1790 if( errorCode!=U_STRING_NOT_TERMINATED_WARNING || p!=dest || in Test_strFromJavaModifiedUTF8()
1791 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1792 dest[length]!=0xffff || in Test_strFromJavaModifiedUTF8()
1797 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1800 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1803 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1804 length!=expectedTerminatedLength || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1805 dest[length]!=0 || in Test_strFromJavaModifiedUTF8()
1810 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1813 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), NULL, in Test_strFromJavaModifiedUTF8()
1816 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1817 0!=memcmp(dest, expected, expectedTerminatedLength) || in Test_strFromJavaModifiedUTF8()
1818 dest[expectedTerminatedLength]!=0 || in Test_strFromJavaModifiedUTF8()
1823 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1826 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1829 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1830 length!=expectedTerminatedLength || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1831 dest[length]!=0 in Test_strFromJavaModifiedUTF8()
1835 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1838 p=u_strFromJavaModifiedUTF8WithSub(dest, UPRV_LENGTHOF(expected)/2, &length, in Test_strFromJavaModifiedUTF8()
1842 length!=UPRV_LENGTHOF(expected) || dest[UPRV_LENGTHOF(expected)/2]!=0xffff in Test_strFromJavaModifiedUTF8()
1846 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1853 length!=UPRV_LENGTHOF(expected) || dest[0]!=0xffff in Test_strFromJavaModifiedUTF8()
1857 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1860 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1863 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1864 length!=UPRV_LENGTHOF(shortExpected) || 0!=memcmp(dest, shortExpected, length) || in Test_strFromJavaModifiedUTF8()
1865 dest[length]!=0 || in Test_strFromJavaModifiedUTF8()
1870 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1873 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1876 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1877 length!=UPRV_LENGTHOF(asciiNulExpected) || 0!=memcmp(dest, asciiNulExpected, length) || in Test_strFromJavaModifiedUTF8()
1878 dest[length]!=0 || in Test_strFromJavaModifiedUTF8()
1883 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1886 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1888 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1889 length!=0 || dest[0]!=0 || in Test_strFromJavaModifiedUTF8()
1894 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1897 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1900 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1901 … length!=UPRV_LENGTHOF(invalidExpectedFFFD) || 0!=memcmp(dest, invalidExpectedFFFD, length) || in Test_strFromJavaModifiedUTF8()
1902 dest[length]!=0 || in Test_strFromJavaModifiedUTF8()
1907 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1910 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1913 if( U_FAILURE(errorCode) || p!=dest || in Test_strFromJavaModifiedUTF8()
1914 … length!=UPRV_LENGTHOF(invalidExpected50000) || 0!=memcmp(dest, invalidExpected50000, length) || in Test_strFromJavaModifiedUTF8()
1915 dest[length]!=0 || in Test_strFromJavaModifiedUTF8()
1920 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1923 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1926 if(errorCode!=U_INVALID_CHAR_FOUND || dest[0]!=0xffff || numSubstitutions!=0) { in Test_strFromJavaModifiedUTF8()
1929 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1932 p=u_strFromJavaModifiedUTF8WithSub(dest, (int32_t)sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1936 length>=UPRV_LENGTHOF(expected) || dest[UPRV_LENGTHOF(expected)-1]!=0xffff || in Test_strFromJavaModifiedUTF8()
1943 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1946 p=u_strFromJavaModifiedUTF8WithSub(NULL, sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1949 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0xffff) { in Test_strFromJavaModifiedUTF8()
1952 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1955 p=u_strFromJavaModifiedUTF8WithSub(dest, -1, &length, in Test_strFromJavaModifiedUTF8()
1958 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0xffff) { in Test_strFromJavaModifiedUTF8()
1961 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1964 p=u_strFromJavaModifiedUTF8WithSub(dest, sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1967 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0xffff) { in Test_strFromJavaModifiedUTF8()
1970 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1973 p=u_strFromJavaModifiedUTF8WithSub(dest, sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1975 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0xffff) { in Test_strFromJavaModifiedUTF8()
1978 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1981 p=u_strFromJavaModifiedUTF8WithSub(dest, sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1984 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0xffff) { in Test_strFromJavaModifiedUTF8()
1987 memset(dest, 0xff, sizeof(dest)); in Test_strFromJavaModifiedUTF8()
1990 p=u_strFromJavaModifiedUTF8WithSub(dest, sizeof(dest), &length, in Test_strFromJavaModifiedUTF8()
1993 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || dest[0]!=0xffff) { in Test_strFromJavaModifiedUTF8()