mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
ICU-21555 Fix typos in repo from letter d to i
Fix typos in repo from letter d to i
This commit is contained in:
parent
0b7701ef3c
commit
2b895a71e1
23 changed files with 72 additions and 72 deletions
|
@ -144,7 +144,7 @@ private:
|
|||
|
||||
UnicodeSet fRuleSets[10]; // Unicode Sets that are needed during
|
||||
// the scanning of RBBI rules. The
|
||||
// indicies for these are assigned by the
|
||||
// indices for these are assigned by the
|
||||
// perl script that builds the state tables.
|
||||
// See rbbirpt.h.
|
||||
|
||||
|
|
|
@ -956,7 +956,7 @@ Calendar::makeInstance(const Locale& aLocale, UErrorCode& success) {
|
|||
#ifdef U_DEBUG_CALSVC
|
||||
fprintf(stderr, "%p: setting week count data to locale %s, actual locale %s\n", c, (const char*)aLocale.getName(), (const char *)actualLoc.getName());
|
||||
#endif
|
||||
c->setWeekData(aLocale, c->getType(), success); // set the correct locale (this was an indirected calendar)
|
||||
c->setWeekData(aLocale, c->getType(), success); // set the correct locale (this was an indirect calendar)
|
||||
|
||||
char keyword[ULOC_FULLNAME_CAPACITY] = "";
|
||||
UErrorCode tmpStatus = U_ZERO_ERROR;
|
||||
|
|
|
@ -23,7 +23,7 @@ U_NAMESPACE_BEGIN
|
|||
|
||||
static const uint16_t commonChars_sjis [] = {
|
||||
// TODO: This set of data comes from the character frequency-
|
||||
// of-occurence analysis tool. The data needs to be moved
|
||||
// of-occurrence analysis tool. The data needs to be moved
|
||||
// into a resource and loaded from there.
|
||||
0x8140, 0x8141, 0x8142, 0x8145, 0x815b, 0x8169, 0x816a, 0x8175, 0x8176, 0x82a0,
|
||||
0x82a2, 0x82a4, 0x82a9, 0x82aa, 0x82ab, 0x82ad, 0x82af, 0x82b1, 0x82b3, 0x82b5,
|
||||
|
@ -34,7 +34,7 @@ static const uint16_t commonChars_sjis [] = {
|
|||
|
||||
static const uint16_t commonChars_euc_jp[] = {
|
||||
// TODO: This set of data comes from the character frequency-
|
||||
// of-occurence analysis tool. The data needs to be moved
|
||||
// of-occurrence analysis tool. The data needs to be moved
|
||||
// into a resource and loaded from there.
|
||||
0xa1a1, 0xa1a2, 0xa1a3, 0xa1a6, 0xa1bc, 0xa1ca, 0xa1cb, 0xa1d6, 0xa1d7, 0xa4a2,
|
||||
0xa4a4, 0xa4a6, 0xa4a8, 0xa4aa, 0xa4ab, 0xa4ac, 0xa4ad, 0xa4af, 0xa4b1, 0xa4b3,
|
||||
|
@ -49,7 +49,7 @@ static const uint16_t commonChars_euc_jp[] = {
|
|||
|
||||
static const uint16_t commonChars_euc_kr[] = {
|
||||
// TODO: This set of data comes from the character frequency-
|
||||
// of-occurence analysis tool. The data needs to be moved
|
||||
// of-occurrence analysis tool. The data needs to be moved
|
||||
// into a resource and loaded from there.
|
||||
0xb0a1, 0xb0b3, 0xb0c5, 0xb0cd, 0xb0d4, 0xb0e6, 0xb0ed, 0xb0f8, 0xb0fa, 0xb0fc,
|
||||
0xb1b8, 0xb1b9, 0xb1c7, 0xb1d7, 0xb1e2, 0xb3aa, 0xb3bb, 0xb4c2, 0xb4cf, 0xb4d9,
|
||||
|
@ -64,7 +64,7 @@ static const uint16_t commonChars_euc_kr[] = {
|
|||
|
||||
static const uint16_t commonChars_big5[] = {
|
||||
// TODO: This set of data comes from the character frequency-
|
||||
// of-occurence analysis tool. The data needs to be moved
|
||||
// of-occurrence analysis tool. The data needs to be moved
|
||||
// into a resource and loaded from there.
|
||||
0xa140, 0xa141, 0xa142, 0xa143, 0xa147, 0xa149, 0xa175, 0xa176, 0xa440, 0xa446,
|
||||
0xa447, 0xa448, 0xa451, 0xa454, 0xa457, 0xa464, 0xa46a, 0xa46c, 0xa477, 0xa4a3,
|
||||
|
@ -79,7 +79,7 @@ static const uint16_t commonChars_big5[] = {
|
|||
|
||||
static const uint16_t commonChars_gb_18030[] = {
|
||||
// TODO: This set of data comes from the character frequency-
|
||||
// of-occurence analysis tool. The data needs to be moved
|
||||
// of-occurrence analysis tool. The data needs to be moved
|
||||
// into a resource and loaded from there.
|
||||
0xa1a1, 0xa1a2, 0xa1a3, 0xa1a4, 0xa1b0, 0xa1b1, 0xa1f1, 0xa1f3, 0xa3a1, 0xa3ac,
|
||||
0xa3ba, 0xb1a8, 0xb1b8, 0xb1be, 0xb2bb, 0xb3c9, 0xb3f6, 0xb4f3, 0xb5bd, 0xb5c4,
|
||||
|
|
|
@ -135,7 +135,7 @@ void TestPartialParse994()
|
|||
pos=0;
|
||||
d = udat_parse(f, s, u_strlen(s), &pos, &status);
|
||||
if(U_FAILURE(status)) {
|
||||
log_data_err("FAIL: could not parse - exitting");
|
||||
log_data_err("FAIL: could not parse - exiting");
|
||||
return;
|
||||
}
|
||||
fmtChars = myDateFormat(f, d);
|
||||
|
|
|
@ -85,7 +85,7 @@ void Test4029195()
|
|||
if(fmdt) {
|
||||
log_verbose("today: %s\n", austrdup(fmdt));
|
||||
} else {
|
||||
log_data_err("ERROR: couldn't format, exitting test");
|
||||
log_data_err("ERROR: couldn't format, exiting test");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -424,7 +424,7 @@ void Test4073003()
|
|||
result =myFormatit(fmt, d);
|
||||
result2 =myFormatit(fmt, dd);
|
||||
if(!result || !result2) {
|
||||
log_data_err("Fail: could not format - exitting test\n");
|
||||
log_data_err("Fail: could not format - exiting test\n");
|
||||
return;
|
||||
}
|
||||
if (u_strcmp(result, result2)!=0){
|
||||
|
@ -491,7 +491,7 @@ void Test714(void)
|
|||
}
|
||||
result =myFormatit(fmt, d);
|
||||
if(!result) {
|
||||
log_data_err("Fail: could not format - exitting test\n");
|
||||
log_data_err("Fail: could not format - exiting test\n");
|
||||
return;
|
||||
}
|
||||
u_uastrcpy(temp, expect);
|
||||
|
|
|
@ -162,7 +162,7 @@ int main(int argc, const char* const argv[])
|
|||
"*** Check the ICU_DATA environment variable and \n"
|
||||
"*** check that the data files are present.\n", warnOrErr);
|
||||
if(!getTestOption(WARN_ON_MISSING_DATA_OPTION)) {
|
||||
fprintf(stderr, "*** Exitting. Use the '-w' option if data files were\n*** purposely removed, to continue test anyway.\n");
|
||||
fprintf(stderr, "*** Exiting. Use the '-w' option if data files were\n*** purposely removed, to continue test anyway.\n");
|
||||
u_cleanup();
|
||||
return 1;
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ int main(int argc, const char* const argv[])
|
|||
"*** Check the ICU_DATA environment variable and \n"
|
||||
"*** check that the data files are present.\n", warnOrErr);
|
||||
if(!getTestOption(WARN_ON_MISSING_DATA_OPTION)) {
|
||||
fprintf(stderr, "*** Exitting. Use the '-w' option if data files were\n*** purposely removed, to continue test anyway.\n");
|
||||
fprintf(stderr, "*** Exiting. Use the '-w' option if data files were\n*** purposely removed, to continue test anyway.\n");
|
||||
u_cleanup();
|
||||
return 1;
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ int main(int argc, const char* const argv[])
|
|||
fprintf(stderr,
|
||||
"*** %s! Can not open a resource bundle for the default locale %s\n", warnOrErr, uloc_getDefault());
|
||||
if(!getTestOption(WARN_ON_MISSING_DATA_OPTION)) {
|
||||
fprintf(stderr, "*** Exitting. Use the '-w' option if data files were\n"
|
||||
fprintf(stderr, "*** Exiting. Use the '-w' option if data files were\n"
|
||||
"*** purposely removed, to continue test anyway.\n");
|
||||
u_cleanup();
|
||||
return 1;
|
||||
|
|
|
@ -400,7 +400,7 @@ DateFormatTest::TestTwoDigitYearDSTParse(void)
|
|||
UnicodeString str;
|
||||
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("Could not set up test. exitting - %s", u_errorName(status));
|
||||
dataerrln("Could not set up test. exiting - %s", u_errorName(status));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
|
||||
DateIntervalFormat* dtitvfmt = DateIntervalFormat::createInstance(UDAT_YEAR_MONTH_DAY, status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + default locale) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + default locale) - exiting");
|
||||
return;
|
||||
} else {
|
||||
delete dtitvfmt;
|
||||
|
@ -94,7 +94,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
|
||||
dtitvfmt = DateIntervalFormat::createInstance(UDAT_YEAR_MONTH_DAY, Locale::getJapanese(), status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + locale) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + locale) - exiting");
|
||||
return;
|
||||
} else {
|
||||
delete dtitvfmt;
|
||||
|
@ -112,7 +112,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
delete dtitvinf;
|
||||
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + DateIntervalInfo + default locale) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + DateIntervalInfo + default locale) - exiting");
|
||||
return;
|
||||
} else {
|
||||
delete dtitvfmt;
|
||||
|
@ -129,7 +129,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
dtitvfmt = DateIntervalFormat::createInstance("EEEdMMMyhms", Locale::getSimplifiedChinese(), *dtitvinf, status);
|
||||
delete dtitvinf;
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + DateIntervalInfo + locale) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (skeleton + DateIntervalInfo + locale) - exiting");
|
||||
return;
|
||||
}
|
||||
// not deleted, test clone
|
||||
|
@ -263,19 +263,19 @@ void DateIntervalFormatTest::testAPI() {
|
|||
|
||||
DateIntervalFormat* dtifmt = new DateIntervalFormat(fmt, inf, status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (default) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (default) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
DateIntervalFormat* dtifmt2 = new(dtifmt);
|
||||
if ( (*dtifmt) != (*dtifmt2) ) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (default) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (default) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
DateIntervalFormat dtifmt3 = (*dtifmt);
|
||||
if ( (*dtifmt) != dtifmt3 ) {
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (default) - exitting");
|
||||
dataerrln("ERROR: Could not create DateIntervalFormat (default) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -293,7 +293,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
status = U_ZERO_ERROR;
|
||||
dtitvfmt->format(formattable, res, pos, status);
|
||||
if ( status != U_ILLEGAL_ARGUMENT_ERROR ) {
|
||||
dataerrln("ERROR: format non-date-interval object should set U_ILLEGAL_ARGUMENT_ERROR - exitting");
|
||||
dataerrln("ERROR: format non-date-interval object should set U_ILLEGAL_ARGUMENT_ERROR - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -304,7 +304,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
status = U_ZERO_ERROR;
|
||||
dtitvfmt->format(formattable, res, pos, status);
|
||||
if ( U_FAILURE(status) ) {
|
||||
dataerrln("ERROR: format date interval failed - exitting");
|
||||
dataerrln("ERROR: format date interval failed - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
status = U_ZERO_ERROR;
|
||||
dtitvfmt->format(*fromCal, *toCal, res, pos, status);
|
||||
if ( U_FAILURE(status) ) {
|
||||
dataerrln("ERROR: format date interval failed - exitting");
|
||||
dataerrln("ERROR: format date interval failed - exiting");
|
||||
return;
|
||||
}
|
||||
delete fromCal;
|
||||
|
@ -328,7 +328,7 @@ void DateIntervalFormatTest::testAPI() {
|
|||
// TODO: why do I need cast?
|
||||
((Format*)dtitvfmt)->parseObject(res, fmttable, status);
|
||||
if ( status != U_INVALID_FORMAT_ERROR ) {
|
||||
dataerrln("ERROR: parse should set U_INVALID_FORMAT_ERROR - exitting");
|
||||
dataerrln("ERROR: parse should set U_INVALID_FORMAT_ERROR - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -445,7 +445,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
|
||||
DateTimePatternGenerator *instFromDefaultLocale=DateTimePatternGenerator::createInstance(status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (default) - exitting");
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (default) - exiting");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
@ -457,7 +457,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
status = U_ZERO_ERROR;
|
||||
DateTimePatternGenerator *instFromLocale=DateTimePatternGenerator::createInstance(Locale::getFrench(), status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getFrench()) - exitting");
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getFrench()) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -493,7 +493,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
UDate sampleDate=LocaleTest::date(99, 9, 13, 23, 58, 59);
|
||||
DateTimePatternGenerator *gen = DateTimePatternGenerator::createInstance(deLocale, status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getGermany()) - exitting");
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getGermany()) - exiting");
|
||||
return;
|
||||
}
|
||||
UnicodeString findPattern = gen->getBestPattern(UnicodeString("MMMddHmm"), status);
|
||||
|
@ -702,7 +702,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
logln("\n\n Locale: %s_%s_%s@%s", testLocale[localeIndex][0], testLocale[localeIndex][1], testLocale[localeIndex][2], testLocale[localeIndex][3]);
|
||||
DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator with locale index:%d . - exitting\n", localeIndex);
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator with locale index:%d . - exiting\n", localeIndex);
|
||||
return;
|
||||
}
|
||||
while (patternData[dataIndex].length() > 0) {
|
||||
|
@ -740,7 +740,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
logln("\n\n Test various skeletons for English locale...");
|
||||
DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(Locale::getEnglish(), status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator with locale English . - exitting\n");
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator with locale English . - exiting\n");
|
||||
return;
|
||||
}
|
||||
TimeZone *enZone = TimeZone::createTimeZone(UnicodeString("ECT/GMT"));
|
||||
|
@ -777,7 +777,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
// ======= Test random skeleton
|
||||
DateTimePatternGenerator *randDTGen= DateTimePatternGenerator::createInstance(status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getFrench()) - exitting");
|
||||
dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getFrench()) - exiting");
|
||||
return;
|
||||
}
|
||||
UChar newChar;
|
||||
|
@ -812,7 +812,7 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||
|
||||
test = DateTimePatternGenerator::createEmptyInstance(status);
|
||||
if(U_FAILURE(status)) {
|
||||
errln("ERROR: Fail to create an empty instance ! - exitting.\n");
|
||||
errln("ERROR: Fail to create an empty instance ! - exiting.\n");
|
||||
delete test;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -515,7 +515,7 @@ void NumberFormatRegressionTest::Test4086575(void)
|
|||
// TODO: There is not a good way to find out that the creation of this number format has
|
||||
// failed. Major rewiring of format construction proposed.
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("Something is wrong with French number format - it should not fallback. Exitting - %s", u_errorName(status));
|
||||
dataerrln("Something is wrong with French number format - it should not fallback. Exiting - %s", u_errorName(status));
|
||||
delete nf1;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -196,7 +196,7 @@ void PluralFormatTest::pluralFormatUnitTest(/*char *par*/)
|
|||
UnicodeString oddAndEvenRule = UNICODE_STRING_SIMPLE("odd: n mod 2 is 1");
|
||||
LocalPointer<PluralRules>plRules(PluralRules::createRules(oddAndEvenRule, status));
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: create PluralRules instance failed in unit tests.- exitting");
|
||||
dataerrln("ERROR: create PluralRules instance failed in unit tests.- exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,7 @@ void PluralFormatTest::pluralFormatUnitTest(/*char *par*/)
|
|||
|
||||
PluralFormat plFmt=PluralFormat(*plRules, status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: PluralFormat constructor failed in unit tests.- exitting");
|
||||
dataerrln("ERROR: PluralFormat constructor failed in unit tests.- exiting");
|
||||
return;
|
||||
}
|
||||
plFmt.applyPattern(checkSyntaxtData[i], status);
|
||||
|
@ -232,7 +232,7 @@ void PluralFormatTest::pluralFormatUnitTest(/*char *par*/)
|
|||
status = U_ZERO_ERROR;
|
||||
PluralFormat plFmt=PluralFormat(*plRules, status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: PluralFormat constructor failed in unit tests.- exitting");
|
||||
dataerrln("ERROR: PluralFormat constructor failed in unit tests.- exiting");
|
||||
return;
|
||||
}
|
||||
plFmt.applyPattern(patternTestData[i], status);
|
||||
|
@ -249,7 +249,7 @@ void PluralFormatTest::pluralFormatUnitTest(/*char *par*/)
|
|||
plRules.adoptInstead(PluralRules::createRules(UNICODE_STRING_SIMPLE("odd: n mod 2 is 1"), status));
|
||||
PluralFormat pluralFmt = PluralFormat(*plRules, status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create PluralFormat instance in setLocale() test - exitting. ");
|
||||
dataerrln("ERROR: Could not create PluralFormat instance in setLocale() test - exiting. ");
|
||||
return;
|
||||
}
|
||||
pluralFmt.applyPattern(UNICODE_STRING_SIMPLE("odd{odd} other{even}"), status);
|
||||
|
@ -690,7 +690,7 @@ PluralFormatTest::numberFormatTest(PluralFormat* plFmt,
|
|||
UErrorCode status = U_ZERO_ERROR;
|
||||
|
||||
if ( (plFmt==NULL) || (numFmt==NULL) ) {
|
||||
dataerrln("ERROR: Could not create PluralFormat or NumberFormat - exitting");
|
||||
dataerrln("ERROR: Could not create PluralFormat or NumberFormat - exiting");
|
||||
return;
|
||||
}
|
||||
UnicodeString plResult, numResult ;
|
||||
|
|
|
@ -143,12 +143,12 @@ void PluralRulesTest::testAPI(/*char *par*/)
|
|||
PluralRules defRule(status);
|
||||
LocalPointer<PluralRules> test(new PluralRules(status), status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create PluralRules (default) - exitting");
|
||||
dataerrln("ERROR: Could not create PluralRules (default) - exiting");
|
||||
return;
|
||||
}
|
||||
LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create PluralRules (English) - exitting");
|
||||
dataerrln("ERROR: Could not create PluralRules (English) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ void PluralRulesTest::testAPI(/*char *par*/)
|
|||
for (int32_t i=0; i<10; ++i) {
|
||||
key = empRule->select(i);
|
||||
if ( key.charAt(0)!= 0x61 ) { // 'a'
|
||||
errln("ERROR: empty plural rules test failed! - exitting");
|
||||
errln("ERROR: empty plural rules test failed! - exiting");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ void PluralRulesTest::testAPI(/*char *par*/)
|
|||
LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status));
|
||||
setupResult(pluralTestResult[i], result, &max);
|
||||
if ( !checkEqual(*newRules, result, max) ) {
|
||||
errln("ERROR: simple plural rules failed! - exitting");
|
||||
errln("ERROR: simple plural rules failed! - exiting");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -219,12 +219,12 @@ void PluralRulesTest::testAPI(/*char *par*/)
|
|||
};
|
||||
LocalPointer<PluralRules> newRules(test->createRules(complexRule, status));
|
||||
if ( !checkEqual(*newRules, cRuleResult, 12) ) {
|
||||
errln("ERROR: complex plural rules failed! - exitting");
|
||||
errln("ERROR: complex plural rules failed! - exiting");
|
||||
return;
|
||||
}
|
||||
newRules.adoptInstead(test->createRules(complexRule2, status));
|
||||
if ( !checkEqual(*newRules, cRuleResult, 12) ) {
|
||||
errln("ERROR: complex plural rules failed! - exitting");
|
||||
errln("ERROR: complex plural rules failed! - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -234,7 +234,7 @@ void PluralRulesTest::testAPI(/*char *par*/)
|
|||
status = U_ZERO_ERROR;
|
||||
newRules.adoptInstead(test->createRules(decimalRule, status));
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create PluralRules for testing fractions - exitting");
|
||||
dataerrln("ERROR: Could not create PluralRules for testing fractions - exiting");
|
||||
return;
|
||||
}
|
||||
double fData[] = {-101, -100, -1, -0.0, 0, 0.1, 1, 1.999, 2.0, 100, 100.001 };
|
||||
|
@ -250,7 +250,7 @@ void PluralRulesTest::testAPI(/*char *par*/)
|
|||
logln("Testing Equality of PluralRules");
|
||||
|
||||
if ( !testEquality(*test) ) {
|
||||
errln("ERROR: complex plural rules failed! - exitting");
|
||||
errln("ERROR: complex plural rules failed! - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -4117,7 +4117,7 @@ void RegexTest::PerlTests() {
|
|||
// building up an ICU string from the results of the ICU match.
|
||||
// The Perl expression will contain references to the results of
|
||||
// a regex match, including the matched string, capture group strings,
|
||||
// group starting and ending indicies, etc.
|
||||
// group starting and ending indices, etc.
|
||||
//
|
||||
UnicodeString resultString;
|
||||
UnicodeString perlExpr = fields[3];
|
||||
|
@ -4514,7 +4514,7 @@ void RegexTest::PerlTestsUTF8() {
|
|||
// building up an ICU string from the results of the ICU match.
|
||||
// The Perl expression will contain references to the results of
|
||||
// a regex match, including the matched string, capture group strings,
|
||||
// group starting and ending indicies, etc.
|
||||
// group starting and ending indices, etc.
|
||||
//
|
||||
UnicodeString resultString;
|
||||
UnicodeString perlExpr = fields[3];
|
||||
|
|
|
@ -55,7 +55,7 @@ void IntlTestSimpleDateFormatAPI::testAPI(/*char *par*/)
|
|||
|
||||
SimpleDateFormat def(status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create SimpleDateFormat (default) - exitting");
|
||||
dataerrln("ERROR: Could not create SimpleDateFormat (default) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ void IntlTestSimpleDateFormatAPI::testAPI(/*char *par*/)
|
|||
status = U_ZERO_ERROR;
|
||||
SimpleDateFormat cust1(pattern, symbols, status);
|
||||
if(U_FAILURE(status)) {
|
||||
dataerrln("ERROR: Could not create SimpleDateFormat (pattern, symbols*) - exitting");
|
||||
dataerrln("ERROR: Could not create SimpleDateFormat (pattern, symbols*) - exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ void SelectFormatTest::selectFormatUnitTest(/*char *par*/)
|
|||
VERBOSE_USTRING(SIMPLE_PATTERN);
|
||||
SelectFormat* selFmt = new SelectFormat( SIMPLE_PATTERN , status);
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("ERROR: SelectFormat Unit Test constructor failed in unit tests.- exitting");
|
||||
dataerrln("ERROR: SelectFormat Unit Test constructor failed in unit tests.- exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ void SelectFormatTest::selectFormatUnitTest(/*char *par*/)
|
|||
selFmt = new SelectFormat( SIMPLE_PATTERN , status);
|
||||
//SelectFormat* selFmt1 = new SelectFormat( SIMPLE_PATTERN , status);
|
||||
if (U_FAILURE(status)) {
|
||||
errln("ERROR: SelectFormat Unit Test constructor failed in unit tests.- exitting");
|
||||
errln("ERROR: SelectFormat Unit Test constructor failed in unit tests.- exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -272,7 +272,7 @@ void SelectFormatTest::selectFormatAPITest(/*char *par*/)
|
|||
UErrorCode status1 = U_ZERO_ERROR;
|
||||
SelectFormat* selFmt1 = new SelectFormat( SIMPLE_PATTERN , status1);
|
||||
if( U_FAILURE(status1)) {
|
||||
errln("ERROR: SelectFormat constructor failed in staticClassID test! Exitting");
|
||||
errln("ERROR: SelectFormat constructor failed in staticClassID test! Exiting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ main(int argc, char* argv[]) {
|
|||
#if UCONFIG_ENABLE_PLUGINS
|
||||
" -L or --list-plugins - List and diagnose issues with ICU Plugins\n"
|
||||
#endif
|
||||
" -K or --cleanup - Call u_cleanup() before exitting (will attempt to unload plugins)\n"
|
||||
" -K or --cleanup - Call u_cleanup() before exiting (will attempt to unload plugins)\n"
|
||||
"\n"
|
||||
"If no arguments are given, the tool will print ICU version and configuration information.\n"
|
||||
);
|
||||
|
|
|
@ -15,7 +15,7 @@ package com.ibm.icu.lang;
|
|||
*/
|
||||
public class UCharacterEnums {
|
||||
|
||||
/** This is just a namespace, it is not instantiatable. */
|
||||
/** This is just a namespace, it is not instantiable. */
|
||||
///CLOVER:OFF
|
||||
private UCharacterEnums() {}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import com.ibm.icu.impl.Utility;
|
|||
* <LI>Smaller memory footprint.
|
||||
* </UL>
|
||||
* A compact array is composed of a index array and value array. The index
|
||||
* array contains the indicies of Unicode characters to the value array.
|
||||
* array contains the indices of Unicode characters to the value array.
|
||||
*
|
||||
* @see CompactCharArray
|
||||
* @author Helena Shih
|
||||
|
@ -81,7 +81,7 @@ public final class CompactByteArray implements Cloneable {
|
|||
|
||||
/**
|
||||
* Constructor for CompactByteArray.
|
||||
* @param indexArray the indicies of the compact array.
|
||||
* @param indexArray the indices of the compact array.
|
||||
* @param newValues the values of the compact array.
|
||||
* @exception IllegalArgumentException If the index is out of range.
|
||||
* @internal
|
||||
|
@ -107,7 +107,7 @@ public final class CompactByteArray implements Cloneable {
|
|||
/**
|
||||
* Constructor for CompactByteArray.
|
||||
*
|
||||
* @param indexArray the RLE-encoded indicies of the compact array.
|
||||
* @param indexArray the RLE-encoded indices of the compact array.
|
||||
* @param valueArray the RLE-encoded values of the compact array.
|
||||
*
|
||||
* @throws IllegalArgumentException if the index or value array is
|
||||
|
|
|
@ -26,7 +26,7 @@ import com.ibm.icu.impl.Utility;
|
|||
* <LI>Smaller memory footprint.
|
||||
* </UL>
|
||||
* A compact array is composed of a index array and value array. The index
|
||||
* array contains the indicies of Unicode characters to the value array.
|
||||
* array contains the indices of Unicode characters to the value array.
|
||||
* @see CompactByteArray
|
||||
* @author Helena Shih
|
||||
* @internal
|
||||
|
@ -82,7 +82,7 @@ public final class CompactCharArray implements Cloneable {
|
|||
|
||||
/**
|
||||
* Constructor for CompactCharArray.
|
||||
* @param indexArray the indicies of the compact array.
|
||||
* @param indexArray the indices of the compact array.
|
||||
* @param newValues the values of the compact array.
|
||||
* @exception IllegalArgumentException If the index is out of range.
|
||||
* @internal
|
||||
|
@ -108,7 +108,7 @@ public final class CompactCharArray implements Cloneable {
|
|||
/**
|
||||
* Constructor for CompactCharArray.
|
||||
*
|
||||
* @param indexArray the RLE-encoded indicies of the compact array.
|
||||
* @param indexArray the RLE-encoded indices of the compact array.
|
||||
* @param valueArray the RLE-encoded values of the compact array.
|
||||
*
|
||||
* @throws IllegalArgumentException if the index or value array is
|
||||
|
|
|
@ -198,7 +198,7 @@ public class BIG5Tool {
|
|||
// Output the list of characters formatted for pasting into a
|
||||
// Java source code array initializer.
|
||||
// Resort into order based on the character code value, not
|
||||
// on frequency of occurence.
|
||||
// on frequency of occurrence.
|
||||
//
|
||||
List charList = new ArrayList();
|
||||
|
||||
|
@ -228,7 +228,7 @@ public class BIG5Tool {
|
|||
|
||||
//
|
||||
// This is a little class containing a
|
||||
// multi-byte character value and an occurence count for that char.
|
||||
// multi-byte character value and an occurrence count for that char.
|
||||
// Instances of this class are kept in the collection that accumulates statistics
|
||||
//
|
||||
// WARNING: this class's natural ordering (from Comparable) and equals()
|
||||
|
@ -244,7 +244,7 @@ public class BIG5Tool {
|
|||
}
|
||||
|
||||
// Equals needs to work with a map, with the charCode as the key.
|
||||
// For insertion/lookup, we care about the char code only, not the occurence count.
|
||||
// For insertion/lookup, we care about the char code only, not the occurrence count.
|
||||
public boolean equals(Object other) {
|
||||
ChEl o = (ChEl)other;
|
||||
return o.charCode == this.charCode;
|
||||
|
@ -256,7 +256,7 @@ public class BIG5Tool {
|
|||
return charCode;
|
||||
}
|
||||
|
||||
// We want to be able to sort the results by frequency of occurence
|
||||
// We want to be able to sort the results by frequency of occurrence
|
||||
// Compare backwards. We want most frequent chars first.
|
||||
public int compareTo(Object other) {
|
||||
ChEl o = (ChEl)other;
|
||||
|
|
|
@ -137,12 +137,12 @@ public class EUCTool {
|
|||
totalMbcsChars++;
|
||||
}
|
||||
if (ichar.charValue <= 255) {
|
||||
// Don't keep occurence statistics for the single byte range
|
||||
// Don't keep occurrence statistics for the single byte range
|
||||
continue;
|
||||
}
|
||||
|
||||
//
|
||||
// Frequency of occurence statistics are accumulated in a map.
|
||||
// Frequency of occurrence statistics are accumulated in a map.
|
||||
//
|
||||
ChEl keyEl = new ChEl(ichar.charValue, 0);
|
||||
ChEl valEl = (ChEl)m.get(keyEl);
|
||||
|
@ -228,7 +228,7 @@ public class EUCTool {
|
|||
|
||||
//
|
||||
// This is a little class containing a
|
||||
// multi-byte character value and an occurence count for that char.
|
||||
// multi-byte character value and an occurrence count for that char.
|
||||
// Instances of this class are kept in the collection that accumulates statistics
|
||||
//
|
||||
// WARNING: this class's natural ordering (from Comparable) and equals()
|
||||
|
@ -256,7 +256,7 @@ public class EUCTool {
|
|||
return charCode;
|
||||
}
|
||||
|
||||
// We want to be able to sort the results by frequency of occurence
|
||||
// We want to be able to sort the results by frequency of occurrence
|
||||
// Compare backwards. We want most frequent chars first.
|
||||
public int compareTo(Object other) {
|
||||
ChEl o = (ChEl)other;
|
||||
|
|
|
@ -83,7 +83,7 @@ then
|
|||
else
|
||||
if grep -q "^ticket:${to}[^0-9]" ${TMPF}.1;
|
||||
then
|
||||
echo "r${rev} already references ticket:${to} - exitting." >&2
|
||||
echo "r${rev} already references ticket:${to} - exiting." >&2
|
||||
exit 0
|
||||
else
|
||||
echo "Error: r${rev} doesn't pertain to ticket:${from} - was this already fixed?" >&2
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
There are two main options for determining the interval. Either an amount
|
||||
of time is specified that must pass in between reports, or a specific
|
||||
time during the week or day is specified at which time the report is generated
|
||||
irregardless of when the last report was generated.</P>
|
||||
regardless of when the last report was generated.</P>
|
||||
<P ALIGN="LEFT">The Resource Bundle setting is an indication of the base
|
||||
file from concerning which the report is generated. To change the base
|
||||
file, either type in the new file path to a resource bundle, or select
|
||||
|
|
Loading…
Add table
Reference in a new issue