Lines Matching refs:UnicodeString
51 static UnicodeString errorList;
58 UnicodeString
60 { return UnicodeString(c); }
63 UnicodeString
64 operator+(const UnicodeString& left,
76 UnicodeString
77 operator+(const UnicodeString& left,
89 UnicodeString
106 UnicodeString
107 operator+(const UnicodeString& left,
128 UnicodeString _toString(const Formattable& f) {
129 UnicodeString s;
140 s = UnicodeString("Error creating date format]");
145 s = UnicodeString("double:") + f.getDouble();
148 s = UnicodeString("long:") + f.getLong();
152 s = UnicodeString("int64:") + Int64ToUnicodeString(f.getInt64());
163 s.insert(0, UnicodeString("Array:"));
164 UnicodeString delim(", ");
176 s = _toString(c->getNumber()) + " " + UnicodeString(c->getISOCurrency());
178 s = UnicodeString("Unknown UObject");
183 s = UnicodeString("Unknown Formattable type=") + (int32_t)f.getType();
193 UnicodeString toString(const Formattable& f) {
194 UnicodeString s((UChar)91/*[*/);
203 UnicodeString toString(int32_t n) {
204 return UnicodeString() + (long)n;
208 UnicodeString operator+(const UnicodeString& left, char num)
210 UnicodeString operator+(const UnicodeString& left, short num)
212 UnicodeString operator+(const UnicodeString& left, int num)
214 UnicodeString operator+(const UnicodeString& left, unsigned char num)
216 UnicodeString operator+(const UnicodeString& left, unsigned short num)
218 UnicodeString operator+(const UnicodeString& left, unsigned int num)
220 UnicodeString operator+(const UnicodeString& left, float num)
226 UnicodeString&
229 UnicodeString& target)
266 UnicodeString&
267 IntlTest::prettify(const UnicodeString &source,
268 UnicodeString &target)
302 UnicodeString
303 IntlTest::prettify(const UnicodeString &source, UBool parseBackslash)
306 UnicodeString target;
437 void it_log( UnicodeString message )
443 void it_logln( UnicodeString message )
455 void it_info( UnicodeString message )
461 void it_infoln( UnicodeString message )
479 void it_err( UnicodeString message )
485 void it_errln( UnicodeString message )
491 void it_dataerr( UnicodeString message )
497 void it_dataerrln( UnicodeString message )
762 void IntlTest::log( const UnicodeString &message )
773 void IntlTest::logln( const UnicodeString &message )
790 void IntlTest::info( const UnicodeString &message )
799 void IntlTest::infoln( const UnicodeString &message )
828 void IntlTest::err( const UnicodeString &message )
834 void IntlTest::errln( const UnicodeString &message )
840 void IntlTest::dataerr( const UnicodeString &message )
851 void IntlTest::dataerrln( const UnicodeString &message )
854 UnicodeString msg;
859 msg = UnicodeString("[DATA] " + message);
865 void IntlTest::errcheckln(UErrorCode status, const UnicodeString &message ) {
884 log(UnicodeString(buffer, ""));
898 logln(UnicodeString(buffer, ""));
912 info(UnicodeString(buffer, ""));
924 infoln(UnicodeString(buffer, ""));
935 err(UnicodeString(buffer, ""));
946 errln(UnicodeString(buffer, ""));
957 dataerrln(UnicodeString(buffer, ""));
970 dataerrln(UnicodeString(buffer, ""));
972 errln(UnicodeString(buffer, ""));
981 void IntlTest::LL_message( UnicodeString message, UBool newline )
998 UnicodeString indent(FALSE, indentUChars, 1 + LL_indentlevel);
1010 message.findAndReplace(UnicodeString((UChar)'\n'), indent);
1055 UnicodeString* strLeak = new UnicodeString("forced leak"); // for verifying purify filter
1440 it_dataerrln((UnicodeString)"Could not load testtypes.res in testdata bundle with path " + tdpath + (UnicodeString)" - " + u_errorName(err));
1544 * It converts an invariant-character string into a UnicodeString, with
1547 UnicodeString CharsToUnicodeString(const char* chars){
1548 return UnicodeString(chars, -1, US_INV).unescape();
1551 UnicodeString ctou(const char* chars) {
1603 static UnicodeString& escape(const UnicodeString& s, UnicodeString& result) {
1658 const UnicodeString& expected,
1659 const UnicodeString& actual,
1663 dataerrln((UnicodeString)"FAIL: " + message + "; got " +
1667 errln((UnicodeString)"FAIL: " + message + "; got " +
1675 logln((UnicodeString)"Ok: " + message + "; got " + prettify(actual));
1685 errln((UnicodeString)"FAIL: " + message + "; got \"" +
1692 logln((UnicodeString)"Ok: " + message + "; got \"" + actual + "\"");
1703 errln((UnicodeString)"FAIL: " + message + "; got " +
1710 logln((UnicodeString)"Ok: " + message + "; got " + toString(actual));
1719 static const char* extractToAssertBuf(const UnicodeString& message) {
1720 UnicodeString buf;
1727 UBool IntlTest::assertTrue(const UnicodeString& message, UBool condition, UBool quiet) {
1731 UBool IntlTest::assertFalse(const UnicodeString& message, UBool condition, UBool quiet) {
1735 UBool IntlTest::assertSuccess(const UnicodeString& message, UErrorCode ec) {
1739 UBool IntlTest::assertEquals(const UnicodeString& message,
1740 const UnicodeString& expected,
1741 const UnicodeString& actual) {
1745 UBool IntlTest::assertEquals(const UnicodeString& message,
1762 UBool IntlTest::assertEquals(const UnicodeString& message,