Lines Matching refs:numSubstitutions
214 int32_t numSubstitutions; in Test_strToUTF32_surrogates() local
289 numSubstitutions = -1; in Test_strToUTF32_surrogates()
291 … u_strToUTF32WithSub(u32Target, 0, &u32DestLen, surr16, len16-1, 0xfffd, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
292 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != 7 || numSubstitutions != 2) { in Test_strToUTF32_surrogates()
299 …32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, len16-1, 0xfffd, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
300 …if(err != U_ZERO_ERROR || u32DestLen != 7 || numSubstitutions != 2 || uprv_memcmp(u32Target, expec… in Test_strToUTF32_surrogates()
307 u_strToUTF32WithSub(NULL, 0, &u32DestLen, surr16, -1, 0x12345, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
308 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != 7 || numSubstitutions != 2) { in Test_strToUTF32_surrogates()
315 …ub(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, -1, 0x12345, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
316 …if(err != U_ZERO_ERROR || u32DestLen != 7 || numSubstitutions != 2 || uprv_memcmp(u32Target, expec… in Test_strToUTF32_surrogates()
394 int32_t numSubstitutions; in Test_strFromUTF32_surrogates() local
470 numSubstitutions = -1; in Test_strFromUTF32_surrogates()
472 u_strFromUTF32WithSub(uTarget, 0, &uDestLen, surr32, len32-1, 0xfffd, &numSubstitutions, &err); in Test_strFromUTF32_surrogates()
473 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 10 || numSubstitutions != 4) { in Test_strFromUTF32_surrogates()
480 …hSub(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32, len32-1, 0xfffd, &numSubstitutions, &err); in Test_strFromUTF32_surrogates()
481 …if(err != U_ZERO_ERROR || uDestLen != 10 || numSubstitutions != 4 || u_memcmp(uTarget, expected_FF… in Test_strFromUTF32_surrogates()
488 u_strFromUTF32WithSub(NULL, 0, &uDestLen, surr32, -1, 0x12345, &numSubstitutions, &err); in Test_strFromUTF32_surrogates()
489 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 14 || numSubstitutions != 4) { in Test_strFromUTF32_surrogates()
496 …2WithSub(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32, -1, 0x12345, &numSubstitutions, &err); in Test_strFromUTF32_surrogates()
497 …if(err != U_ZERO_ERROR || uDestLen != 14 || numSubstitutions != 4 || u_memcmp(uTarget, expected_12… in Test_strFromUTF32_surrogates()
521 int32_t numSubstitutions; in Test_UChar_UTF8_API() local
701 numSubstitutions=-1; in Test_UChar_UTF8_API()
706 0x50005, &numSubstitutions, in Test_UChar_UTF8_API()
710 numSubstitutions!=3) { in Test_UChar_UTF8_API()
716 numSubstitutions=-1; in Test_UChar_UTF8_API()
721 0xfffd, &numSubstitutions, in Test_UChar_UTF8_API()
725 numSubstitutions!=3) { in Test_UChar_UTF8_API()
731 numSubstitutions=-1; in Test_UChar_UTF8_API()
736 0x50005, &numSubstitutions, in Test_UChar_UTF8_API()
738 …f(err!=U_BUFFER_OVERFLOW_ERROR || uDestLen!=u_strlen(withTrail16Sub50005) || numSubstitutions!=3) { in Test_UChar_UTF8_API()
744 numSubstitutions=-1; in Test_UChar_UTF8_API()
749 0xfffd, &numSubstitutions, in Test_UChar_UTF8_API()
753 numSubstitutions!=1) { in Test_UChar_UTF8_API()
759 numSubstitutions=-1; in Test_UChar_UTF8_API()
764 0x1a, &numSubstitutions, in Test_UChar_UTF8_API()
768 numSubstitutions!=1) { in Test_UChar_UTF8_API()
774 numSubstitutions=-1; in Test_UChar_UTF8_API()
779 0xfffd, &numSubstitutions, in Test_UChar_UTF8_API()
782 numSubstitutions!=1) { in Test_UChar_UTF8_API()
790 numSubstitutions=-1; in Test_UChar_UTF8_API()
795 0x50005, &numSubstitutions, in Test_UChar_UTF8_API()
799 numSubstitutions!=0) { in Test_UChar_UTF8_API()
805 numSubstitutions=-1; in Test_UChar_UTF8_API()
810 0xfffd, &numSubstitutions, in Test_UChar_UTF8_API()
814 numSubstitutions!=0) { in Test_UChar_UTF8_API()
822 numSubstitutions=-1; in Test_UChar_UTF8_API()
827 U_SENTINEL, &numSubstitutions, in Test_UChar_UTF8_API()
831 numSubstitutions!=0) { in Test_UChar_UTF8_API()
837 numSubstitutions=-1; in Test_UChar_UTF8_API()
842 U_SENTINEL, &numSubstitutions, in Test_UChar_UTF8_API()
846 numSubstitutions!=0) { in Test_UChar_UTF8_API()
1737 int32_t numSubstitutions; in Test_strFromJavaModifiedUTF8() local
1743 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1746 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1750 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1756 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1759 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1763 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1769 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1781 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1784 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1788 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1794 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1797 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1801 numSubstitutions!=0 in Test_strFromJavaModifiedUTF8()
1807 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1810 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1814 numSubstitutions!=0 in Test_strFromJavaModifiedUTF8()
1820 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1832 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1835 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1843 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1846 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1854 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1857 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1861 numSubstitutions!=0 in Test_strFromJavaModifiedUTF8()
1867 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1870 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1874 numSubstitutions!=0 in Test_strFromJavaModifiedUTF8()
1880 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1882 NULL, 0, 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1885 numSubstitutions!=0 in Test_strFromJavaModifiedUTF8()
1891 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1894 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1898 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1904 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1907 0x50000, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1911 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) /* not ...50000 */ in Test_strFromJavaModifiedUTF8()
1917 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1920 U_SENTINEL, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1921 if(errorCode!=U_INVALID_CHAR_FOUND || dest[0]!=0xffff || numSubstitutions!=0) { in Test_strFromJavaModifiedUTF8()
1926 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1929 U_SENTINEL, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1932 numSubstitutions!=0 in Test_strFromJavaModifiedUTF8()
1940 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1943 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1949 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1952 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1958 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1961 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1967 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1969 NULL, -1, 0xfffd, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1975 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1978 0x110000, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()
1984 length=numSubstitutions=-5; in Test_strFromJavaModifiedUTF8()
1987 0xdfff, &numSubstitutions, &errorCode); in Test_strFromJavaModifiedUTF8()