From: Erik Torres Date: Fri, 4 Jun 2021 16:38:42 +0000 (+0000) Subject: ICU-21555 Fix typos from G to L X-Git-Tag: cldr/2021-06-15~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f043c7693e20c8cded76035918dad104e7256e3;p=icu ICU-21555 Fix typos from G to L See #1737 --- diff --git a/docs/userguide/icu4c/index.md b/docs/userguide/icu4c/index.md index 82b503af372..d89a02cc489 100644 --- a/docs/userguide/icu4c/index.md +++ b/docs/userguide/icu4c/index.md @@ -420,7 +420,7 @@ Try to follow the build steps from the [UNIX](#how-to-build-and-install-on-unix) 3. Modify `/source/configure.in` to properly set your **platform** C Macro define. 4. Run [autoconf](http://www.gnu.org/software/autoconf/) in `/source/` without any options. The autoconf tool is standard on most Linux systems. 5. If you have any optimization options that you want to normally use, you can modify `/source/runConfigureICU` to specify those options for your platform. -6. Build and test ICU on your platform. It is very important that you run the tests. If you don't run the tests, there is no guarentee that you have properly ported ICU. +6. Build and test ICU on your platform. It is very important that you run the tests. If you don't run the tests, there is no guarantee that you have properly ported ICU. ### Platform Dependent Implementations diff --git a/icu4c/source/common/caniter.cpp b/icu4c/source/common/caniter.cpp index b28acfc84ee..b1e1ed0d071 100644 --- a/icu4c/source/common/caniter.cpp +++ b/icu4c/source/common/caniter.cpp @@ -208,10 +208,10 @@ void CanonicalIterator::setSource(const UnicodeString &newSource, UErrorCode &st goto CleanPartialInitialization; } - // i should initialy be the number of code units at the + // i should initially be the number of code units at the // start of the string i = U16_LENGTH(source.char32At(0)); - //int32_t i = 1; + // int32_t i = 1; // find the segments // This code iterates through the source string and // extracts segments that end up on a codepoint that diff --git a/icu4c/source/common/icuplug.cpp b/icu4c/source/common/icuplug.cpp index 4ab8c66ebe3..efd4305b198 100644 --- a/icu4c/source/common/icuplug.cpp +++ b/icu4c/source/common/icuplug.cpp @@ -284,7 +284,7 @@ static void uplug_callPlug(UPlugData *plug, UPlugReason reason, UErrorCode *stat static void uplug_unloadPlug(UPlugData *plug, UErrorCode *status) { - if(plug->awaitingLoad) { /* shouldn't happen. Plugin hasn'tbeen loaded yet.*/ + if(plug->awaitingLoad) { /* shouldn't happen. Plugin hasn't been loaded yet.*/ *status = U_INTERNAL_PROGRAM_ERROR; return; } @@ -295,7 +295,7 @@ static void uplug_unloadPlug(UPlugData *plug, UErrorCode *status) { } static void uplug_queryPlug(UPlugData *plug, UErrorCode *status) { - if(!plug->awaitingLoad || !(plug->level == UPLUG_LEVEL_UNKNOWN) ) { /* shouldn't happen. Plugin hasn'tbeen loaded yet.*/ + if(!plug->awaitingLoad || !(plug->level == UPLUG_LEVEL_UNKNOWN) ) { /* shouldn't happen. Plugin hasn't been loaded yet.*/ *status = U_INTERNAL_PROGRAM_ERROR; return; } @@ -317,7 +317,7 @@ static void uplug_loadPlug(UPlugData *plug, UErrorCode *status) { if(U_FAILURE(*status)) { return; } - if(!plug->awaitingLoad || (plug->level < UPLUG_LEVEL_LOW) ) { /* shouldn't happen. Plugin hasn'tbeen loaded yet.*/ + if(!plug->awaitingLoad || (plug->level < UPLUG_LEVEL_LOW) ) { /* shouldn't happen. Plugin hasn't been loaded yet.*/ *status = U_INTERNAL_PROGRAM_ERROR; return; } diff --git a/icu4c/source/common/rbbi.cpp b/icu4c/source/common/rbbi.cpp index b821ca44639..834fec97362 100644 --- a/icu4c/source/common/rbbi.cpp +++ b/icu4c/source/common/rbbi.cpp @@ -262,7 +262,7 @@ RuleBasedBreakIterator::operator=(const RuleBasedBreakIterator& that) { fCharIter = &fSCharIter; if (that.fCharIter != NULL && that.fCharIter != &that.fSCharIter) { - // This is a little bit tricky - it will intially appear that + // This is a little bit tricky - it will initially appear that // this->fCharIter is adopted, even if that->fCharIter was // not adopted. That's ok. fCharIter = that.fCharIter->clone(); diff --git a/icu4c/source/common/rbbi_cache.cpp b/icu4c/source/common/rbbi_cache.cpp index f3a89fdccd5..d067db3ef84 100644 --- a/icu4c/source/common/rbbi_cache.cpp +++ b/icu4c/source/common/rbbi_cache.cpp @@ -201,7 +201,7 @@ void RuleBasedBreakIterator::DictionaryCache::populateDictionary(int32_t startPo /* - * BreakCache implemetation + * BreakCache implementation */ RuleBasedBreakIterator::BreakCache::BreakCache(RuleBasedBreakIterator *bi, UErrorCode &status) : diff --git a/icu4c/source/common/rbbistbl.cpp b/icu4c/source/common/rbbistbl.cpp index 5303f760969..627ec1827cd 100644 --- a/icu4c/source/common/rbbistbl.cpp +++ b/icu4c/source/common/rbbistbl.cpp @@ -63,7 +63,7 @@ RBBISymbolTable::~RBBISymbolTable() // -// RBBISymbolTable::lookup This function from the abstract symbol table inteface +// RBBISymbolTable::lookup This function from the abstract symbol table interface // looks up a variable name and returns a UnicodeString // containing the substitution text. // diff --git a/icu4c/source/common/rbbitblb.cpp b/icu4c/source/common/rbbitblb.cpp index dd76337bc67..b55dd17339d 100644 --- a/icu4c/source/common/rbbitblb.cpp +++ b/icu4c/source/common/rbbitblb.cpp @@ -1431,7 +1431,7 @@ void RBBITableBuilder::exportTable(void *where) { void RBBITableBuilder::buildSafeReverseTable(UErrorCode &status) { // The safe table creation has three steps: - // 1. Identifiy pairs of character classes that are "safe." Safe means that boundaries + // 1. Identify pairs of character classes that are "safe." Safe means that boundaries // following the pair do not depend on context or state before the pair. To test // whether a pair is safe, run it through the main forward state table, starting // from each state. If the the final state is the same, no matter what the starting state, diff --git a/icu4c/source/common/ucase.cpp b/icu4c/source/common/ucase.cpp index 4f4c274d60b..4aa856507aa 100644 --- a/icu4c/source/common/ucase.cpp +++ b/icu4c/source/common/ucase.cpp @@ -351,7 +351,7 @@ strcmpMax(const UChar *s, int32_t length, const UChar *t, int32_t max) { if(max==0 || *t==0) { return 0; /* equal to length of both strings */ } else { - return -max; /* return lengh difference */ + return -max; /* return length difference */ } } diff --git a/icu4c/source/common/ucmndata.cpp b/icu4c/source/common/ucmndata.cpp index ba2310bb7ab..4215d66257d 100644 --- a/icu4c/source/common/ucmndata.cpp +++ b/icu4c/source/common/ucmndata.cpp @@ -18,7 +18,7 @@ * contents for locating the individual items by name. * * Two formats for the table of contents are supported, which is - * why there is an abstract inteface involved. + * why there is an abstract interface involved. * */ diff --git a/icu4c/source/common/ucmndata.h b/icu4c/source/common/ucmndata.h index c3eba9f4d02..486b4fd7b5f 100644 --- a/icu4c/source/common/ucmndata.h +++ b/icu4c/source/common/ucmndata.h @@ -18,10 +18,10 @@ * contents for locating the individual items by name. * * Two formats for the table of contents are supported, which is - * why there is an abstract inteface involved. + * why there is an abstract interface involved. * * These functions are part of the ICU internal implementation, and - * are not inteded to be used directly by applications. + * are not intended to be used directly by applications. */ #ifndef __UCMNDATA_H__ diff --git a/icu4c/source/common/ucnv_lmb.cpp b/icu4c/source/common/ucnv_lmb.cpp index 44f93beecdf..4656a38561e 100644 --- a/icu4c/source/common/ucnv_lmb.cpp +++ b/icu4c/source/common/ucnv_lmb.cpp @@ -192,7 +192,7 @@ LMBCS, was to use up the spaces of the form LOTUS added a new group 0x14 to hold Unicode values not otherwise represented in LMBCS: */ #define ULMBCS_GRP_UNICODE 0x14 -/* The two bytes appearing after a 0x14 are intrepreted as UFT-16 BE +/* The two bytes appearing after a 0x14 are interpreted as UFT-16 BE (Big-Endian) characters. The exception comes when the UTF16 representation would have a zero as the second byte. In that case, 'F6' is used in its place, and the bytes are swapped. (This prevents diff --git a/icu4c/source/common/ucnvscsu.cpp b/icu4c/source/common/ucnvscsu.cpp index 74b5722b975..d9218bbcf8d 100644 --- a/icu4c/source/common/ucnvscsu.cpp +++ b/icu4c/source/common/ucnvscsu.cpp @@ -119,7 +119,7 @@ enum { }; typedef struct SCSUData { - /* dynamic window offsets, intitialize to default values from initialDynamicOffsets */ + /* dynamic window offsets, initialize to default values from initialDynamicOffsets */ uint32_t toUDynamicOffsets[8]; uint32_t fromUDynamicOffsets[8]; diff --git a/icu4c/source/common/uhash.h b/icu4c/source/common/uhash.h index af75999860d..2ce296f0ec7 100644 --- a/icu4c/source/common/uhash.h +++ b/icu4c/source/common/uhash.h @@ -128,7 +128,7 @@ typedef UElementsAreEqual UValueComparator; /* see cmemory.h for UObjectDeleter and uprv_deleteUObject() */ /** - * This specifies whether or not, and how, the hastable resizes itself. + * This specifies whether or not, and how, the hashtable resizes itself. * See uhash_setResizePolicy(). */ enum UHashResizePolicy { @@ -209,7 +209,7 @@ uhash_open(UHashFunction *keyHash, * NULL. * @param keyComp A pointer to the function that compares keys. Must * not be NULL. - * @param size The initial capacity of this hash table. + * @param size The initial capacity of this hashtable. * @param status A pointer to an UErrorCode to receive any errors. * @return A pointer to a UHashtable, or 0 if an error occurred. * @see uhash_open @@ -244,7 +244,7 @@ uhash_init(UHashtable *hash, * NULL. * @param keyComp A pointer to the function that compares keys. Must * not be NULL. - * @param size The initial capacity of this hash table. + * @param size The initial capacity of this hashtable. * @param status A pointer to an UErrorCode to receive any errors. * @return A pointer to a UHashtable, or 0 if an error occurred. * @see uhash_openSize @@ -322,7 +322,7 @@ U_CAPI UObjectDeleter *U_EXPORT2 uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn); /** - * Specify whether or not, and how, the hastable resizes itself. + * Specify whether or not, and how, the hashtable resizes itself. * By default, tables grow but do not shrink (policy U_GROW). * See enum UHashResizePolicy. * @param hash The UHashtable to set @@ -780,7 +780,7 @@ uhash_deleteHashtable(void *obj); /* Use uprv_free() itself as a deleter for any key or value allocated using uprv_malloc. */ /** - * Checks if the given hash tables are equal or not. + * Checks if the given hashtables are equal or not. * @param hash1 * @param hash2 * @return true if the hashtables are equal and false if not. diff --git a/icu4c/source/common/uloc_tag.cpp b/icu4c/source/common/uloc_tag.cpp index f4d38a26d0b..dabe6e44825 100644 --- a/icu4c/source/common/uloc_tag.cpp +++ b/icu4c/source/common/uloc_tag.cpp @@ -139,7 +139,7 @@ static const char* const LEGACY[] = { Updated on 2018-09-12 from https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry . - The table lists redundant tags with preferred value in the IANA languate tag registry. + The table lists redundant tags with preferred value in the IANA language tag registry. It's generated with the following command: curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\ diff --git a/icu4c/source/common/umapfile.h b/icu4c/source/common/umapfile.h index 92bd567a2a9..adc265203dc 100644 --- a/icu4c/source/common/umapfile.h +++ b/icu4c/source/common/umapfile.h @@ -18,7 +18,7 @@ * whatever means are available. * * These functions are part of the ICU internal implementation, and - * are not inteded to be used directly by applications. + * are not intended to be used directly by applications. * *----------------------------------------------------------------------------------*/ diff --git a/icu4c/source/common/unicode/uchriter.h b/icu4c/source/common/unicode/uchriter.h index f5083561a86..54bb6669aa6 100644 --- a/icu4c/source/common/unicode/uchriter.h +++ b/icu4c/source/common/unicode/uchriter.h @@ -56,7 +56,7 @@ public: * The starting * position is specified by "position". If "position" is outside the valid * iteration range, the behavior of this object is undefined. - * @param textPtr The char16_t array to be iteratd over + * @param textPtr The char16_t array to be iterated over * @param length The length of the char16_t array * @param position The starting position of the iteration * @stable ICU 2.0 diff --git a/icu4c/source/common/utext.cpp b/icu4c/source/common/utext.cpp index 55245b3e96f..ada83d5b751 100644 --- a/icu4c/source/common/utext.cpp +++ b/icu4c/source/common/utext.cpp @@ -689,7 +689,7 @@ utext_close(UText *ut) { } // Zero out function table of the closed UText. This is a defensive move, - // inteded to cause applications that inadvertantly use a closed + // intended to cause applications that inadvertently use a closed // utext to crash with null pointer errors. ut->pFuncs = NULL; @@ -2394,9 +2394,9 @@ ucstrTextClose(UText *ut) { static int64_t U_CALLCONV ucstrTextLength(UText *ut) { if (ut->a < 0) { - // null terminated, we don't yet know the length. Scan for it. + // null terminated, we don't yet know the length. Scan for it. // Access is not convenient for doing this - // because the current interation postion can't be changed. + // because the current iteration position can't be changed. const UChar *str = (const UChar *)ut->context; for (;;) { if (str[ut->chunkNativeLimit] == 0) { diff --git a/icu4c/source/i18n/calendar.cpp b/icu4c/source/i18n/calendar.cpp index 81dfa7067c6..a09ab1508a2 100644 --- a/icu4c/source/i18n/calendar.cpp +++ b/icu4c/source/i18n/calendar.cpp @@ -1558,7 +1558,7 @@ void Calendar::computeFields(UErrorCode &ec) // fields computed by handleComputeFields(). computeWeekFields(ec); - // Compute time-related fields. These are indepent of the date and + // Compute time-related fields. These are independent of the date and // of the subclass algorithm. They depend only on the local zone // wall milliseconds in day. int32_t millisInDay = (int32_t) (localMillis - (days * kOneDay)); diff --git a/icu4c/source/i18n/collation.h b/icu4c/source/i18n/collation.h index ecbba29057f..6a449a3eb69 100644 --- a/icu4c/source/i18n/collation.h +++ b/icu4c/source/i18n/collation.h @@ -250,7 +250,7 @@ public: * Tag for a lead surrogate code unit. * Optional optimization for UTF-16 string processing. * Bits 31..10: Unused, 0. - * 9.. 8: =0: All associated supplementary code points are unassigned-implict. + * 9.. 8: =0: All associated supplementary code points are unassigned-implicit. * =1: All associated supplementary code points fall back to the base data. * else: (Normally 2) Look up the data for the supplementary code point. */ diff --git a/icu4c/source/i18n/csr2022.h b/icu4c/source/i18n/csr2022.h index cde9019b466..aa803ce9a4d 100644 --- a/icu4c/source/i18n/csr2022.h +++ b/icu4c/source/i18n/csr2022.h @@ -21,7 +21,7 @@ U_NAMESPACE_BEGIN class CharsetMatch; /** - * class CharsetRecog_2022 part of the ICU charset detection imlementation. + * class CharsetRecog_2022 part of the ICU charset detection implementation. * This is a superclass for the individual detectors for * each of the detectable members of the ISO 2022 family * of encodings. diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index daa1129a6ab..14725e71705 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -137,7 +137,7 @@ DecimalFormat::setAttribute(UNumberFormatAttribute attr, int32_t newValue, UErro if (U_FAILURE(status)) { return *this; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return *this; } @@ -271,7 +271,7 @@ int32_t DecimalFormat::getAttribute(UNumberFormatAttribute attr, UErrorCode& sta if (U_FAILURE(status)) { return -1; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return -1; } @@ -534,7 +534,7 @@ UnicodeString& DecimalFormat::format(double number, UnicodeString& appendTo, Fie return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -558,7 +558,7 @@ DecimalFormat::format(double number, UnicodeString& appendTo, FieldPositionItera return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -614,7 +614,7 @@ UnicodeString& DecimalFormat::format(int64_t number, UnicodeString& appendTo, Fi return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -638,7 +638,7 @@ DecimalFormat::format(int64_t number, UnicodeString& appendTo, FieldPositionIter return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -662,7 +662,7 @@ DecimalFormat::format(StringPiece number, UnicodeString& appendTo, FieldPosition return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -682,7 +682,7 @@ UnicodeString& DecimalFormat::format(const DecimalQuantity& number, UnicodeStrin return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -703,7 +703,7 @@ DecimalFormat::format(const DecimalQuantity& number, UnicodeString& appendTo, Fi return appendTo; // don't overwrite status if it's already a failure. } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; appendTo.setToBogus(); return appendTo; @@ -1304,7 +1304,7 @@ void DecimalFormat::setFormatFailIfMoreThanMaxDigits(UBool value) { UnicodeString& DecimalFormat::toPattern(UnicodeString& result) const { if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. result.setToBogus(); return result; } @@ -1333,7 +1333,7 @@ UnicodeString& DecimalFormat::toPattern(UnicodeString& result) const { UnicodeString& DecimalFormat::toLocalizedPattern(UnicodeString& result) const { if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. result.setToBogus(); return result; } @@ -1352,7 +1352,7 @@ void DecimalFormat::applyPattern(const UnicodeString& pattern, UErrorCode& statu // don't overwrite status if it's already a failure. if (U_FAILURE(status)) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return; } @@ -1370,7 +1370,7 @@ void DecimalFormat::applyLocalizedPattern(const UnicodeString& localizedPattern, // don't overwrite status if it's already a failure. if (U_FAILURE(status)) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return; } @@ -1509,7 +1509,7 @@ void DecimalFormat::setCurrency(const char16_t* theCurrency, UErrorCode& ec) { // don't overwrite ec if it's already a failure. if (U_FAILURE(ec)) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. ec = U_MEMORY_ALLOCATION_ERROR; return; } @@ -1536,7 +1536,7 @@ void DecimalFormat::setCurrencyUsage(UCurrencyUsage newUsage, UErrorCode* ec) { // don't overwrite ec if it's already a failure. if (U_FAILURE(*ec)) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. *ec = U_MEMORY_ALLOCATION_ERROR; return; } @@ -1561,7 +1561,7 @@ DecimalFormat::formatToDecimalQuantity(double number, DecimalQuantity& output, U // don't overwrite status if it's already a failure. if (U_FAILURE(status)) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return; } @@ -1573,7 +1573,7 @@ void DecimalFormat::formatToDecimalQuantity(const Formattable& number, DecimalQu // don't overwrite status if it's already a failure. if (U_FAILURE(status)) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return; } @@ -1587,7 +1587,7 @@ const number::LocalizedNumberFormatter* DecimalFormat::toNumberFormatter(UErrorC // We sometimes need to return nullptr here (see ICU-20380) if (U_FAILURE(status)) { return nullptr; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. status = U_MEMORY_ALLOCATION_ERROR; return nullptr; } @@ -1600,7 +1600,7 @@ void DecimalFormat::touch(UErrorCode& status) { return; } if (fields == nullptr) { - // We only get here if an OOM error happend during construction, copy construction, assignment, or modification. + // We only get here if an OOM error happened during construction, copy construction, assignment, or modification. // For regular construction, the caller should have checked the status variable for errors. // For copy construction, there is unfortunately nothing to report the error, so we need to guard against // this possible bad state here and set the status to an error. diff --git a/icu4c/source/i18n/nfrs.cpp b/icu4c/source/i18n/nfrs.cpp index 1bd6942bf9d..25ea6dcc1bd 100644 --- a/icu4c/source/i18n/nfrs.cpp +++ b/icu4c/source/i18n/nfrs.cpp @@ -630,7 +630,7 @@ NFRuleSet::findFractionRuleSetRule(double number) const // value, then the first one (the one we found above) is used if // the numerator of the fraction is 1 and the second one is used if // the numerator of the fraction is anything else (this lets us - // do things like "one third"/"two thirds" without haveing to define + // do things like "one third"/"two thirds" without having to define // a whole bunch of extra rule sets) if ((unsigned)(winner + 1) < rules.size() && rules[winner + 1]->getBaseValue() == rules[winner]->getBaseValue()) { diff --git a/icu4c/source/i18n/nfrule.cpp b/icu4c/source/i18n/nfrule.cpp index e5823bb2cae..67303d7b5bc 100644 --- a/icu4c/source/i18n/nfrule.cpp +++ b/icu4c/source/i18n/nfrule.cpp @@ -193,7 +193,7 @@ NFRule::makeRules(UnicodeString& description, rule2->radix = rule1->radix; rule2->exponent = rule1->exponent; - // rule2's rule text omits the stuff in brackets: initalize + // rule2's rule text omits the stuff in brackets: initialize // its rule text and substitutions accordingly sbuf.append(description, 0, brack1); if (brack2 + 1 < description.length()) { @@ -1533,7 +1533,7 @@ NFRule::findTextLenient(const UnicodeString& str, // in JDK 1.2, CollationElementIterator provides us with an // API to map between character offsets and collation elements // and we can do this by marching through the string comparing - // collation elements. We can't do that in JDK 1.1. Insted, + // collation elements. We can't do that in JDK 1.1. Instead, // we have to go through this horrible slow mess: int32_t p = startingAt; int32_t keyLen = 0; diff --git a/icu4c/source/i18n/regexcmp.cpp b/icu4c/source/i18n/regexcmp.cpp index ec8654d0ea0..50d42f7ebeb 100644 --- a/icu4c/source/i18n/regexcmp.cpp +++ b/icu4c/source/i18n/regexcmp.cpp @@ -748,7 +748,7 @@ UBool RegexCompile::doParseActions(int32_t action) case doConditionalExpr: // Conditionals such as (?(1)a:b) case doPerlInline: - // Perl inline-condtionals. (?{perl code}a|b) We're not perl, no way to do them. + // Perl inline-conditionals. (?{perl code}a|b) We're not perl, no way to do them. error(U_REGEX_UNIMPLEMENTED); break; @@ -2579,7 +2579,7 @@ UBool RegexCompile::compileInlineInterval() { // The pattern could match a string beginning with a German sharp-s // // To the ordinary case closure for a character c, we add all other -// characters cx where the case closure of cx incudes a string form that begins +// characters cx where the case closure of cx includes a string form that begins // with the original character c. // // This function could be made smarter. The full pattern string is available @@ -2919,7 +2919,7 @@ void RegexCompile::matchStartType() { break; - case URX_BACKSLASH_X: // Grahpeme Cluster. Minimum is 1, max unbounded. + case URX_BACKSLASH_X: // Grapheme Cluster. Minimum is 1, max unbounded. case URX_DOTANY_ALL: // . matches one or two. case URX_DOTANY: case URX_DOTANY_UNIX: @@ -3286,7 +3286,7 @@ int32_t RegexCompile::minMatchLength(int32_t start, int32_t end) { case URX_BACKSLASH_R: case URX_BACKSLASH_V: case URX_ONECHAR_I: - case URX_BACKSLASH_X: // Grahpeme Cluster. Minimum is 1, max unbounded. + case URX_BACKSLASH_X: // Grapheme Cluster. Minimum is 1, max unbounded. case URX_DOTANY_ALL: // . matches one or two. case URX_DOTANY: case URX_DOTANY_UNIX: @@ -3406,7 +3406,7 @@ int32_t RegexCompile::minMatchLength(int32_t start, int32_t end) { loc++; op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); if (URX_TYPE(op) == URX_LA_START) { - // The boilerplate for look-ahead includes two LA_END insturctions, + // The boilerplate for look-ahead includes two LA_END instructions, // Depth will be decremented by each one when it is seen. depth += 2; } @@ -3546,7 +3546,7 @@ int32_t RegexCompile::maxMatchLength(int32_t start, int32_t end) { // Call the max length unbounded, and stop further checking. case URX_BACKREF: // BackRef. Must assume that it might be a zero length match case URX_BACKREF_I: - case URX_BACKSLASH_X: // Grahpeme Cluster. Minimum is 1, max unbounded. + case URX_BACKSLASH_X: // Grapheme Cluster. Minimum is 1, max unbounded. currentLen = INT32_MAX; break; diff --git a/icu4c/source/i18n/regeximp.h b/icu4c/source/i18n/regeximp.h index 590d2168952..a223b02f031 100644 --- a/icu4c/source/i18n/regeximp.h +++ b/icu4c/source/i18n/regeximp.h @@ -37,7 +37,7 @@ U_NAMESPACE_BEGIN #define REGEX_DUMP_DEBUG #define REGEX_RUN_DEBUG -// End of #defines inteded to be directly set. +// End of #defines intended to be directly set. #include #endif diff --git a/icu4c/source/i18n/tzgnames.cpp b/icu4c/source/i18n/tzgnames.cpp index e056461dc30..e240202b729 100644 --- a/icu4c/source/i18n/tzgnames.cpp +++ b/icu4c/source/i18n/tzgnames.cpp @@ -328,7 +328,7 @@ private: // --------------------------------------------------- -// TZGNCore - core implmentation of TimeZoneGenericNames +// TZGNCore - core implementation of TimeZoneGenericNames // // TimeZoneGenericNames is parallel to TimeZoneNames, // but handles run-time generated time zone names. diff --git a/icu4c/source/i18n/tznames_impl.cpp b/icu4c/source/i18n/tznames_impl.cpp index 186aaaf74d0..0fa7408e4db 100644 --- a/icu4c/source/i18n/tznames_impl.cpp +++ b/icu4c/source/i18n/tznames_impl.cpp @@ -1194,7 +1194,7 @@ TimeZoneNamesImpl::getReferenceZoneID(const UnicodeString& mzID, const char* reg return TimeZoneNamesImpl::_getReferenceZoneID(mzID, region, tzID); } -// static implementaion of getReferenceZoneID +// static implementation of getReferenceZoneID UnicodeString& TimeZoneNamesImpl::_getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) { ZoneMeta::getZoneIdByMetazone(mzID, UnicodeString(region, -1, US_INV), tzID); diff --git a/icu4c/source/i18n/unicode/dtfmtsym.h b/icu4c/source/i18n/unicode/dtfmtsym.h index 69f9f9759ec..1a4a0c48b96 100644 --- a/icu4c/source/i18n/unicode/dtfmtsym.h +++ b/icu4c/source/i18n/unicode/dtfmtsym.h @@ -926,7 +926,7 @@ private: * Copy or alias an array in another object, as appropriate. * * @param dstArray the copy destination array. - * @param dstCount fill in with the lenth of 'dstArray'. + * @param dstCount fill in with the length of 'dstArray'. * @param srcArray the source array to be copied. * @param srcCount the length of items to be copied from the 'srcArray'. */ diff --git a/icu4c/source/i18n/unicode/translit.h b/icu4c/source/i18n/unicode/translit.h index 0556b740fab..75d9219b81f 100644 --- a/icu4c/source/i18n/unicode/translit.h +++ b/icu4c/source/i18n/unicode/translit.h @@ -157,7 +157,7 @@ class TransliteratorIDParser; * transliterator B decrements character values, then A * is an inverse of B and vice versa. If we compose A * with B in a compound transliterator, the result is the - * indentity transliterator, that is, a transliterator that does not + * identity transliterator, that is, a transliterator that does not * change its input text. * * The Transliterator method getInverse() diff --git a/icu4c/source/i18n/unicode/tzfmt.h b/icu4c/source/i18n/unicode/tzfmt.h index 4411865984b..3d1348290af 100644 --- a/icu4c/source/i18n/unicode/tzfmt.h +++ b/icu4c/source/i18n/unicode/tzfmt.h @@ -327,7 +327,7 @@ public: const TimeZoneNames* getTimeZoneNames() const; /** - * Sets the time zone display name data to this format instnace. + * Sets the time zone display name data to this format instance. * The caller should not delete the TimeZoenNames object after it is adopted * by this call. * @param tznames TimeZoneNames object to be adopted. @@ -336,7 +336,7 @@ public: void adoptTimeZoneNames(TimeZoneNames *tznames); /** - * Sets the time zone display name data to this format instnace. + * Sets the time zone display name data to this format instance. * @param tznames TimeZoneNames object to be set. * @stable ICU 50 */ diff --git a/icu4c/source/i18n/unicode/ucal.h b/icu4c/source/i18n/unicode/ucal.h index e63be685382..94abae83919 100644 --- a/icu4c/source/i18n/unicode/ucal.h +++ b/icu4c/source/i18n/unicode/ucal.h @@ -1289,7 +1289,7 @@ enum UCalendarLimitType { UCAL_MAXIMUM, /** Greatest minimum value */ UCAL_GREATEST_MINIMUM, - /** Leaest maximum value */ + /** Least maximum value */ UCAL_LEAST_MAXIMUM, /** Actual minimum value */ UCAL_ACTUAL_MINIMUM, diff --git a/icu4c/source/i18n/unicode/uspoof.h b/icu4c/source/i18n/unicode/uspoof.h index bf675bef51b..b674c91b2c2 100644 --- a/icu4c/source/i18n/unicode/uspoof.h +++ b/icu4c/source/i18n/unicode/uspoof.h @@ -1134,7 +1134,7 @@ uspoof_getCheckResultNumerics(const USpoofCheckResult *checkResult, UErrorCode * * @param sc The USpoofChecker * @param id1 The first of the two identifiers to be compared for * confusability. The strings are in UTF-16 format. - * @param length1 the length of the first identifer, expressed in + * @param length1 the length of the first identifier, expressed in * 16 bit UTF-16 code units, or -1 if the string is * nul terminated. * @param id2 The second of the two identifiers to be compared for diff --git a/icu4c/source/i18n/uspoof_impl.h b/icu4c/source/i18n/uspoof_impl.h index 3c72d915c44..cbfe4d937a2 100644 --- a/icu4c/source/i18n/uspoof_impl.h +++ b/icu4c/source/i18n/uspoof_impl.h @@ -8,7 +8,7 @@ * * uspoof_impl.h * -* Implemenation header for spoof detection +* Implementation header for spoof detection * */ @@ -301,7 +301,7 @@ struct SpoofDataHeader { int32_t fMagic; // (0x3845fdef) uint8_t fFormatVersion[4]; // Data Format. Same as the value in struct UDataInfo // if there is one associated with this data. - int32_t fLength; // Total lenght in bytes of this spoof data, + int32_t fLength; // Total length in bytes of this spoof data, // including all sections, not just the header. // The following four sections refer to data representing the confusable data diff --git a/icu4c/source/i18n/zonemeta.h b/icu4c/source/i18n/zonemeta.h index a5a446d8ccd..f21399342b9 100644 --- a/icu4c/source/i18n/zonemeta.h +++ b/icu4c/source/i18n/zonemeta.h @@ -40,7 +40,7 @@ public: /** * Return the canonical id for this tzid defined by CLDR, which might be the id itself. - * This overload method returns a persistent const UChar*, which is guranteed to persist + * This overload method returns a persistent const UChar*, which is guaranteed to persist * (a pointer to a resource). If the given system tzid is not known, U_ILLEGAL_ARGUMENT_ERROR * is set in the status. * @param tzid Zone ID diff --git a/icu4c/source/io/ufmt_cmn.cpp b/icu4c/source/io/ufmt_cmn.cpp index 0b6c18ff966..a475175f378 100644 --- a/icu4c/source/io/ufmt_cmn.cpp +++ b/icu4c/source/io/ufmt_cmn.cpp @@ -143,7 +143,7 @@ ufmt_uto64(const UChar *buffer, uint64_t result; - /* intialize parameters */ + /* initialize parameters */ limit = buffer + *len; count = 0; result = 0; @@ -175,7 +175,7 @@ ufmt_utop(const UChar *buffer, uint8_t bytes[sizeof(void*)]; } result; - /* intialize variables */ + /* initialize variables */ count = 0; offset = 0; result.ptr = NULL; diff --git a/icu4c/source/test/cintltst/cdtrgtst.c b/icu4c/source/test/cintltst/cdtrgtst.c index e88327d138e..0840831d6e2 100644 --- a/icu4c/source/test/cintltst/cdtrgtst.c +++ b/icu4c/source/test/cintltst/cdtrgtst.c @@ -351,7 +351,7 @@ void Test4061287() if(U_FAILURE(status)) ok = TRUE; if(ok!=TRUE) - log_err("Fail: Lenient not working: does lenient parsing in spite of setting Leninent as FALSE "); + log_err("Fail: Lenient not working: does lenient parsing in spite of setting Lenient as FALSE "); udat_close(df); diff --git a/icu4c/source/test/intltest/nmfmapts.cpp b/icu4c/source/test/intltest/nmfmapts.cpp index e5b69e44a09..e5f67f2f7d4 100644 --- a/icu4c/source/test/intltest/nmfmapts.cpp +++ b/icu4c/source/test/intltest/nmfmapts.cpp @@ -325,7 +325,7 @@ IntlTestNumberFormatAPI::testRegistration() LocalUNumberFormatPointer uf5(unum_open(UNUM_CURRENCY, NULL, 0, SRC_LOC.getName(), NULL, &status)); if (U_FAILURE(status)) { - dataerrln("Error creating instanaces."); + dataerrln("Error creating instances."); return; } else { float n = 1234.567f; diff --git a/icu4c/source/test/intltest/plurults.cpp b/icu4c/source/test/intltest/plurults.cpp index c7f02999cd6..21774358284 100644 --- a/icu4c/source/test/intltest/plurults.cpp +++ b/icu4c/source/test/intltest/plurults.cpp @@ -722,7 +722,7 @@ PluralRulesTest::testGetAllKeywordValues() { ok = FALSE; } - // We'll cheat a bit here. The samples happend to be in order and so are our + // We'll cheat a bit here. The samples happened to be in order and so are our // expected values, so we'll just test in order until a failure. If the // implementation changes to return samples in an arbitrary order, this test // must change. There's no actual restriction on the order of the samples. diff --git a/icu4c/source/test/intltest/transtst.cpp b/icu4c/source/test/intltest/transtst.cpp index d446b20a271..fb887c74693 100644 --- a/icu4c/source/test/intltest/transtst.cpp +++ b/icu4c/source/test/intltest/transtst.cpp @@ -3959,7 +3959,7 @@ void TransliteratorTest::TestAnyX(void) { */ void TransliteratorTest::TestAny(void) { UErrorCode status = U_ZERO_ERROR; - // Note: there is a lot of implict construction of UnicodeStrings from (char *) in + // Note: there is a lot of implicit construction of UnicodeStrings from (char *) in // function call parameters going on in this test. UnicodeSet alphabetic("[:alphabetic:]", status); if (U_FAILURE(status)) { diff --git a/icu4c/source/test/intltest/utxttest.cpp b/icu4c/source/test/intltest/utxttest.cpp index 09e7b602aa6..dc343189880 100644 --- a/icu4c/source/test/intltest/utxttest.cpp +++ b/icu4c/source/test/intltest/utxttest.cpp @@ -1395,7 +1395,7 @@ openFragmentedUnicodeString(UText *ut, UnicodeString *s, UErrorCode *status) { // (UTF-8 wrapper, for example) // // The test: -// 1. Create an inital UText +// 1. Create an initial UText // 2. Deep clone it. Contents should match original. // 3. Reset original to something different. // 4. Check that clone contents did not change. diff --git a/icu4c/source/test/perf/collationperf/collperf.cpp b/icu4c/source/test/perf/collationperf/collperf.cpp index a1d85561bcd..50ec9540394 100644 --- a/icu4c/source/test/perf/collationperf/collperf.cpp +++ b/icu4c/source/test/perf/collationperf/collperf.cpp @@ -483,7 +483,7 @@ void doBinarySearch() for (;;) { // not really a loop, just allows "break" to work, to simplify - // inadvertantly running more than one test through here. + // inadvertently running more than one test through here. if (opt_strcmp || opt_strcmpCPO) { unsigned long startTime = timeGetTime(); @@ -1316,7 +1316,7 @@ UChar UCharFile::get() { break; } - // Figure out the lenght of the char and read the rest of the bytes + // Figure out the length of the char and read the rest of the bytes // into a temp array. int nBytes; if (ch >= 0xF0) {nBytes=4;} diff --git a/icu4c/source/test/perf/ubrkperf/ubrkperfold.cpp b/icu4c/source/test/perf/ubrkperf/ubrkperfold.cpp index 7ac6e341e5f..8571a3edf54 100644 --- a/icu4c/source/test/perf/ubrkperf/ubrkperfold.cpp +++ b/icu4c/source/test/perf/ubrkperf/ubrkperfold.cpp @@ -589,7 +589,7 @@ UChar UCharFile::get() { break; } - // Figure out the lenght of the char and read the rest of the bytes + // Figure out the length of the char and read the rest of the bytes // into a temp array. int nBytes; if (ch >= 0xF0) {nBytes=4;} diff --git a/icu4c/source/test/testdata/regextst.txt b/icu4c/source/test/testdata/regextst.txt index 12146bc30b5..6fb90ef8143 100644 --- a/icu4c/source/test/testdata/regextst.txt +++ b/icu4c/source/test/testdata/regextst.txt @@ -100,7 +100,7 @@ "(?A<0>jk<2>B" "(?=(?<=(\p{Lu})(?=..(\p{Lu})))).." "ajkB" diff --git a/icu4c/source/tools/ctestfw/tstdtmod.cpp b/icu4c/source/tools/ctestfw/tstdtmod.cpp index f4580b165da..94df68fe29f 100644 --- a/icu4c/source/tools/ctestfw/tstdtmod.cpp +++ b/icu4c/source/tools/ctestfw/tstdtmod.cpp @@ -196,7 +196,7 @@ RBTestDataModule::RBTestDataModule(const char* name, TestLog& log, UErrorCode& s fNumberOfTests = ures_getSize(fTestData); fInfoRB = ures_getByKey(fModuleBundle, "Info", NULL, &status); if(status != U_ZERO_ERROR) { - log.errln(UNICODE_STRING_SIMPLE("Unable to initalize test data - missing mandatory description resources!")); + log.errln(UNICODE_STRING_SIMPLE("Unable to initialize test data - missing mandatory description resources!")); fDataTestValid = FALSE; } else { fInfo = new RBDataMap(fInfoRB, status); diff --git a/icu4c/source/tools/genrb/parse.h b/icu4c/source/tools/genrb/parse.h index dfe3b8dda06..bcd8e798f9a 100644 --- a/icu4c/source/tools/genrb/parse.h +++ b/icu4c/source/tools/genrb/parse.h @@ -25,7 +25,7 @@ #include "ucbuf.h" U_CDECL_BEGIN -/* One time parser initalisation */ +/* One time parser initialization */ void initParser(); /* Parse a ResourceBundle text file */ diff --git a/icu4c/source/tools/gensprep/store.c b/icu4c/source/tools/gensprep/store.c index b526e59454d..d9fbcdb461c 100644 --- a/icu4c/source/tools/gensprep/store.c +++ b/icu4c/source/tools/gensprep/store.c @@ -459,7 +459,7 @@ storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, mappingDataCapacity += adjustedLen; if(U_FAILURE(*status)){ - fprintf(stderr, "Failed to put entries into the hastable. Error: %s\n", u_errorName(*status)); + fprintf(stderr, "Failed to put entries into the hash table. Error: %s\n", u_errorName(*status)); exit(*status); } } diff --git a/icu4c/source/tools/pkgdata/pkgdata.cpp b/icu4c/source/tools/pkgdata/pkgdata.cpp index 5ab682e4df8..8de99cb9cea 100644 --- a/icu4c/source/tools/pkgdata/pkgdata.cpp +++ b/icu4c/source/tools/pkgdata/pkgdata.cpp @@ -916,7 +916,7 @@ static int32_t initializePkgDataFlags(UPKGOptions *o) { /* - * Given the base libName and version numbers, generate the libary file names and store it in libFileNames. + * Given the base libName and version numbers, generate the library file names and store it in libFileNames. * Depending on the configuration, the library name may either end with version number or shared object suffix. */ static void createFileNames(UPKGOptions *o, const char mode, const char *version_major, const char *version, const char *libName, UBool reverseExt, UBool noVersion) { @@ -1651,7 +1651,7 @@ static int32_t pkg_createWithoutAssemblyCode(UPKGOptions *o, const char *targetD const char *name; if (i == 0) { - /* The first iteration calls the gencmn function and initailizes the buffer. */ + /* The first iteration calls the gencmn function and initializes the buffer. */ createCommonDataFile(o->tmpDir, o->shortName, o->entryName, NULL, o->srcDir, o->comment, o->fileListFiles->str, 0, TRUE, o->verbose, gencmnFile); buffer[0] = 0; #ifdef USE_SINGLE_CCODE_FILE diff --git a/icu4c/source/tools/toolutil/ucbuf.h b/icu4c/source/tools/toolutil/ucbuf.h index b77d998a960..9214d419711 100644 --- a/icu4c/source/tools/toolutil/ucbuf.h +++ b/icu4c/source/tools/toolutil/ucbuf.h @@ -124,7 +124,7 @@ ucbuf_rewind(UCHARBUF* buf,UErrorCode* err); /** * Returns a pointer to the internal converted buffer * @param buf Pointer to UCHARBUF structure - * @param len Pointer to int32_t to receive the lenth of buffer + * @param len Pointer to int32_t to receive the length of buffer * @param err is a pointer to a valid UErrorCode value. If this value * indicates a failure on entry, the function will immediately return. * On exit the value will indicate the success of the operation. diff --git a/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/RbnfSampleRuleSets.java b/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/RbnfSampleRuleSets.java index aa036897963..c388ff9b9da 100644 --- a/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/RbnfSampleRuleSets.java +++ b/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/RbnfSampleRuleSets.java @@ -712,7 +712,7 @@ public class RbnfSampleRuleSets { * that are harder to alter than the traditional numerals (one could * fairly easily change a one to * a three just by adding two strokes, for example). This is also done in - * the other countries using Chinese idographs, but different ideographs + * the other countries using Chinese ideographs, but different ideographs * are used in those places. */ public static final String japanese = @@ -1810,7 +1810,7 @@ public class RbnfSampleRuleSets { + "that are harder to alter than the traditional numerals (one could " + "fairly easily change a one to " + "a three just by adding two strokes, for example). This is also done in " - + "the other countries using Chinese idographs, but different ideographs " + + "the other countries using Chinese ideographs, but different ideographs " + "are used in those places.", "Again in Greek we have to supply the words " diff --git a/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetICU.java b/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetICU.java index 3daba247021..b801e84e5aa 100644 --- a/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetICU.java +++ b/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetICU.java @@ -243,7 +243,7 @@ public abstract class CharsetICU extends Charset{ /** * Returns a charset object for the named charset. - * This method gurantee that ICU charset is returned when + * This method guarantees that ICU charset is returned when * available. If the ICU charset provider does not support * the specified charset, then try other charset providers * including the standard Java charset provider. diff --git a/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetSCSU.java b/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetSCSU.java index 07fa96d756e..eca12bafeb4 100644 --- a/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetSCSU.java +++ b/icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetSCSU.java @@ -111,7 +111,7 @@ class CharsetSCSU extends CharsetICU{ // }; private final static class SCSUData { - /* dynamic window offsets, intitialize to default values from initialDynamicOffsets */ + /* dynamic window offsets, initialize to default values from initialDynamicOffsets */ int toUDynamicOffsets[] = new int[8] ; int fromUDynamicOffsets[] = new int[8] ; diff --git a/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/Collation.java b/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/Collation.java index 0ae987c534a..0d57b174826 100644 --- a/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/Collation.java +++ b/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/Collation.java @@ -252,7 +252,7 @@ public final class Collation { * Tag for a lead surrogate code unit. * Optional optimization for UTF-16 string processing. * Bits 31..10: Unused, 0. - * 9.. 8: =0: All associated supplementary code points are unassigned-implict. + * 9.. 8: =0: All associated supplementary code points are unassigned-implicit. * =1: All associated supplementary code points fall back to the base data. * else: (Normally 2) Look up the data for the supplementary code point. */ diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/ICUService.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/ICUService.java index 6f0de5de00d..dff64535aaa 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/ICUService.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/ICUService.java @@ -199,7 +199,7 @@ public class ICUService extends ICUNotifier { * If the key has a fallback, modify the key and return true, * otherwise return false. The current ID will change if there * is a fallback. No currentIDs should be repeated, and fallback - * must eventually return false. This implmentation has no fallbacks + * must eventually return false. This implementation has no fallbacks * and always returns false. */ public boolean fallback() { diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/IDNA2003.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/IDNA2003.java index aac0b2318e9..45c03a25c58 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/IDNA2003.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/IDNA2003.java @@ -182,7 +182,7 @@ public final class IDNA2003 { int poLen = processOut.length(); if(poLen==0){ - throw new StringPrepParseException("Found zero length lable after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); + throw new StringPrepParseException("Found zero length label after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); } StringBuffer dest = new StringBuffer(); @@ -410,7 +410,7 @@ public final class IDNA2003 { sepIndex = getSeparatorIndex(srcArr,sepIndex,srcArr.length); String label = new String(srcArr,oldSepIndex,sepIndex-oldSepIndex); if(label.length()==0 && sepIndex!=srcArr.length ){ - throw new StringPrepParseException("Found zero length lable after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); + throw new StringPrepParseException("Found zero length label after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); } UCharacterIterator iter = UCharacterIterator.getInstance(label); result.append(convertToUnicode(iter,options)); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/IntTrieBuilder.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/IntTrieBuilder.java index 9f4d07df8e9..4108f3def4f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/IntTrieBuilder.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/IntTrieBuilder.java @@ -54,7 +54,7 @@ public class IntTrieBuilder extends TrieBuilder * Constructs a build table * @param aliasdata data to be filled into table * @param maxdatalength maximum data length allowed in table - * @param initialvalue inital data value + * @param initialvalue initial data value * @param latin1linear is latin 1 to be linear */ public IntTrieBuilder(int aliasdata[], int maxdatalength, diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java index bb86bcf9c91..fced2b62986 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java @@ -400,7 +400,7 @@ public final class UCaseProps { if(max==0 || unfold[unfoldOffset]==0) { return 0; /* equal to length of both strings */ } else { - return -max; /* return lengh difference */ + return -max; /* return length difference */ } } diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterUtility.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterUtility.java index 991d0e9d49f..1866cd1003e 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterUtility.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterUtility.java @@ -186,7 +186,7 @@ public final class UCharacterUtility ///CLOVER:OFF /** - * private constructor to avoid initialisation + * private constructor to avoid initialization */ private UCharacterUtility() { diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/TimeUnit.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/TimeUnit.java index e564feae189..7909bc4466f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/TimeUnit.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/TimeUnit.java @@ -79,7 +79,7 @@ public final class TimeUnit { they are measured */ // hack, initialization long array using expressions with 'L' at end doesn't - // compute entire expression using 'long'. differs from initializtion of + // compute entire expression using 'long'. differs from initialization of // a single constant static final long[] approxDurations = { 36525L*24*60*60*10, 3045*24*60*60*10L, 7*24*60*60*1000L, 24*60*60*1000L, diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/number/Grouper.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/number/Grouper.java index 47491ec942f..a15ac6f2384 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/number/Grouper.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/number/Grouper.java @@ -104,7 +104,7 @@ public class Grouper { private final short grouping2; /** - * The minimum gropuing size, with the following special values: + * The minimum grouping size, with the following special values: *
    *
  • -2 = needs locale data *
  • -3 = no less than 2 diff --git a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java index fb18c9e2b0f..5685407d4be 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java @@ -4833,7 +4833,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * UCharacter.MIN_VALUE and UCharacter.MAX_VALUE or does not have a name. *
    * Note calling any methods related to code point names, e.g. get*Name*() - * incurs a one-time initialisation cost to construct the name tables. + * incurs a one-time initialization cost to construct the name tables. * @param ch the code point for which to get the name * @return most current Unicode name * @stable ICU 2.1 @@ -4890,7 +4890,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * "<codepoint_type-codepoint_hex_digits>". E.g., <noncharacter-fffe> *
