Lines Matching refs:UnicodeString
264 const UnicodeString pattern(pat, -1, US_INV);
265 const UnicodeString inputText(text, -1, US_INV);
272 UnicodeString patString(pat, -1, US_INV);
281 UnicodeString inputString(inputText);
282 UnicodeString unEscapedInput = inputString.unescape();
343 UnicodeString inputString(text, -1, US_INV);
344 UnicodeString unEscapedInput = inputString.unescape();
417 UnicodeString pattern(pat);
426 UnicodeString patString(pat);
669 UnicodeString re("abc");
674 UnicodeString inStr1 = "abcdef this is a test";
675 UnicodeString instr2 = "not abc";
676 UnicodeString empty = "";
801 UnicodeString re("01(23(45)67)(.*)");
804 UnicodeString data = "0123456789";
860 UnicodeString re("abc");
863 UnicodeString data = ".abc..abc...abc..";
914 UnicodeString re(".*?(?:(\\Gabc)|(abc))", -1, US_INV);
917 UnicodeString data = ".abcabc.abc..";
947 UnicodeString s(" ");
979 UnicodeString s(" ");
1021 UnicodeString testString("This is test data");
1040 UnicodeString shorterString("short");
1074 UnicodeString testString("aabb");
1127 UnicodeString testString("aaaaaaaaaaaaaaaaaaaaa");
1139 UnicodeString testString("aaaaaaaaaaaaaaaaaa");
1152 UnicodeString testString(1000000, 0x41, 1000000); // Length 1,000,000, filled with 'A'
1182 UnicodeString testString = "abc";
1222 UnicodeString re("abc");
1225 UnicodeString data = ".abc..abc...abc..";
1232 UnicodeString dest;
1244 UnicodeString d2 = ".abx..abx...abx..";
1257 UnicodeString d3 = "";
1282 UnicodeString d4 = "abc";
1295 UnicodeString re2("a(..)");
1298 UnicodeString d5 = "abcdefg";
1313 UnicodeString replacement = UNICODE_STRING_SIMPLE("Supplemental Digit 1 $\\U0001D7CF.");
1326 UnicodeString src = "abc 1 abc 2 abc 3";
1327 UnicodeString substitute = UNICODE_STRING_SIMPLE("--\\u0043--");
1329 UnicodeString result = matcher->replaceAll(substitute, status);
1334 UnicodeString src = "abc !";
1335 UnicodeString substitute = UNICODE_STRING_SIMPLE("--\\U00010000--");
1337 UnicodeString result = matcher->replaceAll(substitute, status);
1339 UnicodeString expected = UnicodeString("--");
1350 UnicodeString s = "The matches start with ss and end with ee ss stuff ee fin";
1353 UnicodeString result;
1408 UnicodeString re1("abc[a-l][m-z]");
1409 UnicodeString re2("def");
1469 UnicodeString s = "Hello World";
1504 UnicodeString fields[10];
1664 UnicodeString Hello("Hello, world.");
1883 UnicodeString dest;
2275 UnicodeString dest;
2555 UnicodeString result;
2768 UnicodeString fields[10];
2973 // Put the test data into a UnicodeString
2975 UnicodeString testString(FALSE, testData, len);
2982 UnicodeString testPattern; // The pattern for test from the test file.
2983 UnicodeString testFlags; // the flags for a test.
2984 UnicodeString matchString; // The marked up string to be used as input
3002 UnicodeString testLine = lineMat.group(1, status);
3091 // a UnicodeString. This is a utility function needed by the actual test function,
3093 static void set(UVector &vec, int32_t val, UnicodeString index) {
3130 void RegexTest::regex_find(const UnicodeString &pattern,
3131 const UnicodeString &flags,
3132 const UnicodeString &inputString,
3135 UnicodeString unEscapedInput;
3136 UnicodeString deTaggedInput;
3298 UnicodeString groupNum = parseMatcher->group(2, status);
3551 infoln((UnicodeString)"\""+pattern+(UnicodeString)"\" "
3552 +flags+(UnicodeString)" \""+inputString+(UnicodeString)"\"");
3809 // Put the test data into a UnicodeString
3811 UnicodeString testDataString(FALSE, testData, len);
3844 UnicodeString nulnulSrc("${nulnul}");
3845 UnicodeString nulnul("\\u0000\\u0000", -1, US_INV);
3848 UnicodeString ffffSrc("${ffff}");
3849 UnicodeString ffff("\\uffff", -1, US_INV);
3874 UnicodeString line = lineMat->group(1, status);
3875 UnicodeString fields[7];
3880 UnicodeString pattern = flagMat->group(2, status);
3889 UnicodeString flagStr = flagMat->group(3, status);
3955 UnicodeString matchString = fields[1];
3996 UnicodeString resultString;
3997 UnicodeString perlExpr = fields[3];
4017 UnicodeString digitString = groupsMat->group(2, status);
4020 UnicodeString plusOrMinus = groupsMat->group(1, status);
4035 UnicodeString digitString = cgMat->group(1, status);
4098 UnicodeString expectedS(fields[4]);
4106 infoln((UnicodeString)"Expected \""+expectedS+(UnicodeString)"\"; got \""+resultString+(UnicodeString)"\"");
4178 // Put the test data into a UnicodeString
4180 UnicodeString testDataString(FALSE, testData, len);
4213 UnicodeString nulnulSrc("${nulnul}");
4214 UnicodeString nulnul("\\u0000\\u0000", -1, US_INV);
4217 UnicodeString ffffSrc("${ffff}");
4218 UnicodeString ffff("\\uffff", -1, US_INV);
4243 UnicodeString line = lineMat->group(1, status);
4244 UnicodeString fields[7];
4249 UnicodeString pattern = flagMat->group(2, status);
4258 UnicodeString flagStr = flagMat->group(3, status);
4338 UnicodeString matchString = fields[1];
4391 UnicodeString resultString;
4392 UnicodeString perlExpr = fields[3];
4405 UnicodeString digitString = groupsMat->group(2, status);
4408 UnicodeString plusOrMinus = groupsMat->group(1, status);
4423 UnicodeString digitString = cgMat->group(1, status);
4486 UnicodeString expectedS(fields[4]);
4494 infoln((UnicodeString)"Expected \""+expectedS+(UnicodeString)"\"; got \""+resultString+(UnicodeString)"\"");
4541 UnicodeString pattern("(a?){1,}");
4542 UnicodeString s("xyz");
4617 UnicodeString s = "xxx";
4709 UnicodeString s = "abxxx";
4729 UnicodeString s1 = "aaaaaaaaaaaaaaaaaaaaaaab";
4739 UnicodeString s2 = "aaaaaaaaaaaaaa aaaaaaaaab xxx";
4760 // use UnicodeString here to test the functionality.
4767 UnicodeString buffer;
4947 * splitUText() uses the C++ API directly, and the UnicodeString version uses mutable UTexts,
4961 UnicodeString pattern1("((?<![A-Za-z0-9])[#\\uff03][A-Za-z0-9_][A-Za-z0-9_\\u00c0-\\u00d6\\u00c8-\\u00f6\\u00f8-\\u00ff]*|(?<![A-Za-z0-9_])[@\\uff20][A-Za-z0-9_]+(?:\\/[\\w-]+)?|(https?\\:\\/\\/|www\\.)\\S+(?<![\\!\\),\\.:;\\]\\u0080-\\uFFFF])|\\$[A-Za-z]+)");
4964 UnicodeString pattern2("((https?\\:\\/\\/|www\\.)\\S+(?<![\\!\\),\\.:;\\]\\u0080-\\uFFFF])|(?<![A-Za-z0-9_])[\\@\\uff20][A-Za-z0-9_]+(?:\\/[\\w\\-]+)?|(?<![A-Za-z0-9])[\\#\\uff03][A-Za-z0-9_][A-Za-z0-9_\\u00c0-\\u00d6\\u00c8-\\u00f6\\u00f8-\\u00ff]*|\\$[A-Za-z]+)");
4965 UnicodeString s("#ff @abcd This is test");
4994 UnicodeString pattern = "(a)";
4995 UnicodeString text = "abcdef";
5001 UnicodeString s = m->group(1, status); // Bug 7740: segfault here.