Lines Matching defs:source
48 const UChar *source, const int sLen,
1109 /* Test 5: Null characters in non-normal source strings.*/
2757 UChar source[256], target[256];
2766 sLen = u_unescape(cases[j-1], source, 256);
2767 source[sLen] = 0;
2769 source[tLen] = 0;
2770 doTest(collateObject, source, target, UCOL_EQUAL);
2776 static int32_t TestEqualsForCollator(const char* locName, UCollator *source, UCollator *target) {
2784 if(!ucol_equals(source, target)) {
2789 if(uprv_strcmp(locName, ucol_getLocaleByType(source, ULOC_ACTUAL_LOCALE, &status)) == 0) {
2790 target = ucol_safeClone(source, NULL, NULL, &status);
2796 if(!ucol_equals(source, target)) {
2800 french = ucol_getAttribute(source, UCOL_FRENCH_COLLATION, &status);
2811 if(ucol_equals(source, target)) {
2817 sourceRules = ucol_getRules(source, &sourceRulesLen);
2825 if(!ucol_equals(source, target) && sourceRulesLen != 0) {
2844 UCollator *source = NULL, *target = NULL;
2871 source = ucol_openRules(sourceRules, sourceRulesSize, UCOL_DEFAULT, UCOL_DEFAULT, &parseError, &status);
2880 if(!ucol_equals(source, target)) {
2883 ucol_close(source);
2886 source = ucol_open("root", &status);
2889 if(!ucol_equals(source, source)) {
2892 if(TestEqualsForCollator("root", source, target)) {
2895 ucol_close(source);
2902 source = ucol_open(locName, &status);
2908 if(TestEqualsForCollator(locName, source, target)) {
2911 ucol_close(source);
3084 UChar source[100];
3089 u_unescape(test[0], source, 100);
3091 doTest(coll, source, target, UCOL_EQUAL);
3092 result = ucol_strcoll(coll, source, -1, target, -1);
4199 const UChar source[MAX_TOKEN_LEN]; /* String on left */
4244 testcases[testcase_no].source,
5149 testCases[testCaseNum].source,