* Note calling any methods related to code point names, e.g. get*Name*() - * incurs a one-time initialisation cost to construct the name tables. + * incurs a one-time initialization cost to construct the name tables. * @param ch the code point for which to get the name * @return a name for the argument codepoint * @stable ICU 2.6 @@ -4905,7 +4905,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * UCharacter.MIN_VALUE and UCharacter.MAX_VALUE or does not have a name. *
* Note calling any methods related to code point names, e.g. get*Name*() - * incurs a one-time initialisation cost to construct the name tables. + * incurs a one-time initialization cost to construct the name tables. * @param ch the code point for which to get the name alias * @return Unicode name alias, or null * @stable ICU 4.4 @@ -4935,7 +4935,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * {@icu}

Finds a Unicode code point by its most current Unicode name and * return its code point value. All Unicode names are in uppercase. * Note calling any methods related to code point names, e.g. get*Name*() - * incurs a one-time initialisation cost to construct the name tables. + * incurs a one-time initialization cost to construct the name tables. * @param name most current Unicode character name whose code point is to * be returned * @return code point or -1 if name is not found @@ -4974,7 +4974,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * "<codepoint_type-codepoint_hex_digits>". E.g. <noncharacter-FFFE> * * Note calling any methods related to code point names, e.g. get*Name*() - * incurs a one-time initialisation cost to construct the name tables. + * incurs a one-time initialization cost to construct the name tables. * @param name codepoint name * @return code point associated with the name or -1 if the name is not * found. @@ -4989,7 +4989,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection * {@icu}

