/external/icu4c/test/intltest/ |
itspoof.cpp | 107 UnicodeString s("xyz"); // Many latin ranges are whole-script confusable with other scripts. 117 UnicodeString s1("cxs"); 118 UnicodeString s2 = UnicodeString("\\u0441\\u0445\\u0455").unescape(); // Cyrillic "cxs" 125 UnicodeString s("I1l0O"); 126 UnicodeString dest; 127 UnicodeString &retStr = uspoof_getSkeletonUnicodeString(sc, USPOOF_ANY_CASE, s, dest, &status); 129 TEST_ASSERT(UnicodeString("lllOO") == dest); 216 UnicodeString uInput = UnicodeString(input).unescape() [all...] |
ustrtest.h | 20 * Perform API and functionality tests for class UnicodeString 79 void _testUnicodeStringHasMoreChar32Than(const UnicodeString &s, int32_t start, int32_t length, int32_t number); 87 void doTestAppendable(UnicodeString &dest, Appendable &app); 102 void TestCasingImpl(const UnicodeString &input, 103 const UnicodeString &output,
|
locnmtst.cpp | 41 errln("FAIL: " #test " was not true. " + UnicodeString(print) ); \ 43 logln("PASS: asserted " #test "-> " + UnicodeString(print)); \ 48 if (UnicodeString(target)!=(value)) { \ 56 #define test_dumpLocale(l) { logln(#l " = " + UnicodeString(l.getName(), "")); } 89 UnicodeString temp; 97 UnicodeString temp; 105 UnicodeString temp; 116 UnicodeString temp; 126 UnicodeString temp; 136 UnicodeString temp [all...] |
tsdtfmsy.cpp | 40 const UnicodeString* month; 47 logln((UnicodeString)"size = " + cnt); 70 const UnicodeString * month = symbol->getMonths(cnt,context[i],width[j]); 72 logln((UnicodeString)"size = " + cnt); 95 const UnicodeString * wd = symbol->getWeekdays(cnt,context[i],width[j]); 97 logln((UnicodeString)"size = " + cnt); 112 const UnicodeString* name; 119 logln((UnicodeString)"size = " + cnt); 138 dataerrln("ERROR: Couldn't create French DateFormatSymbols " + (UnicodeString)u_errorName(status)); 145 errcheckln(status, "ERROR: Couldn't create French DateFormatSymbols " + (UnicodeString)u_errorName(status)) [all...] |
selfmts.cpp | 27 #define VERBOSE_USTRING(text) {logln("%s:%d: UnicodeString %s(%d) = ", __FILE__, __LINE__, #text, text.length()); logln(UnicodeString(" \"")+text+UnicodeString("\";"));} 46 const UnicodeString SIMPLE_PATTERN(SIMPLE_PATTERN_STRING); /* Don't static init this! */ 48 UnicodeString patternTestData[SELECT_PATTERN_DATA] = { 55 UnicodeString formatArgs[NUM_OF_FORMAT_ARGS] = { 61 UnicodeString expFormatResult[][NUM_OF_FORMAT_ARGS] = { 84 UnicodeString checkSyntaxData[SELECT_SYNTAX_DATA] = { 119 UnicodeString format_result; 120 selFmt->format(UnicodeString("odd"), format_result, format_ignore, status) [all...] |
normconf.h | 59 UBool checkConformance(const UnicodeString* field, 64 void iterativeNorm(const UnicodeString& str, 66 UnicodeString& result, 78 const UnicodeString& s, 79 const UnicodeString& got, 80 const UnicodeString& exp, 97 UnicodeString output[], int32_t outputLength); 100 void compare(const UnicodeString& s1,const UnicodeString& s2);
|
dtfmtrtts.h | 37 UnicodeString& escape(const UnicodeString& src, UnicodeString& dst); 77 UBool failure(UErrorCode status, const char* msg, const UnicodeString& str); 79 const UnicodeString& fullFormat(UDate d); 89 UnicodeString fgStr;
|
tchcfmt.cpp | 45 UnicodeString monthNames[] = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"}; 49 UnicodeString str; 50 UnicodeString res1, res2; 68 it_logln(UnicodeString("") + ix + UnicodeString(" -> ") + res1 + UnicodeString(" -> ") + res2); 72 const UnicodeString filepart[] = {"are no files","is one file","are {2} files"}; 91 const UnicodeString *gotFormats=form->getFormats(count); 105 errln((UnicodeString)"getLimits didn't get the limits correctly. Expected " + limits[ix] + " Got " + gotLimits[ix]); 110 const UnicodeString *gotFormats=form->getFormats(count) [all...] |
transrt.cpp | 41 logln((UnicodeString)""); \ 45 logln((UnicodeString)#test " took " + t/U_MILLIS_PER_DAY + " seconds"); \ 54 logln((UnicodeString)""); \ 118 virtual UBool is(const UnicodeString& /*sourceString*/) const {return TRUE;} 128 virtual UBool is(const UnicodeString& sourceString) const; 132 UBool LegalJamo::is(const UnicodeString& sourceString) const { 134 UnicodeString decomp; 172 virtual UBool is(const UnicodeString& sourceString) const; 179 UBool LegalGreek::is(const UnicodeString& sourceString) const { 180 UnicodeString decomp [all...] |
tmsgfmt.cpp | 130 UnicodeString buffer; 147 logln(UnicodeString(" -> ") /* + << dec*/ + toString(result) + UnicodeString("[supposed output for result]")); 159 const UnicodeString formats[] = {"0.0<=Arg<1.0", 164 UnicodeString toAppendTo; 176 UnicodeString result; 178 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. "; 211 UnicodeString buffer; 253 UnicodeString testCases[] = { 267 /*UnicodeString testResultPatterns[] = [all...] |
/external/icu4c/common/ |
servrbf.cpp | 35 ICUResourceBundleFactory::ICUResourceBundleFactory(const UnicodeString& bundleName) 72 UnicodeString& 73 ICUResourceBundleFactory::debug(UnicodeString& result) const 80 UnicodeString& 81 ICUResourceBundleFactory::debugClass(UnicodeString& result) const
|
unistr.cpp | 42 print(const UnicodeString& s, 89 // u_unescapeAt() callback to get a UChar from a UnicodeString 93 return ((icu::UnicodeString*) context)->charAt(offset); 104 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UnicodeString) 106 UnicodeString U_EXPORT2 107 operator+ (const UnicodeString &s1, const UnicodeString &s2) { 109 UnicodeString(s1.length()+s2.length()+1, (UChar32)0, 0). 120 UnicodeString::addRef() 124 UnicodeString::removeRef( [all...] |
schriter.cpp | 32 StringCharacterIterator::StringCharacterIterator(const UnicodeString& textStr) 40 StringCharacterIterator::StringCharacterIterator(const UnicodeString& textStr, 49 StringCharacterIterator::StringCharacterIterator(const UnicodeString& textStr, 88 // while we compare UnicodeString objects 108 StringCharacterIterator::setText(const UnicodeString& newText) { 114 StringCharacterIterator::getText(UnicodeString& result) {
|
servls.cpp | 34 ICULocaleService::ICULocaleService(const UnicodeString& dname) 70 UnicodeString locName(locale.getName(), -1, US_INV); 79 UnicodeString temp; 95 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, 129 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, UErrorCode& status) 135 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, UBool visible, UErrorCode& status) 143 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, int32_t kind, int32_t coverage, UErrorCode& status) 182 _ids.addElement(((UnicodeString *)other._ids.elementAt(i))->clone(), status); 228 virtual const UnicodeString* snext(UErrorCode& status) { 230 return (const UnicodeString*)_ids[_pos++] [all...] |
unistr_case.cpp | 36 UnicodeString::doCaseCompare(int32_t start, 87 UnicodeString & 88 UnicodeString::caseMap(const UCaseMap *csm, 143 UnicodeString & 144 UnicodeString::foldCase(uint32_t options) { 157 const UnicodeString *str = (const UnicodeString*) key.pointer; 162 // UnicodeString that does case folding on the fly. 163 UnicodeString copy(*str); 171 const UnicodeString *str1 = (const UnicodeString*) key1.pointer [all...] |
/external/icu4c/i18n/ |
tzgnames.cpp | 68 UnicodeString str(p->tzID); 132 UnicodeString& getTimeZoneID(int32_t index, UnicodeString& tzID) const; 174 UnicodeString& 175 TimeZoneGenericNameMatchInfo::getTimeZoneID(int32_t index, UnicodeString& tzID) const { 277 UnicodeString& getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type, 278 UDate date, UnicodeString& name) const; 280 UnicodeString& getGenericLocationName(const UnicodeString& tzCanonicalID, UnicodeString& name) const [all...] |
winnmfmt.h | 60 virtual UnicodeString& format(double number, 61 UnicodeString& appendTo, 74 virtual UnicodeString& format(int32_t number, 75 UnicodeString& appendTo, 88 virtual UnicodeString& format(int64_t number, 89 UnicodeString& appendTo, 93 // virtual UnicodeString &format(double number, UnicodeString &appendTo) const; 94 // virtual UnicodeString &format(int32_t number, UnicodeString &appendTo) const [all...] |
windtfmt.cpp | 55 UnicodeString* Win32DateFormat::getTimeDateFormat(const Calendar *cal, const Locale *locale, UErrorCode &status) const 57 UnicodeString *result = NULL; 73 return new UnicodeString(defaultPattern, ARRAY_SIZE(defaultPattern)); 85 result = new UnicodeString(TRUE, resStr, resStrLen); 146 UnicodeString &Win32DateFormat::format(Calendar &cal, UnicodeString &appendTo, FieldPosition &pos) const 169 UnicodeString *date = new UnicodeString(); 170 UnicodeString *time = new UnicodeString(); [all...] |
tridpars.h | 68 UnicodeString source; // not null 69 UnicodeString target; // not null 70 UnicodeString variant; // may be null 71 UnicodeString filter; // may be null 73 Specs(const UnicodeString& s, const UnicodeString& t, 74 const UnicodeString& v, UBool sawS, 75 const UnicodeString& f); 100 UnicodeString canonID; 101 UnicodeString basicID [all...] |
transreg.cpp | 50 #define NO_VARIANT UnicodeString() 63 TransliteratorAlias::TransliteratorAlias(const UnicodeString& theAliasID, 73 TransliteratorAlias::TransliteratorAlias(const UnicodeString& theID, 74 const UnicodeString& idBlocks, 85 TransliteratorAlias::TransliteratorAlias(const UnicodeString& theID, 86 const UnicodeString& rules, 129 UnicodeString noIDBlock((UChar)(0xffff)); 138 UnicodeString idBlock; 210 TransliteratorSpec(const UnicodeString& spec); 213 const UnicodeString& get() const [all...] |
/external/icu4c/samples/case/ |
case.cpp | 17 void printUnicodeString(UFILE *out, const UnicodeString &s) { 18 UnicodeString other = s; 43 UnicodeString string("This is a test"); 49 UnicodeString upper(uppercase); 50 UnicodeString lower(lowercase);
|
/external/icu4c/test/iotest/ |
stream.cpp | 54 UnicodeString str1 = UNICODE_STRING_SIMPLE("str1"); 55 UnicodeString str2 = UNICODE_STRING_SIMPLE(" <<"); 56 UnicodeString str3 = UNICODE_STRING_SIMPLE("2"); 57 UnicodeString str4 = UNICODE_STRING_SIMPLE(" UTF-8 "); 58 UnicodeString inStr = UNICODE_STRING_SIMPLE(" UTF-8 "); 59 UnicodeString inStr2; 124 /* Test formatting when using '<<' and UnicodeString */ 132 UnicodeString ustr("string"); 142 log_err("UnicodeString format test using << operator Got: '%s' Expected: '%s'\n", testFormatStreamBuf, format_test_expected); 145 /* Test large buffer (size > 200) when using '<<' and UnicodeString */ [all...] |
/external/icu4c/i18n/unicode/ |
dtfmtsym.h | 190 const UnicodeString* getEras(int32_t& count) const; 198 void setEras(const UnicodeString* eras, int32_t count); 207 const UnicodeString* getEraNames(int32_t& count) const; 215 void setEraNames(const UnicodeString* eraNames, int32_t count); 224 const UnicodeString* getNarrowEras(int32_t& count) const; 232 void setNarrowEras(const UnicodeString* narrowEras, int32_t count); 240 const UnicodeString* getMonths(int32_t& count) const; 249 void setMonths(const UnicodeString* months, int32_t count); 258 const UnicodeString* getShortMonths(int32_t& count) const; 266 void setShortMonths(const UnicodeString* shortMonths, int32_t count) [all...] |
/external/icu4c/tools/toolutil/ |
xmlparser.cpp | 64 mXMLDecl(UnicodeString("(?s)\\uFEFF?<\\?xml.+?\\?>", -1, US_INV), 0, status), 69 mXMLComment(UnicodeString("(?s)<!--.+?-->", -1, US_INV), 0, status), 73 mXMLSP(UnicodeString(XML_SPACES "+", -1, US_INV), 0, status), 83 mXMLDoctype(UnicodeString( 89 mXMLPI(UnicodeString("(?s)<\\?.+?\\?>", -1, US_INV), 0, status), 95 mXMLElemStart (UnicodeString("(?s)<(" XML_NAME ")" // match "<tag_name" 104 mXMLElemEnd (UnicodeString("</(" XML_NAME ")" XML_SPACES "*>", -1, US_INV), 0, status), 108 mXMLElemEmpty (UnicodeString("(?s)<(" XML_NAME ")" // match "<tag_name" 117 mXMLCharData(UnicodeString("(?s)[^<]*", -1, US_INV), 0, status), 128 mAttrValue(UnicodeString(XML_SPACES "+(" XML_NAME ")" XML_SPACES "*=" XML_SPACES "* [all...] |
/external/icu4c/tools/genrb/ |
wrtxml.cpp | 55 static int32_t write_utf8_file(FileStream* fileStream, UnicodeString outString) 90 write_utf8_file(os,UnicodeString(" ")); 404 write_utf8_file(out,UnicodeString(tagStart)); 405 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8")); 406 write_utf8_file(out,UnicodeString(tagEnd)); 407 write_utf8_file(out,UnicodeString("\n")); 455 write_utf8_file(out, UnicodeString(" ")); 456 write_utf8_file(out, UnicodeString(name)); 457 write_utf8_file(out, UnicodeString(" = \"")); 458 write_utf8_file(out, UnicodeString(value)) [all...] |