Find a Unicode character by its corrected name alias and return * its code point value. All Unicode names are in uppercase. * Note calling any methods related to code point names, e.g. get*Name*() - * incurs a one-time initialisation cost to construct the name tables. + * incurs a one-time initialization cost to construct the name tables. * @param name Unicode name alias whose code point is to be returned * @return code point or -1 if name is not found * @stable ICU 4.4 diff --git a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterCategory.java b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterCategory.java index bd2b23260ed..d460947d2d4 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterCategory.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterCategory.java @@ -105,7 +105,7 @@ public final class UCharacterCategory implements ECharacterCategory // private constructor ----------------------------------------------- ///CLOVER:OFF /** - * Private constructor to prevent initialisation + * Private constructor to prevent initialization */ private UCharacterCategory() { diff --git a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterDirection.java b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterDirection.java index 46928b2285e..1755c447ad6 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterDirection.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacterDirection.java @@ -26,7 +26,7 @@ public final class UCharacterDirection implements ECharacterDirection { // private constructor ========================================= ///CLOVER:OFF /** - * Private constructor to prevent initialisation + * Private constructor to prevent initialization */ private UCharacterDirection() { diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_2022.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_2022.java index 34b4e7cf5a7..327bf4bcc66 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_2022.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_2022.java @@ -9,7 +9,7 @@ package com.ibm.icu.text; /** - * class CharsetRecog_2022 part of the ICU charset detection imlementation. + * class CharsetRecog_2022 part of the ICU charset detection implementation. * This is a superclass for the individual detectors for * each of the detectable members of the ISO 2022 family * of encodings. diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_mbcs.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_mbcs.java index a9a4af58d5f..03e7b99d1c3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_mbcs.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_mbcs.java @@ -12,7 +12,7 @@ package com.ibm.icu.text; import java.util.Arrays; /** - * CharsetRecognizer implemenation for Asian - double or multi-byte - charsets. + * CharsetRecognizer implementation for Asian - double or multi-byte - charsets. * Match is determined mostly by the input data adhering to the * encoding scheme for the charset, and, optionally, * frequency-of-occurence of characters. diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java b/icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java index 6eae61cc9de..680a8251f73 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java @@ -152,7 +152,7 @@ import com.ibm.icu.util.UResourceBundle; *

* DateIntervalInfo are not expected to be subclassed. * Data for a calendar is loaded out of resource bundles. - * Through ICU 4.4, date interval patterns are only supported in the Gregoria + * Through ICU 4.4, date interval patterns are only supported in the Gregorian * calendar; non-Gregorian calendars are supported from ICU 4.4.1. * * @stable ICU 4.0 diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/RBBISymbolTable.java b/icu4j/main/classes/core/src/com/ibm/icu/text/RBBISymbolTable.java index e8570de34e3..199efa338f3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/RBBISymbolTable.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/RBBISymbolTable.java @@ -39,7 +39,7 @@ class RBBISymbolTable implements SymbolTable{ } // - // RBBISymbolTable::lookup This function from the abstract symbol table inteface + // RBBISymbolTable::lookup This function from the abstract symbol table interface // looks up a variable name and returns a UnicodeString // containing the substitution text. // diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java index 05131f57d65..61b6306d822 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java @@ -2367,7 +2367,7 @@ public class SimpleDateFormat extends DateFormat { private static final String NUMERIC_FORMAT_CHARS = "ADdFgHhKkmrSsuWwYy"; /** - * Format characters that indicate numeric fields when pattern lengh + * Format characters that indicate numeric fields when pattern length * is up to 2. */ private static final String NUMERIC_FORMAT_CHARS2 = "ceLMQq"; diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/StringPrep.java b/icu4j/main/classes/core/src/com/ibm/icu/text/StringPrep.java index 8019f408488..eef9e938852 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/StringPrep.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/StringPrep.java @@ -221,7 +221,7 @@ public final class StringPrep { private static final int INDEX_TOP = 16; /* changing this requires a new formatVersion */ - // CharTrie implmentation for reading the trie data + // CharTrie implementation for reading the trie data private CharTrie sprepTrie; // Indexes read from the data file private int[] indexes; diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java b/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java index bfa7e727ba2..04154054ff8 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java @@ -4539,7 +4539,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable, Compa } /** - * Compares UnicodeSets, where shorter come first, and otherwise lexigraphically + * Compares UnicodeSets, where shorter come first, and otherwise lexicographically * (according to the comparison of the first characters that differ). * @see java.lang.Comparable#compareTo(java.lang.Object) * @stable ICU 4.4 diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundle.java b/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundle.java index cec9fe95142..2cdb6d7b32f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundle.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundle.java @@ -136,7 +136,7 @@ public abstract class UResourceBundle extends ResourceBundle { * If null the default ICU package name is used. * @param localeName the locale for which a resource bundle is desired * @param root the class object from which to load the resource bundle - * @param disableFallback Option to disable locale inheritence. + * @param disableFallback Option to disable locale inheritance. * If true the fallback chain will not be built. * @throws MissingResourceException * if no resource bundle for the specified base name can be found diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundleIterator.java b/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundleIterator.java index 7aa04171b30..a0b4c8c212d 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundleIterator.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundleIterator.java @@ -18,7 +18,7 @@ import java.util.NoSuchElementException; * ICUResourceBundleIterator iterator = resB.getIterator(); * ICUResourceBundle temp; * while (iterator.hasNext()) { - * temp = iterartor.next(); + * temp = iterator.next(); * int type = temp.getType(); * switch(type){ * case UResourceBundle.STRING: diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterCategoryTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterCategoryTest.java index eb4f0553da9..f0f121314f5 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterCategoryTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterCategoryTest.java @@ -25,7 +25,7 @@ public class UCharacterCategoryTest extends TestFmwk // constructor ----------------------------------------------------------- /** - * Private constructor to prevent initialisation + * Private constructor to prevent initialization */ public UCharacterCategoryTest() { diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterThreadTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterThreadTest.java index 115bc40b2fb..b1eb9230447 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterThreadTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterThreadTest.java @@ -28,7 +28,7 @@ public class UCharacterThreadTest extends TestFmwk { // constructor ----------------------------------------------------------- /** - * Private constructor to prevent initialisation + * Private constructor to prevent initialization */ public UCharacterThreadTest() { diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/IDNAReference.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/IDNAReference.java index e4a2c0c17dd..d34599b6a00 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/IDNAReference.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/IDNAReference.java @@ -158,7 +158,7 @@ public class IDNAReference { } int poLen = processOut.length(); if(poLen==0){ - throw new StringPrepParseException("Found zero length lable after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); + throw new StringPrepParseException("Found zero length label after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); } StringBuffer dest = new StringBuffer(); @@ -359,7 +359,7 @@ public class IDNAReference { sepIndex = getSeparatorIndex(srcArr,sepIndex,srcArr.length); String label = new String(srcArr,oldSepIndex,sepIndex-oldSepIndex); if(label.length()==0 && sepIndex!=srcArr.length ){ - throw new StringPrepParseException("Found zero length lable after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); + throw new StringPrepParseException("Found zero length label after NamePrep.",StringPrepParseException.ZERO_LENGTH_LABEL); } UCharacterIterator iter = UCharacterIterator.getInstance(label); result.append(convertToUnicode(iter,options)); diff --git a/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/CollationPerformanceTest.java b/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/CollationPerformanceTest.java index 450a5504bcb..d8dfceed27f 100644 --- a/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/CollationPerformanceTest.java +++ b/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/CollationPerformanceTest.java @@ -334,7 +334,7 @@ public class CollationPerformanceTest { //int opt2 = 0; for(;;) { //not really a loop, just allows "break" to work, to simplify - //inadvertantly running more than one test through here + //inadvertently running more than one test through here if(opt_strcmp) { int r = 0; startTime = System.currentTimeMillis(); diff --git a/icu4j/tools/build/README.txt b/icu4j/tools/build/README.txt index 7ab66bfd9a3..34d3c20f9d8 100644 --- a/icu4j/tools/build/README.txt +++ b/icu4j/tools/build/README.txt @@ -77,7 +77,7 @@ particular ICU4J release. The format of the API data file is straightforward. The first line of the file is the header, successive lines are the api information. Each line consists of a number of tokens, each followed by a -semi-colon (incuding the last token on the line). +semi-colon (including the last token on the line). The header line contains the version number, the 'name' of the version of ICU4J represented by the file, and a 'base directory' field diff --git a/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/CheckAPI.java b/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/CheckAPI.java index 0670235ca72..3718ec2376e 100644 --- a/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/CheckAPI.java +++ b/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/CheckAPI.java @@ -34,9 +34,9 @@ * todo: separate generation of data files (which requires taglet) from * comparison and report generation (which does not require it) * todo: provide command-line control of filters of which subclasses/packages to process - * todo: record full inheritance heirarchy, not just immediate inheritance + * todo: record full inheritance hierarchy, not just immediate inheritance * todo: allow for aliasing comparisons (force (pkg.)*class to be treated as though it - * were in a different pkg/class heirarchy (facilitates comparison of icu4j and java) + * were in a different pkg/class hierarchy (facilitates comparison of icu4j and java) */ package com.ibm.icu.dev.tool.docs; diff --git a/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/GatherAPIDataOld.java b/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/GatherAPIDataOld.java index 8115a87c939..2da1975aaab 100644 --- a/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/GatherAPIDataOld.java +++ b/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/GatherAPIDataOld.java @@ -37,9 +37,9 @@ * com.ibm.icu.lang com.ibm.icu.math com.ibm.icu.text com.ibm.icu.util * * todo: provide command-line control of filters of which subclasses/packages to process - * todo: record full inheritance heirarchy, not just immediate inheritance + * todo: record full inheritance hierarchy, not just immediate inheritance * todo: allow for aliasing comparisons (force (pkg.)*class to be treated as though it - * were in a different pkg/class heirarchy (facilitates comparison of icu4j and java) + * were in a different pkg/class hierarchy (facilitates comparison of icu4j and java) */ package com.ibm.icu.dev.tool.docs; diff --git a/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/BIG5Tool.java b/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/BIG5Tool.java index 99198270745..6e4fd1d36bb 100644 --- a/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/BIG5Tool.java +++ b/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/BIG5Tool.java @@ -45,7 +45,7 @@ public class BIG5Tool { int fileSize; boolean option_d = false; // data option. Produce exportable data - boolean option_v = true; // verbose informaional output. + boolean option_v = true; // verbose informational output. boolean sjis = false; // True if input text files are Shift_JIS encoded. diff --git a/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/EUCTool.java b/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/EUCTool.java index a2c15a15e78..e6938014351 100644 --- a/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/EUCTool.java +++ b/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/EUCTool.java @@ -45,7 +45,7 @@ public class EUCTool { int fileSize; boolean option_d = false; // data option. Produce exportable data - boolean option_v = true; // verbose informaional output. + boolean option_v = true; // verbose informational output. diff --git a/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/ConvertIcuDataTask.java b/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/ConvertIcuDataTask.java index 046b188fa7c..48eeea9edfa 100644 --- a/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/ConvertIcuDataTask.java +++ b/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/ConvertIcuDataTask.java @@ -376,7 +376,7 @@ public final class ConvertIcuDataTask extends Task { private static ImmutableSet parseLocaleIds(String localeIds) { // Need to filter out '//' style end-of-line comments first (replace with \n to avoid - // inadvertantly joining two elements. + // inadvertently joining two elements. localeIds = localeIds.replaceAll("//[^\n]*\n", "\n"); return ImmutableSet.copyOf(LIST_SPLITTER.splitToList(localeIds)); } diff --git a/tools/colprobe/sortedlines.cpp b/tools/colprobe/sortedlines.cpp index 1fbdcbd5073..67990397dd3 100644 --- a/tools/colprobe/sortedlines.cpp +++ b/tools/colprobe/sortedlines.cpp @@ -955,7 +955,7 @@ SortedLines::gooseUp(int32_t resetIndex, int32_t expansionIndex, Line &expLine, prefix.append(*toSort[expIndexes[n]]); } - // try inserting ingorables + // try inserting ignorables UColAttributeValue lastStr = UCOL_OFF; k = 0; while(toSort[k]->strengthFromEmpty > strength) { diff --git a/tools/unicode/c/genuca/collationbasedatabuilder.cpp b/tools/unicode/c/genuca/collationbasedatabuilder.cpp index 01df375a7ad..3d5beb3de02 100644 --- a/tools/unicode/c/genuca/collationbasedatabuilder.cpp +++ b/tools/unicode/c/genuca/collationbasedatabuilder.cpp @@ -344,7 +344,7 @@ CollationBaseDataBuilder::addScriptStart(int32_t script, uint32_t p) { } if(script == USCRIPT_UNKNOWN) { // The last script start is for unassigned code points - // (with high implict primary weights). + // (with high implicit primary weights). // Add one more entry with the limit of this range, // which is the start of the trailing-weights range. U_ASSERT(scriptStartsLength < UPRV_LENGTHOF(scriptStarts)); diff --git a/tools/unicodetools/com/ibm/rbm/BundleItem.java b/tools/unicodetools/com/ibm/rbm/BundleItem.java index 0ed03606f19..cc34edadc8b 100644 --- a/tools/unicodetools/com/ibm/rbm/BundleItem.java +++ b/tools/unicodetools/com/ibm/rbm/BundleItem.java @@ -29,7 +29,7 @@ public class BundleItem { private Date modified; // The last modification date of the item private String creator; // The name of the person who created the item private String modifier; // The name of the person who last modified the item - private Hashtable lookups; // A hastable of lookups for the item (i.e. ({#}, Meaning) pairs) + private Hashtable lookups; // A hash table of lookups for the item (i.e. ({#}, Meaning) pairs) private BundleGroup group; // The parent group of the item /** diff --git a/tools/unicodetools/com/ibm/rbm/RBManager.java b/tools/unicodetools/com/ibm/rbm/RBManager.java index ca07a7012d6..864248613e6 100644 --- a/tools/unicodetools/com/ibm/rbm/RBManager.java +++ b/tools/unicodetools/com/ibm/rbm/RBManager.java @@ -102,7 +102,7 @@ public class RBManager { String[] encodings; - // Initiailize the readers to the main NLS file + // Initialize the readers to the main NLS file FileReader fr = new FileReader(mainFile); BufferedReader br = new BufferedReader(fr); diff --git a/tools/unicodetools/com/ibm/rbm/docs/views/view4.html b/tools/unicodetools/com/ibm/rbm/docs/views/view4.html index 3be4292942b..a3f7a65421c 100644 --- a/tools/unicodetools/com/ibm/rbm/docs/views/view4.html +++ b/tools/unicodetools/com/ibm/rbm/docs/views/view4.html @@ -88,7 +88,7 @@

The Groups tab view, like all tab views, looks and functions differently when working with the resource bundle as a whole than when working with an individual resource file. For an overview of this difference see View - 1. RB Manager adds a level of heirarchy not commonly found in resource + 1. RB Manager adds a level of hierarchy not commonly found in resource bundles. This addtional level is called Groups. For more information on Resource Groups see the Tutorial.

Working with a Resource Bundle