]> granicus.if.org Git - icu/commitdiff
ICU-21555 fix typos for D, E and F found in the repo
authorErik Torres <ertorres@microsoft.com>
Mon, 10 May 2021 16:49:16 +0000 (16:49 +0000)
committerErik Torres <ertorres@microsoft.com>
Mon, 10 May 2021 18:09:05 +0000 (11:09 -0700)
See #1714

85 files changed:
docs/userguide/format_parse/messages/examples.md
icu4c/source/common/pluralmap.h
icu4c/source/common/ruleiter.h
icu4c/source/common/ucnv2022.cpp
icu4c/source/common/ucnv_lmb.cpp
icu4c/source/common/ucnvisci.cpp
icu4c/source/common/uloc_tag.cpp
icu4c/source/common/unicode/unifunct.h
icu4c/source/common/unifiedcache.h
icu4c/source/common/ustr_wcs.cpp
icu4c/source/common/utext.cpp
icu4c/source/common/uvector.cpp
icu4c/source/i18n/coll.cpp
icu4c/source/i18n/decNumber.cpp
icu4c/source/i18n/gregoimp.h
icu4c/source/i18n/indiancal.cpp
icu4c/source/i18n/nfrule.cpp
icu4c/source/i18n/rbnf.cpp
icu4c/source/i18n/regexcmp.h
icu4c/source/i18n/simpletz.cpp
icu4c/source/i18n/timezone.cpp
icu4c/source/i18n/udat.cpp
icu4c/source/i18n/umsg.cpp
icu4c/source/i18n/unicode/coll.h
icu4c/source/i18n/unicode/dtitvinf.h
icu4c/source/i18n/unicode/numfmt.h
icu4c/source/i18n/unicode/rbnf.h
icu4c/source/i18n/unicode/smpdtfmt.h
icu4c/source/i18n/unicode/udat.h
icu4c/source/i18n/usearch.cpp
icu4c/source/i18n/vtzone.cpp
icu4c/source/layoutex/layout/ParagraphLayout.h
icu4c/source/layoutex/layout/playout.h
icu4c/source/samples/ucnv/convsamp.cpp
icu4c/source/samples/udata/writer.c
icu4c/source/test/cintltst/citertst.c
icu4c/source/test/cintltst/citertst.h
icu4c/source/test/cintltst/creststn.c
icu4c/source/test/cintltst/custrtrn.c
icu4c/source/test/cintltst/utexttst.c
icu4c/source/test/intltest/apicoll.cpp
icu4c/source/test/intltest/csdetest.cpp
icu4c/source/test/intltest/itrbnfp.cpp
icu4c/source/test/intltest/regextst.cpp
icu4c/source/test/intltest/restsnew.cpp
icu4c/source/test/intltest/tchcfmt.h
icu4c/source/test/intltest/tztest.cpp
icu4c/source/tools/gencfu/gencfu.cpp
icu4c/source/tools/genrb/genrb.cpp
icu4c/source/tools/genrb/wrtjava.cpp
icu4c/source/tools/pkgdata/pkgtypes.h
icu4c/source/tools/toolutil/flagparser.cpp
icu4c/source/tools/toolutil/ucmstate.cpp
icu4c/source/tools/toolutil/xmlparser.cpp
icu4j/build.xml
icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/RbnfSampleRuleSets.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetDecoderICU.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetHZ.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetISCII.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetLMBCS.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetMBCS.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetUTF16.java
icu4j/main/classes/core/src/com/ibm/icu/impl/EraRules.java
icu4j/main/classes/core/src/com/ibm/icu/impl/RuleCharacterIterator.java
icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneGenericNames.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java
icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java
icu4j/main/classes/core/src/com/ibm/icu/text/Normalizer.java
icu4j/main/classes/core/src/com/ibm/icu/text/PluralRules.java
icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java
icu4j/main/classes/core/src/com/ibm/icu/util/CECalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/GregorianCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java
icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestCharset.java
icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/CollationIteratorTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/NumberRegressionTests.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RBNFParseTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/FormatHandler.java
icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/XLIFF2ICUConverter.java
tools/cldr/build.xml
tools/cldr/cldr-to-icu/build-icu-data.xml
tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/PseudoLocales.java
tools/scripts/bldicures.py
tools/unicodetools/com/ibm/rbm/RBImporter.java

index 52b044819c027ffd0d318c3ed3e0635268f6423c..ff97c8179d5af51b7a033f2cd0653802c2ded405 100644 (file)
@@ -255,7 +255,7 @@ public class TestMessageFormat{
             sb = mf.format(objectsToFormat, sb, fp);
             System.out.println(sb.toString());
         }catch(IllegalArgumentException e){
-            System.out.println("Exception during formating of type :" +e);
+            System.out.println("Exception during formatting of type :" +e);
         }
     }
 
index 2a14a07af1fcdfba8019c9ff135ec82c662b9422..41ab1d9dffc58230aeec0a75d6d57e1536aa7cba 100644 (file)
@@ -62,7 +62,7 @@ public:
  * A Map of plural categories to values. It maintains ownership of the
  * values.
  *
- * Type T is the value type. T must provide the followng:
+ * Type T is the value type. T must provide the following:
  * 1) Default constructor
  * 2) Copy constructor
  * 3) Assignment operator
index 28e2ca57530e9d45df30cadff72d504b752dce25..09af1297842974fdd86dc783b6776236b44e4be5 100644 (file)
@@ -94,7 +94,7 @@ public:
      * position.
      * @param text the text to be iterated
      * @param sym the symbol table, or null if there is none.  If sym is null,
-     * then variables will not be deferenced, even if the PARSE_VARIABLES
+     * then variables will not be dereferenced, even if the PARSE_VARIABLES
      * option is set.
      * @param pos upon input, the index of the next character to return.  If a
      * variable has been dereferenced, then pos will <em>not</em> increment as
index 1726440b9447889928242581264b3c2d65d5fa51..4110cb8500f026f07a5df675fecafe7075c9182b 100644 (file)
@@ -527,7 +527,7 @@ _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
                     ucnv_loadSharedData("ksc_5601", &stackPieces, &stackArgs, errorCode);
             }
 
-            /* set the function pointers to appropriate funtions */
+            /* set the function pointers to appropriate functions */
             cnv->sharedData=(UConverterSharedData*)(&_ISO2022JPData);
             uprv_strcpy(myConverterData->locale,"ja");
 
@@ -578,7 +578,7 @@ _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
                 setInitialStateToUnicodeKR(cnv, myConverterData);
                 setInitialStateFromUnicodeKR(cnv, myConverterData);
 
-                /* set the function pointers to appropriate funtions */
+                /* set the function pointers to appropriate functions */
                 cnv->sharedData=(UConverterSharedData*)&_ISO2022KRData;
                 uprv_strcpy(myConverterData->locale,"ko");
             }
@@ -605,7 +605,7 @@ _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
                 ucnv_loadSharedData("cns-11643-1992", &stackPieces, &stackArgs, errorCode);
 
 
-            /* set the function pointers to appropriate funtions */
+            /* set the function pointers to appropriate functions */
             cnv->sharedData=(UConverterSharedData*)&_ISO2022CNData;
             uprv_strcpy(myConverterData->locale,"cn");
 
index 41317d1cc0179d126812b70bcd0c4ae491ce528c..44f93beecdf013fcfc6633e450162f558e64737e 100644 (file)
@@ -149,7 +149,7 @@ Next, you will notice that the list of group bytes has some gaps.
 These are used in various ways.
 
 We reserve a few special single byte values for common control 
-characters. These are in the same place as their ANSI eqivalents for speed.
+characters. These are in the same place as their ANSI equivalents for speed.
 */
                      
 #define ULMBCS_HT    0x09   /* Fixed control char - Horizontal Tab */
index ffb8c7ac3e89ab5cc4ad72e9d8816cbeb329b19f..b091447402746d2ecbdb9d85018394e246d725cb 100644 (file)
@@ -1164,7 +1164,7 @@ static const uint16_t lookupTable[][2]={
  *  Post context
  *  i)  ATR : Attribute code is used to declare the font and script switching.
  *      Currently we only switch scripts and font codes consumed without generating an error
- *  ii) EXT : Extention code is used to declare switching to Sanskrit and for obscure,
+ *  ii) EXT : Extension code is used to declare switching to Sanskrit and for obscure,
  *      obsolete characters
  *  Pre context
  *  i)  Halant: if preceeded by a halant then it is a explicit halant
index 1235081bf39ffc1ed40c519468b09202d5e91a75..f4d38a26d0b351193fb9035a7ec91f48e12edd3e 100644 (file)
@@ -1612,7 +1612,7 @@ _appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendT
     }
 
     if (pKwds) {
-        const char *pBcpKey = NULL;     /* u extenstion key subtag */
+        const char *pBcpKey = NULL;     /* u extension key subtag */
         const char *pBcpType = NULL;    /* beginning of u extension type subtag(s) */
         int32_t bcpKeyLen = 0;
         int32_t bcpTypeLen = 0;
index 7d31af7dafb7727170ea67cedfd1db3bb40fada1..482794175f67bee689a20d7c99b9010f4b281b63 100644 (file)
@@ -93,7 +93,7 @@ public:
      *
      * <p>Concrete subclasses of UnicodeFunctor should use the macro
      *    UOBJECT_DEFINE_RTTI_IMPLEMENTATION from uobject.h to
-     *    provide definitios getStaticClassID and getDynamicClassID.
+     *    provide definitions getStaticClassID and getDynamicClassID.
      *
      * @return The class ID for this object. All objects of a given
      * class have the same class ID.  Objects of other classes have
index a31998db206ae1b94aaaf5febfc735973a339c23..4102473a2124b8c58f6bca7d35ac7d7a5392af75 100644 (file)
@@ -293,8 +293,8 @@ class U_COMMON_API UnifiedCache : public UnifiedCacheBase {
    void flush() const;
 
    /**
-    * Configures at what point evcition of unused entries will begin.
-    * Eviction is triggered whenever the number of evictable keys exeeds
+    * Configures at what point eviction of unused entries will begin.
+    * Eviction is triggered whenever the number of evictable keys exceeds
     * BOTH count AND (number of in-use items) * (percentageOfInUseItems / 100).
     * Once the number of unused entries drops below one of these,
     * eviction ceases. Because eviction happens incrementally,
@@ -315,7 +315,7 @@ class U_COMMON_API UnifiedCache : public UnifiedCacheBase {
     * settings.
     *
     * If a client already holds references to many different unique values
-    * in the cache such that the number of those unique values far exeeds
+    * in the cache such that the number of those unique values far exceeds
     * "count" then the cache may not be able to maintain this maximum.
     * However, if this happens, the cache still guarantees that the number of
     * unused entries will remain only a small percentage of the total cache
index 89d0762480d460a5cd60ef1b95f14a12bec5f303..1a6ea2375d0bb626a3be60d64948449805f01457 100644 (file)
@@ -106,7 +106,7 @@ _strToWCS(wchar_t *dest,
         if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR){
             tempBuf = saveBuf;
             
-            /* we dont have enough room on the stack grow the buffer */
+            /* we don't have enough room on the stack grow the buffer */
             int32_t newCapacity = 2 * srcLength;
             if(newCapacity <= tempBufCapacity) {
                 newCapacity = _BUFFER_CAPACITY_MULTIPLIER * tempBufCapacity;
@@ -132,7 +132,7 @@ _strToWCS(wchar_t *dest,
     /* done with conversion null terminate the char buffer */
     if(count>=tempBufCapacity){
         tempBuf = saveBuf;
-        /* we dont have enough room on the stack grow the buffer */
+        /* we don't have enough room on the stack grow the buffer */
         if(!u_growAnyBufferFromStatic(stackBuffer,(void**) &tempBuf, &tempBufCapacity, 
                 count+1, count, 1)) {
             goto cleanup;
@@ -334,7 +334,7 @@ _strFromWCS( UChar   *dest,
         
     }else{
         /* here the source is not null terminated 
-         * so it may have nulls embeded and we need to
+         * so it may have nulls embedded and we need to
          * do some extra processing 
          */
         int32_t remaining =cStackCap;
index d79f8141bbab9420db4f0eaf39c551bc9608a276..55245b3e96f576a8a8fc5ea343e05bfd35a90365 100644 (file)
@@ -1046,7 +1046,7 @@ utf8TextAccess(UText *ut, int64_t index, UBool forward) {
 
     //
     // Dispatch to the appropriate action for a
-    //   Backwards Diretion iteration request.
+    //   Backwards Direction iteration request.
     //
     if (ix==ut->chunkNativeStart) {
         // Check for normal sequential iteration cases first.
index fd53c603456a813c52bca8e670353a2a5bc06657..f41d5605155a6ef11ab2a18e5d9f3c4528491567 100644 (file)
@@ -539,7 +539,7 @@ void UVector::sorti(UErrorCode &ec) {
  *    required by uprv_sortArray().  This is handled by passing the
  *    the UVector sort function pointer via the context pointer to a
  *    sortArray() comparator function, which can then call back to
- *    the original user functtion.
+ *    the original user function.
  *
  *    An additional twist is that it's not safe to pass a pointer-to-function
  *    as  a (void *) data pointer, so instead we pass a (data) pointer to a
index 7b87b41dff24eccfc5175ab3d872288e7b69a8e5..5eed8044c507281c9c437741fc89c4fd22fdebc1 100644 (file)
@@ -604,7 +604,7 @@ UnicodeString& U_EXPORT2 Collator::getDisplayName(const Locale& objectLocale,
 /**
 * Default constructor.
 * Constructor is different from the old default Collator constructor.
-* The task for determing the default collation strength and normalization mode
+* The task for determining the default collation strength and normalization mode
 * is left to the child class.
 */
 Collator::Collator()
index 42d00a0ad4f74ca9be59bf9d49ab07f6974a3594..a7ee057e540bf893add1f8e276d74395953ddfd4 100644 (file)
@@ -3831,7 +3831,7 @@ static void decToString(const decNumber *dn, char *string, Flag eng) {
 /*                                                                    */
 /* Addition, especially x=x+1, is speed-critical.                     */
 /* The static buffer is larger than might be expected to allow for    */
-/* calls from higher-level funtions (notable exp).                    */
+/* calls from higher-level functions (notable exp).                    */
 /* ------------------------------------------------------------------ */
 static decNumber * decAddOp(decNumber *res, const decNumber *lhs,
                             const decNumber *rhs, decContext *set,
@@ -4247,7 +4247,7 @@ static decNumber * decAddOp(decNumber *res, const decNumber *lhs,
 /* long subtractions.  These are acc and var1 respectively.           */
 /* var1 is a copy of the lhs coefficient, var2 is the rhs coefficient.*/
 /* The static buffers may be larger than might be expected to allow   */
-/* for calls from higher-level funtions (notable exp).                */
+/* for calls from higher-level functions (notable exp).                */
 /* ------------------------------------------------------------------ */
 static decNumber * decDivideOp(decNumber *res,
                                const decNumber *lhs, const decNumber *rhs,
index aec33c48c80258ab410e7bea2e298be3f8225fb5..c49d32d3a317de818b6112b292c4a1dce648d2fb 100644 (file)
@@ -86,7 +86,7 @@ class ClockMath {
      * 0 <= remainder < divisor.
      *
      * Works around edge-case bugs.  Handles pathological input
-     * (divident >> divisor) reasonably.
+     * (dividend >> divisor) reasonably.
      *
      * Calling with a divisor <= 0 is disallowed.
      */
index 9d9df58f13d1648e92f4bf8140c7f09b09bf0ea9..7bba7f5092059f10b18b4f2aafebd034bcfc74b0 100644 (file)
@@ -208,7 +208,7 @@ int32_t IndianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UB
    //month is 0 based; converting it to 1-based 
    int32_t imonth;
 
-    // If the month is out of range, adjust it into range, and adjust the extended eyar accordingly
+    // If the month is out of range, adjust it into range, and adjust the extended year accordingly
    if (month < 0 || month > 11) {
       eyear += (int32_t)ClockMath::floorDivide(month, 12, month);
    }
index a9b84eda182817dedd88d3dd093ff6c14e9399ff..e5823bb2cae3f9b920485cf18149283303b43b19 100644 (file)
@@ -115,7 +115,7 @@ NFRule::makeRules(UnicodeString& description,
     // we know we're making at least one rule, so go ahead and
     // new it up and initialize its basevalue and divisor
     // (this also strips the rule descriptor, if any, off the
-    // descripton string)
+    // description string)
     NFRule* rule1 = new NFRule(rbnf, description, status);
     /* test for NULL */
     if (rule1 == 0) {
index 17319fb6d59fe42dcb6608b0b68452ba02cd3392..d50edd260e436e164e6ce5c70ee8e102319be8a3 100644 (file)
@@ -1501,7 +1501,7 @@ RuleBasedNumberFormat::init(const UnicodeString& rules, LocalizationInfo* locali
     }
 
     // start by stripping the trailing whitespace from all the rules
-    // (this is all the whitespace follwing each semicolon in the
+    // (this is all the whitespace following each semicolon in the
     // description).  This allows us to look for rule-set boundaries
     // by searching for ";%" without having to worry about whitespace
     // between the ; and the %
index f3cfa6e6d156b5740aac2fb406b0d8e32b947d34..a6e6066c4d5688ca9e8950ad2dd5c99bf99e467b 100644 (file)
@@ -228,7 +228,7 @@ private:
                                                      //   in this string while being scanned.
 };
 
-// Constant values to be pushed onto fSetOpStack while scanning & evalueating [set expressions]
+// Constant values to be pushed onto fSetOpStack while scanning & evaluating [set expressions]
 //   The high 16 bits are the operator precedence, and the low 16 are a code for the operation itself.
 
 enum SetOperations {
index 02dafb76f8d0cfbdad0c778de5470dbdd4cd1761..a7bc7109cd5460bd086a6d794266a5cee436551a 100644 (file)
@@ -585,7 +585,7 @@ SimpleTimeZone::compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen
         dayOfWeek = (int8_t)(1 + (dayOfWeek % 7)); // dayOfWeek is one-based
         if (dayOfMonth > monthLen) {
             dayOfMonth = 1;
-            /* When incrementing the month, it is desirible to overflow
+            /* When incrementing the month, it is desirable to overflow
              * from DECEMBER to DECEMBER+1, since we use the result to
              * compare against a real month. Wraparound of the value
              * leads to bug 4173604. */
index 918d5087497ee9ee7c2df97ddb29e1637fe6ea64..e46437b4f958b1292277989dfff1dca0ac21154d 100644 (file)
@@ -1691,7 +1691,7 @@ TimeZone::getIDForWindowsID(const UnicodeString& winid, const char* region, Unic
         const UChar *tzids = ures_getStringByKey(zones, region, &len, &tmperr); // use tmperr, because
                                                                                 // regional mapping is optional
         if (U_SUCCESS(tmperr)) {
-            // first ID delimited by space is the defasult one
+            // first ID delimited by space is the default one
             const UChar *end = u_strchr(tzids, (UChar)0x20);
             if (end == NULL) {
                 id.setTo(tzids, -1);
index ba44710ca0a7efd215870e858ef30a782ed3e22a..63e6baea15e1af475aa217fe79e53d4d347528b2 100644 (file)
@@ -34,7 +34,7 @@ U_NAMESPACE_USE
 /**
  * Verify that fmt is a SimpleDateFormat. Invalid error if not.
  * @param fmt the UDateFormat, definitely a DateFormat, maybe something else
- * @param status error code, will be set to failure if there is a familure or the fmt is NULL.
+ * @param status error code, will be set to failure if there is a failure or the fmt is NULL.
  */
 static void verifyIsSimpleDateFormat(const UDateFormat* fmt, UErrorCode *status) {
    if(U_SUCCESS(*status) &&
@@ -1247,7 +1247,7 @@ udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* st
 /**
  * Verify that fmt is a RelativeDateFormat. Invalid error if not.
  * @param fmt the UDateFormat, definitely a DateFormat, maybe something else
- * @param status error code, will be set to failure if there is a familure or the fmt is NULL.
+ * @param status error code, will be set to failure if there is a failure or the fmt is NULL.
  */
 static void verifyIsRelativeDateFormat(const UDateFormat* fmt, UErrorCode *status) {
    if(U_SUCCESS(*status) &&
index 9a5344e0191a8c8dc09c27b795907dbbf3034a3b..0d9e86e08a5ae197881e5806630da3c4abc8e88c 100644 (file)
@@ -68,7 +68,7 @@ u_formatMessage(const char  *locale,
 {
     va_list    ap;
     int32_t actLen;        
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
     // start vararg processing
     va_start(ap, status);
 
@@ -89,7 +89,7 @@ u_vformatMessage(   const char  *locale,
                     UErrorCode  *status)
 
 {
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
     UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status);
     int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status);
     umsg_close(fmt);
@@ -108,7 +108,7 @@ u_formatMessageWithError(const char *locale,
 {
     va_list    ap;
     int32_t actLen;
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
     // start vararg processing
     va_start(ap, status);
 
@@ -130,7 +130,7 @@ u_vformatMessageWithError(  const char  *locale,
                             UErrorCode  *status)
 
 {
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
     UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status);
     int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status);
     umsg_close(fmt);
@@ -152,7 +152,7 @@ u_parseMessage( const char   *locale,
                 ...)
 {
     va_list    ap;
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
 
     // start vararg processing
     va_start(ap, status);
@@ -171,7 +171,7 @@ u_vparseMessage(const char  *locale,
                 va_list     ap,
                 UErrorCode  *status)
 {
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
     UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status);
     int32_t count = 0;
     umsg_vparse(fmt,source,sourceLength,&count,ap,status);
@@ -190,7 +190,7 @@ u_parseMessageWithError(const char  *locale,
 {
     va_list    ap;
 
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
 
     // start vararg processing
     va_start(ap, status);
@@ -209,7 +209,7 @@ u_vparseMessageWithError(const char  *locale,
                          UParseError *error,
                          UErrorCode* status)
 {
-    //argument checking defered to subsequent method calls
+    //argument checking deferred to subsequent method calls
     UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,error,status);
     int32_t count = 0;
     umsg_vparse(fmt,source,sourceLength,&count,ap,status);
@@ -369,8 +369,8 @@ umsg_format(    const UMessageFormat *fmt,
 {
     va_list    ap;
     int32_t actLen;  
-    //argument checking defered to last method call umsg_vformat which
-    //saves time when arguments are valid and we dont care when arguments are not
+    //argument checking deferred to last method call umsg_vformat which
+    //saves time when arguments are valid and we don't care when arguments are not
     //since we return an error anyway
 
     
@@ -490,8 +490,8 @@ umsg_parse( const UMessageFormat *fmt,
             ...)
 {
     va_list    ap;
-    //argument checking defered to last method call umsg_vparse which
-    //saves time when arguments are valid and we dont care when arguments are not
+    //argument checking deferred to last method call umsg_vparse which
+    //saves time when arguments are valid and we don't care when arguments are not
     //since we return an error anyway
 
     // start vararg processing
index c750711fc158cffe55be7b21f83c8be62d45ad01..f8f1c81b82fb32671762cd77e653723ba3d5ed88 100644 (file)
@@ -1094,7 +1094,7 @@ protected:
     /**
     * Default constructor.
     * Constructor is different from the old default Collator constructor.
-    * The task for determing the default collation strength and normalization
+    * The task for determining the default collation strength and normalization
     * mode is left to the child class.
     * @stable ICU 2.0
     */
index 3b26085187334d6b8aff6314f5868143d80e6b12..f9379cd81f10186f1251b31cf93ddadb58ca6259 100644 (file)
@@ -406,7 +406,7 @@ private:
      * and the best match skeleton.
      *
      * TODO (xji): set field weight or
-     *             isolate the funtionality in DateTimePatternGenerator
+     *             isolate the functionality in DateTimePatternGenerator
      * @param  skeleton               input skeleton
      * @param  bestMatchDistanceInfo  the difference between input skeleton
      *                                and best match skeleton.
index 61fb59d2108da748867a2d2f66c41554d838f8f8..513d160536795e4f4e1af6253a43923a6288529f 100644 (file)
@@ -16,7 +16,7 @@
 *   04/17/97    aliu        Changed DigitCount to int per code review.
 *    07/20/98    stephen        JDK 1.2 sync up. Added scientific support.
 *                            Changed naming conventions to match C++ guidelines
-*                            Derecated Java style constants (eg, INTEGER_FIELD)
+*                            Deprecated Java style constants (eg, INTEGER_FIELD)
 ********************************************************************************
 */
 
index 85d8f5bdfa89da9c61bb8e83855848f4d735c44d..17d2f303706fc5c02f104f499a795184bf597a69 100644 (file)
@@ -108,7 +108,7 @@ enum URBNFRuleSetTag {
  * <p>In these rules, the <em>base value</em> is spelled out explicitly and set off from the
  * rule's output text with a colon. The rules are in a sorted list, and a rule is applicable
  * to all numbers from its own base value to one less than the next rule's base value. The
- * &quot;&gt;&gt;&quot; token is called a <em>substitution</em> and tells the fomatter to
+ * &quot;&gt;&gt;&quot; token is called a <em>substitution</em> and tells the formatter to
  * isolate the number's ones digit, format it using this same set of rules, and place the
  * result at the position of the &quot;&gt;&gt;&quot; token. Text in brackets is omitted if
  * the number being formatted is an even multiple of 10 (the hyphen is a literal hyphen; 24
index 3296c6b3ab75b68cfe2a03c78c6125611ffca6b8..9a5a83b16582d54a0e0b4ca81fa01d0204bb6778 100644 (file)
@@ -756,7 +756,7 @@ public:
      * names of the months), but not to provide the pattern.
      * <P>
      * A numbering system override is a string containing either the name of a known numbering system,
-     * or a set of field and numbering system pairs that specify which fields are to be formattied with
+     * or a set of field and numbering system pairs that specify which fields are to be formatted with
      * the alternate numbering system.  For example, to specify that all numeric fields in the specified
      * date or time pattern are to be rendered using Thai digits, simply specify the numbering system override
      * as "thai".  To specify that just the year portion of the date be formatted using Hebrew numbering,
@@ -797,7 +797,7 @@ public:
      * names of the months), but not to provide the pattern.
      * <P>
      * A numbering system override is a string containing either the name of a known numbering system,
-     * or a set of field and numbering system pairs that specify which fields are to be formattied with
+     * or a set of field and numbering system pairs that specify which fields are to be formatted with
      * the alternate numbering system.  For example, to specify that all numeric fields in the specified
      * date or time pattern are to be rendered using Thai digits, simply specify the numbering system override
      * as "thai".  To specify that just the year portion of the date be formatted using Hebrew numbering,
index 2963e5506c821ddafb6e33a184307d09ca58ad9e..25e171f2d0e8680c46307d6769d08e30d3800f82 100644 (file)
@@ -1566,7 +1566,7 @@ udat_getSymbols(const   UDateFormat             *fmt,
 
 /**
 * Count the number of particular symbols for an UDateFormat.
-* This function is most useful as for detemining the loop termination condition
+* This function is most useful as for determining the loop termination condition
 * for calls to {@link #udat_getSymbols }.
 * @param fmt The formatter to query.
 * @param type The type of symbols to count.  One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS,
index d0628a132df3f94578522af80278dc0eb4fcdc8e..8372fdaa60d51fe946752a0ab54ecbf708237370 100644 (file)
@@ -987,7 +987,7 @@ UBool hasAccentsBeforeMatch(const UStringSearch *strsrch, int32_t start,
 * Note this is the initial boundary check. If the potential match
 * starts or ends with composite characters, the accents in those
 * characters will be determined later.
-* Not doing backwards iteration here, since discontiguos contraction for
+* Not doing backwards iteration here, since discontiguous contraction for
 * backwards collation element iterator, use up too many characters.
 * E.g. looking for \u030A ring in \u01FA A ring above and acute,
 * should fail since there is a acute at the end of \u01FA
index 2df91163bf43fd36b4ad8a839016812e30646be4..83a7c1e466c159ecf83d95a8f370549d02164aee 100644 (file)
@@ -479,7 +479,7 @@ static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow,
                 goto rruleParseError;
             }
         } else if (attr.compare(ICAL_BYMONTHDAY, -1) == 0) {
-            // Note: BYMONTHDAY may contain multiple days delimitted by comma
+            // Note: BYMONTHDAY may contain multiple days delimited by comma
             //
             // A value of BYMONTHDAY could be negative, for example, -1 means
             // the last day in a month
index ce3f7e541148fb000ed4a709c4ef64fd5c5f9ff0..518f96fb327debe187bb8210d3052fe4cf501515 100644 (file)
@@ -377,7 +377,7 @@ public:
      *        Unicode code points.
      *
      * @param localeRuns is a pointer to a <code>LocaleRuns</code> object representing locale runs.
-     *        The <code>Locale</code> objects are used to determind the language of the text. If this
+     *        The <code>Locale</code> objects are used to determine the language of the text. If this
      *        pointer is <code>NULL</code> the default locale will be used for all of the text. 
      *
      * @param paragraphLevel is the directionality of the paragraph, as in the UBiDi object.
index a9a21e7fe0cc5c7051c5825f81596d5c30b03867..cf24ce537e79f80b016383677119561ae1304397 100644 (file)
@@ -77,7 +77,7 @@ typedef void pl_visualRun;
  *        Unicode code points.
  *
  * @param localeRuns is a pointer to a <code>pl_localeRuns</code> object representing locale runs.
- *        The <code>Locale</code> objects are used to determind the language of the text. If this
+ *        The <code>Locale</code> objects are used to determine the language of the text. If this
  *        pointer is <code>NULL</code> the default locale will be used for all of the text. 
  *
  * @param paragraphLevel is the directionality of the paragraph, as in the UBiDi object.
index 2d6d0c14908a59aa8f9cc8d1daf863aa94ca9ecf..7347d054aec4a8ec9a6a9a232f28c480aa9da4f5 100644 (file)
@@ -270,7 +270,7 @@ UErrorCode convsample_03()
   What is the best way to determine the buffer size?
 
      The 'buffersize' is in bytes of input.
-    For a given converter, divinding this by the minimum char size
+    For a given converter, dividing this by the minimum char size
     give you the maximum number of Unicode characters that could be
     expected for a given number of input bytes.
      see: ucnv_getMinCharSize()
index 05dd2fca3953b5cb51c522b43de90cffa3dda1a1..a5b3a968516d9afe096d156bab6da2b04e63942a 100644 (file)
@@ -58,7 +58,7 @@ static const UDataInfo dataInfo={
 };
 
 
-/* Excersise: add writing out other data types */
+/* Exercise: add writing out other data types */
 /* see icu/source/tools/toolutil/unewdata.h    */
 /* for other possibilities                     */
 
index 5ffc714cfb38e5b96c482c640cc2967d878875da..6c771111618007fa6eb8db86d4a9b0adbf937ffa 100644 (file)
@@ -1090,7 +1090,7 @@ static void TestDiscontiguos() {
             while (ce != UCOL_NULLORDER) {
                 if (ce != ucol_next(iter, &status) ||
                     U_FAILURE(status)) {
-                    log_err("Discontiguos contraction test mismatch\n");
+                    log_err("Discontiguous contraction test mismatch\n");
                     return;
                 }
                 ce = ucol_next(resultiter, &status);
index 5673e8fb14c0ebc61c903a80ed573b2a57970449..af30c85f84373695d03a93892a21b08655575062 100644 (file)
@@ -82,7 +82,7 @@ static void TestBug672Normalize(void);
 */
 static void TestSmallBuffer(void);
 /**
-* Tests the discontiguos contractions
+* Tests the discontiguous contractions
 */
 static void TestDiscontiguos(void);
 /**
index ed044db21fe35b22e8d4a40c0436f02ca5834534..f36b2010e199d25495aa986225e54393bc336e37 100644 (file)
@@ -519,7 +519,7 @@ static void TestNewTypes() {
     /* if everything is working correctly, the size of this string */
     /* should be 7. Everything else is a wrong answer, esp. 3 and 6*/
 
-    strcpy(action, "getting and testing of string with embeded zero");
+    strcpy(action, "getting and testing of string with embedded zero");
     res = ures_getByKey(theBundle, "zerotest", res, &status);
     CONFIRM_ErrorCode(status, U_ZERO_ERROR);
     CONFIRM_INT_EQ(ures_getType(res), URES_STRING);
index 895022e60295a259842ffe8e9962c192f9c22341..615cdbf9b6560cdd427a6422cc36dafada47394a 100644 (file)
@@ -1239,7 +1239,7 @@ static void Test_UChar_WCHART_API(void){
         free(uDest);
         
        
-        /* test with embeded nulls */
+        /* test with embedded nulls */
         uSrc = src16WithNulls;
         uSrcLen = sizeof(src16WithNulls)/2;
         wDestLen =0;
index 8c70f0e803df95d29ef18a3e58d79dfb41e8ba52..8f3974c90416b66557ea6a6b0e510a018483ca1c 100644 (file)
@@ -57,7 +57,7 @@ addUTextTest(TestNode** root)
  *            This is not intended to be a complete test of the API functionality.  That is
  *            in the C++ intltest program.
  *            This test is intended to check that everything can be accessed and built in 
- *            a pure C enviornment.
+ *            a pure C environment.
  */
 
 
index ef4f1678f62f08e4d2046c36ac44e2985d5e9b66..2130d40b1fc94d1dd6c997e26c69d8de8ee0fcb0 100644 (file)
@@ -804,11 +804,11 @@ CollationAPITest::TestElemIter(/* char* par */)
     coliter->reset();
     coliter->setText(*chariter, success);
     if(!U_FAILURE(success)){
-        errln("Expeceted error");
+        errln("Expected error");
     }
     iterator1->setText((UnicodeString)"hello there", success);
     if(!U_FAILURE(success)){
-        errln("Expeceted error");
+        errln("Expected error");
     }
 
     delete chariter;
index 4068df3bd3e8004960cdccf9ed72368c7a802351..d285f0ae0c747c1ccb104fbc215a6f68d4f5188d 100644 (file)
@@ -396,7 +396,7 @@ void CharsetDetectionTest::UTF16Test()
     conf = ucsdet_getConfidence(match, &status);
 
     if (strcmp(name, "UTF-16LE") != 0) {
-        errln("Enconding detection failure for UTF-16LE: got %s", name);
+        errln("Encoding detection failure for UTF-16LE: got %s", name);
         return;
     }
 
index ba1fba7fb4b082cda8dd126467561602f00b8afa..62e97fa8bffb10fe86a4bbe5cb6138810b3581fa 100644 (file)
@@ -104,7 +104,7 @@ IntlTestRBNFParse::TestParse() {
   // these rules would throw exceptions when formatting, if we could throw exceptions
   const char* exceptrules[] = {
     "10:", // formatting any value with a one's digit will fail
-    "11: << x", // formating a multiple of 10 causes rollback rule to fail
+    "11: << x", // formatting a multiple of 10 causes rollback rule to fail
     "%%foo: 0 foo; 10: =%%bar=; %%bar: 0: bar; 10: =%%foo=;",
 
     NULL,
index 13fb4db5f435c88a003a72f82cba250c53339b51..bf6922bfa38e96a4b3e54aebb708ba381e9492c2 100644 (file)
@@ -5461,7 +5461,7 @@ void RegexTest::Bug7029() {
 }
 
 // Bug 9283
-//   This test is checking for the existance of any supplemental characters that case-fold
+//   This test is checking for the existence of any supplemental characters that case-fold
 //   to a bmp character.
 //
 //   At the time of this writing there are none. If any should appear in a subsequent release
index 5d25dd12e1006f8f3d34f83e57e3aa3c6a55535a..724139f0e311d5ccfb33f46156e2db1fd8b000eb 100644 (file)
@@ -1101,7 +1101,7 @@ NewResourceBundleTest::TestNewTypes() {
     /* if everything is working correctly, the size of this string */
     /* should be 7. Everything else is a wrong answer, esp. 3 and 6*/
 
-    strcpy(action, "getting and testing of string with embeded zero");
+    strcpy(action, "getting and testing of string with embedded zero");
     ResourceBundle res = theBundle.get("zerotest", status);
     CONFIRM_UErrorCode(status, U_ZERO_ERROR);
     CONFIRM_EQ(res.getType(), URES_STRING);
index 057971c3b291a14024aea32850f7237af5c9bc2f..544ec5fd41b47ae71f2d6bcdee29d7c1358df0f6 100644 (file)
@@ -50,7 +50,7 @@ class TestChoiceFormat: public IntlTest {
                       double v2, const char* str2,
                       double v3, const char* str3);
     /** 
-     *    runs tests in local funtions:
+     *    runs tests in local functions:
      **/
     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
 };
index b877db5161f80bb78dac103524edf4fa8f54fbba..4b1b34820af5fe324c4c49d8f45a0a257d2a44e9 100644 (file)
@@ -544,57 +544,57 @@ TimeZoneTest::TestGetAvailableIDsNew()
     
     any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec);
     if (U_FAILURE(ec)) {
-        dataerrln("Failed to create enumration for ANY");
+        dataerrln("Failed to create enumeration for ANY");
         goto cleanup;
     }
 
     canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for CANONICAL");
+        errln("Failed to create enumeration for CANONICAL");
         goto cleanup;
     }
 
     canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for CANONICALLOC");
+        errln("Failed to create enumeration for CANONICALLOC");
         goto cleanup;
     }
 
     any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for ANY_US");
+        errln("Failed to create enumeration for ANY_US");
         goto cleanup;
     }
 
     canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for CANONICAL_US");
+        errln("Failed to create enumeration for CANONICAL_US");
         goto cleanup;
     }
 
     canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", NULL, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for CANONICALLOC_US");
+        errln("Failed to create enumeration for CANONICALLOC_US");
         goto cleanup;
     }
 
     rawOffset = (-5)*60*60*1000;
     any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for ANY_W5");
+        errln("Failed to create enumeration for ANY_W5");
         goto cleanup;
     }
 
     any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for ANY_CA_W5");
+        errln("Failed to create enumeration for ANY_CA_W5");
         goto cleanup;
     }
 
     rawOffset = 14*60*60*1000;
     any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec);
     if (U_FAILURE(ec)) {
-        errln("Failed to create enumration for ANY_US_E14");
+        errln("Failed to create enumeration for ANY_US_E14");
         goto cleanup;
     }
 
index 541b78e708b2f7809f3a2f34e90fe4692220aa60..073ddef6226561dc4a82fa25c14e84aa7a1df154 100644 (file)
 //       options:   -v         verbose
 //                  -? or -h   help
 //
-//   The input rule filew is are plain text files containing confusable character
+//   The input rule file are plain text files containing confusable character
 //    definitions in the input format defined by Unicode UAX39 for the files
 //    confusables.txt.  This source (.txt) format
-//    is also accepted direaccepted by ICU spoof detedtors.  The
+//    is also accepted by ICU spoof detectors. The
 //    files must be encoded in utf-8 format, with or without a BOM.
 //
 //   The script used to compile confusablesWholeScript.txt into the CFU file
index 6f3a13a0a6107c77d0cc48269e0810b1616cbdf7..a9b60b935a4f1f1d464329c0256729bb4e3397f8 100644 (file)
@@ -564,7 +564,7 @@ main(int argc,
 
     u_cleanup();
 
-    /* Dont return warnings as a failure */
+    /* Don't return warnings as a failure */
     if (U_SUCCESS(status)) {
         return 0;
     }
index f1eb229760f12f0a383c9f92e5c0f5a4980026ec..1ee2f5fca61f48de596eb7e5966691341bbe794a 100644 (file)
@@ -15,7 +15,7 @@
 *   Date        Name        Description
 *   01/11/02    Ram         Creation.
 *   02/12/08    Spieth      Fix errant 'new Object[][]{' insertion
-*   02/19/08    Spieth      Removed ICUListResourceBundle dependancy
+*   02/19/08    Spieth      Removed ICUListResourceBundle dependency
 *******************************************************************************
 */
 
index 3297d0a2daf4d5fdd57854b396f0ea0ff35b0b6e..8ae1ec45a2b0a85d1133553d9e6ec9fe30eef6de 100644 (file)
@@ -36,7 +36,7 @@ typedef struct _CharList
 
 
 /*
- * write CharList 'l' into stream 's' using deliminter 'delim' (delim can be NULL). quoted: -1 remove, 0 as is, 1 add quotes
+ * write CharList 'l' into stream 's' using delimiter 'delim' (delim can be NULL). quoted: -1 remove, 0 as is, 1 add quotes
  */
 const char *pkg_writeCharList(FileStream *s, CharList *l, const char *delim, int32_t quoted);
 
index 464d6be9f52d3d848abaff88bdb432f5f2bb8e32..65513f3611fa5c502405bbdc8fc41a559d369959 100644 (file)
@@ -64,7 +64,7 @@ parseFlagsFile(const char *fileName, char **flagBuffer, int32_t flagBufferSize,
             }
 
             if ((int32_t)uprv_strlen(buffer) == (currentBufferSize - 1) && buffer[currentBufferSize-2] != '\n') {
-                /* Allocate more space for buffer if it didnot read the entrire line */
+                /* Allocate more space for buffer if it did not read the entire line */
                 allocateMoreSpace = TRUE;
                 T_FileStream_rewind(f);
                 break;
index ed1afb918eb90f05cb5a077bef03fa3f441ac8be..1ff2d7d19323b33cc4dfbac53b3efdfd210c9193 100644 (file)
@@ -101,7 +101,7 @@ parseState(const char *s, int32_t state[256], uint32_t *pFlags) {
             end=start;
         }
 
-        /* determine the state entrys for this range */
+        /* determine the state entry for this range */
         if(*s!=':' && *s!='.') {
             /* the default is: final state with valid entries */
             entry=MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_16, 0);
index 5a03856487b855e34f54e5309d822f3f2973c2da..918b06193d15a4b72a781c8facdcded8e4eac871 100644 (file)
@@ -592,7 +592,7 @@ UXMLParser::replaceCharRefs(UnicodeString &s, UErrorCode &status) {
     mAmps.reset(s);
     // See the initialization for the regex matcher mAmps.
     //    Which entity we've matched is determined by which capture group has content,
-    //      which is flaged by start() of that group not being -1.
+    //      which is flagged by start() of that group not being -1.
     while (mAmps.find()) {
         if (mAmps.start(1, status) != -1) {
             replacement.setTo((UChar)x_AMP);
index 54cd8f132dc01c3107c9e64bfeb09c24afa03f2b..c430d1f1f47ace1201f51e9f372273f5738f2eec 100644 (file)
 
     <target name="secure" depends="icu4jJar" description="(Deprecated)Build ICU4J API and test classes for running the ICU4J test suite with Java security manager enabled"/>
 
-    <!-- Check to see if JVM_OPTIONS enviroment variable is set. This can be use to set the heap size. -->
+    <!-- Check to see if JVM_OPTIONS environment variable is set. This can be use to set the heap size. -->
     <property name="env.JVM_OPTIONS" value=""/>
     <property name="jvm_options" value="${env.JVM_OPTIONS}"/>
 
index 6c4f07bc3b35ef0d50e0e03f7c6bc03833395de9..aa0368979632b9e4439535f49e42ad32db79d577 100644 (file)
@@ -455,7 +455,7 @@ public class RbnfSampleRuleSets {
                // of 1,000.  This prevents us from getting "onze cents cent
                // vingt-deux" ("eleven hundred one hundred twenty-two").
         + "    1100>: onze cents[ >>];\n"
-               // at 1,200, we go back to formating in thousands, so we
+               // at 1,200, we go back to formatting in thousands, so we
                // repeat the rule for 1,000
         + "    1200: mille >>;\n"
                // at 2,000, the multiplier is added
index 6d5a2b6ca518f94f60f436cf003520f37abe40d1..b4ae25cb86d37682aafb88e6db96864e1517ab15 100644 (file)
@@ -141,7 +141,7 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
      */
     @Override
     protected final void implOnUnmappableCharacter(CodingErrorAction newAction) {
-        // dont run infinitely
+        // don't run infinitely
         if (unmappableCharacterCalled)
             return;
 
@@ -156,7 +156,7 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
     }
 
     /**
-     * Sets the callback encoder method and context to be used if an illegal sequence is encounterd.
+     * Sets the callback encoder method and context to be used if an illegal sequence is encountered.
      * You would normally call this twice to set both the malform and unmappable error. In this case,
      * newContext should remain the same since using a different newContext each time will negate the last
      * one used.
index 8d4914cec9f19505c214de3c51c1117d3a626f22..3a109fa1ffe34493d5355da7a65cf510f3ef2b1c 100644 (file)
@@ -119,7 +119,7 @@ class CharsetHZ extends CharsetICU {
                              * - If any of the non-initial bytes could be the start of a character,
                              *   we stop the illegal sequence before the first one of those.
                              */
-                            isEmptySegment = false; /* different error here, reset this to avoid spurious furture error */
+                            isEmptySegment = false; /* different error here, reset this to avoid spurious future error */
                             err = CoderResult.malformedForLength(1);
                             toUBytesArray[0] = UCNV_TILDE;
                             if (isStateDBCS ? (0x21 <= mySourceChar && mySourceChar <= 0x7e) : mySourceChar <= 0x7f) {
index ca490af46931e59350c1d719dcc886320f4f2cb9..224409ecf0b35a4a1a619bddd48c798630aa9600 100644 (file)
@@ -801,7 +801,7 @@ class CharsetISCII extends CharsetICU {
      * Post context
      * i) ATR : Attribute code is used to declare the font and script switching.
      *    Currently we only switch scripts and font codes consumed without generating an error
-     * ii) EXT : Extention code is used to declare switching to Sanskrit and for obscure,
+     * ii) EXT : Extension code is used to declare switching to Sanskrit and for obscure,
      *     obsolete characters
      * Pre context
      * i) Halant: if preceeded by a halant then it is a explicit halant
index c8d385e89f07985ec6742948a490ea4239edfceb..a939727064bf09ad1ff2a266c52002d58f806ef8 100644 (file)
@@ -953,7 +953,7 @@ class CharsetLMBCS extends CharsetICU {
              * 2. Look up group in table & try that (could b
              *     A) Unicode group
              *     B) control group
-             *     C) national encodeing
+             *     C) national encoding
              *        or ambiguous SBCS or MBCS group (on to step 4...)
              * 3. If its ambiguous, try this order:
              *     A) The optimization group
index 8da0352d32dd0a5fbac385b334e691a4b964294d..b3397aefefdda681b232a2687e5a8b1c22e96ed7 100644 (file)
@@ -5087,7 +5087,7 @@ class CharsetMBCS extends CharsetICU {
                         }while((++c&0xf) != 0);
 
                     } else {
-                        c+=16;   /* emplty stage3 block */
+                        c+=16;   /* empty stage3 block */
                     }
                 }
             } else {
index 3813645ea0bc99fb7c9f58865b0fe567a04d3a2c..7217ba046ad7f42a9414937e34388fbad21936a4 100644 (file)
@@ -210,7 +210,7 @@ class CharsetUTF16 extends CharsetICU {
             char trail = (char) (((toUBytesArray[2 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK)));
 
             if (!UTF16.isTrailSurrogate(trail)) {
-                // pretend like we didnt read the last 2 bytes
+                // pretend like we didn't read the last 2 bytes
                 toULength = 2;
                 source.position(source.position() - 2);
 
index 373f18ead76168288ee40b7df233b7b1ad15c14f..ce03f987aee63cf7c72674062310432512727863 100644 (file)
@@ -62,7 +62,7 @@ public class EraRules {
             }
             if (isSet(startDates[eraIdx])) {
                 throw new ICUException(
-                        "Dupulicated era rule for rule key:" + eraIdxStr + " in era rule data for " + calType.getId());
+                        "Duplicated era rule for rule key:" + eraIdxStr + " in era rule data for " + calType.getId());
             }
 
             boolean hasName = true;
index 2bdd900c9d77116616057b13684ca2ebcad4d9d2..5e981655015324ec82c7d8fba6a6c150fc8054d5 100644 (file)
@@ -95,7 +95,7 @@ public class RuleCharacterIterator {
      * position.
      * @param text the text to be iterated
      * @param sym the symbol table, or null if there is none.  If sym is null,
-     * then variables will not be deferenced, even if the PARSE_VARIABLES
+     * then variables will not be dereferenced, even if the PARSE_VARIABLES
      * option is set.
      * @param pos upon input, the index of the next character to return.  If a
      * variable has been dereferenced, then pos will <em>not</em> increment as
index d1bd994b6e3d0c153202b9dd3c297429bf344507..19ad400b58e5dfef603e923a12f5ad72073abf91 100644 (file)
@@ -462,7 +462,7 @@ public class TimeZoneGenericNames implements Serializable, Freezable<TimeZoneGen
     /**
      * Private method returning LocaleDisplayNames instance for the locale of this
      * instance. Because LocaleDisplayNames is only used for generic
-     * location formant and partial location format, the LocaleDisplayNames
+     * location format and partial location format, the LocaleDisplayNames
      * is instantiated lazily.
      *
      * @return the instance of LocaleDisplayNames for the locale of this object.
index e095237c637c594f690e5a30bb4ce9704e04de67..6eae61cc9ded72cf11f7f991774ff205db745700 100644 (file)
@@ -1069,7 +1069,7 @@ public class DateIntervalInfo implements Cloneable, Freezable<DateIntervalInfo>,
      * which has pre-defined interval pattern in resource file.
      *
      * TODO (xji): set field weight or
-     *             isolate the funtionality in DateTimePatternGenerator
+     *             isolate the functionality in DateTimePatternGenerator
      * @param  inputSkeleton        input skeleton
      * @return 0, if there is exact match for input skeleton
      *         1, if there is only field width difference between
index f9431b57c611dade551470b31858aef91255415c..5c95c2d5811671bf93ec7106a21447b06f8ae2aa 100644 (file)
@@ -965,7 +965,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable {
         if (sep.length() == 1) {
             this.monetarySeparator = sep.charAt(0);
         } else {
-            // Use default decimap separator character as fallbacl
+            // Use default decimal separator character as fallback
             this.monetarySeparator = DEF_DECIMAL_SEPARATOR;
         }
     }
index c5a0e19e6d29425bc232ed59b403abefb47d6e92..6c2a0963ff91b529b384acc3c014b4d416ae1c37 100644 (file)
@@ -1703,7 +1703,7 @@ public final class Normalizer implements Cloneable {
      *  <li>{@link #NFC}    - Unicode canonical decompositiion
      *                        followed by canonical composition.
      *  <li>{@link #NFKC}   - Unicode compatibility decompositiion
-     *                        follwed by canonical composition.
+     *                        followed by canonical composition.
      *  <li>{@link #NFD}    - Unicode canonical decomposition
      *  <li>{@link #NFKD}   - Unicode compatibility decomposition.
      *  <li>{@link #NONE}   - Do nothing but return characters
index 8ebc31bcbf4e2d648a851284517d2373838d08cc..e1a1ab8c50965f707622538c30c9039299500325 100644 (file)
@@ -248,7 +248,7 @@ public class PluralRules implements Serializable {
          * Returns the 'functionally equivalent' locale with respect to plural rules. Calling PluralRules.forLocale with
          * the functionally equivalent locale, and with the provided locale, returns rules that behave the same. <br>
          * All locales with the same functionally equivalent locale have plural rules that behave the same. This is not
-         * exaustive; there may be other locales whose plural rules behave the same that do not have the same equivalent
+         * exhaustive; there may be other locales whose plural rules behave the same that do not have the same equivalent
          * locale.
          *
          * @param locale
@@ -2432,7 +2432,7 @@ public class PluralRules implements Serializable {
      * locale, and with the provided locale, returns rules that behave the same.
      * <br>
      * All locales with the same functionally equivalent locale have
-     * plural rules that behave the same.  This is not exaustive;
+     * plural rules that behave the same.  This is not exhaustive;
      * there may be other locales whose plural rules behave the same
      * that do not have the same equivalent locale.
      *
index cc4b82082a07963ff4ff7a5761fe09c9344d99a2..292bd91871198838d33231d1d51c381a44cfd6d5 100644 (file)
@@ -1702,7 +1702,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
         initLocalizations(localizations);
 
         // start by stripping the trailing whitespace from all the rules
-        // (this is all the whitespace follwing each semicolon in the
+        // (this is all the whitespace following each semicolon in the
         // description).  This allows us to look for rule-set boundaries
         // by searching for ";%" without having to worry about whitespace
         // between the ; and the %
index 89548db12c640980c7fd626878f233af10c925f0..ce3bd888be4097c1b2487d56a86d44b3d4cf9c94 100644 (file)
@@ -263,7 +263,7 @@ abstract class CECalendar extends Calendar {
 
         c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4);
 
-        // exteded year
+        // extended year
         fields[0] = 4 * c4 + (r4[0]/365 - r4[0]/1460); // 4 * <number of 4year cycle> + <years within the last cycle>
 
         int doy = (r4[0] == 1460) ? 365 : (r4[0] % 365); // days in present year
index 9117acb39c45cbbb396fd264a6383df7b78c9953..aa76c0279d07dc4e11ca2d79d0207733d1c459fa 100644 (file)
@@ -703,7 +703,7 @@ public class GregorianCalendar extends Calendar {
 //////////////////////
 
     /**
-     * Return true if the current time for this Calendar is in Daylignt
+     * Return true if the current time for this Calendar is in Daylight
      * Savings Time.
      */
     boolean inDaylightTime() {
index d8732a86921d1d655e376a89d53ecf51d187564c..6d270491497338f05ee9c5be177930deda5dfbed 100644 (file)
@@ -1058,7 +1058,7 @@ public class VTimeZone extends BasicTimeZone {
      *
      *  or
      *
-     * null on any error cases, for exmaple, FREQ=YEARLY is not available
+     * null on any error cases, for example, FREQ=YEARLY is not available
      *
      * When UNTIL attribute is available, the time will be set to until[0],
      * otherwise, MIN_TIME
index d344baff613d6068c182fda977022d4e932f75bd..f4c792a6a2423fc3eaf7c61c44fb617cd008aa67 100644 (file)
@@ -2252,7 +2252,7 @@ public class TestCharset extends TestFmwk {
                 public void run() {
                     // commented out since the mehtods on
                     // Charset API are supposed to be thread
-                    // safe ... to test it we dont sync
+                    // safe ... to test it we don't sync
 
                     // synchronized(charset){
                    while (!interrupted()) {
index 36a25bd613594baef1f56c3bc81b8fa7fa1475ea..2298ab8335005d1a7137f3c9edab2200c57ab51e 100644 (file)
@@ -612,7 +612,7 @@ public class CollationIteratorTest extends TestFmwk {
                     int ce = resultiter.next();
                     while (ce != CollationElementIterator.NULLORDER) {
                         if (ce != iter.next()) {
-                            errln("Discontiguos contraction test mismatch at"
+                            errln("Discontiguous contraction test mismatch at"
                                   + count);
                             return;
                         }
index ebc44fb1d4e8358959b915551a552d1d1c5790b0..d0d2b50933760070473310fc3f37435b5c4f9af2 100644 (file)
@@ -3801,7 +3801,7 @@ public class MeasureUnitTest extends TestFmwk {
         assertEquals("Initial joule", "joule", joule.getIdentifier());
 
         // "Invalid prefix" test not needed: in Java we cannot pass a
-        // non-existant enum instance. (In C++ an int can be typecast.)
+        // non-existent enum instance. (In C++ an int can be typecast.)
 
         MeasureUnit unit = joule.withPrefix(MeasureUnit.MeasurePrefix.HECTO);
         assertEquals("Joule with hecto prefix", "hectojoule", unit.getIdentifier());
index ad8cfde09649c40a210a72628a3df9779c63f007..3de6ced1e0eee7a22a96c639693c5e9f9cc87a88 100644 (file)
@@ -1802,7 +1802,7 @@ public class NumberRegressionTests extends TestFmwk {
     }
 
     /**
-     * 4241880: Decimal format doesnt round a double properly when the number is less than 1
+     * 4241880: Decimal format doesn't round a double properly when the number is less than 1
      */
     @Test
     public void test4241880() {
index 564a69ea2b4aef47cbdd96977808bdb64656cd60..2588ad4c0801ad667c03f4d8a0ecba986fd2ff49 100644 (file)
@@ -69,7 +69,7 @@ public class RBNFParseTest extends TestFmwk {
             ">>",
             ">>>",
             "10:", // formatting any value with a one's digit will fail
-            "11: << x", // formating a multiple of 10 causes rollback rule to fail
+            "11: << x", // formatting a multiple of 10 causes rollback rule to fail
             "%%foo: 0 foo; 10: =%%bar=; %%bar: 0: bar; 10: =%%foo=;",
         };
 
index 1ff44bd213c6e5d4f0a59e2e9206ada1dae0fba3..48222fb2703355f440389d79a382a6281301006e 100644 (file)
@@ -1383,7 +1383,7 @@ public class FormatHandler
                    // of 1,000.  This prevents us from getting "onze cents cent
                    // vingt-deux" ("eleven hundred one hundred twenty-two").
                 "1100>: onze cents[ >>];\n" +
-                   // at 1,200, we go back to formating in thousands, so we
+                   // at 1,200, we go back to formatting in thousands, so we
                    // repeat the rule for 1,000
                 "1200: mille >>;\n" +
                    // at 2,000, the multiplier is added
index f44992cd5f8a2e7ec5dcc9b58c84ad5c75cd4a77..ac8dc34ce774a423ae9e4fca97d182cb9ca52d78 100644 (file)
@@ -934,7 +934,7 @@ public final class XLIFF2ICUConverter {
                currentSource.comment =  currentTarget.comment = transUnit.getNodeValue();
             }else if( type == Node.ELEMENT_NODE){
                 if(name.equals(BINSOURCE)){
-                    // loop to pickup internal-file/extenal-file element
+                    // loop to pickup internal-file/external-file element
                     continue;
                 }else if(name.equals(NOTE)){
                     // save the note values
index de2cdc63ac3e2b6906cc25b0d39d74e78a24ec0f..29418ea2ea1e0bba1a0cc03d5c3150df539ff3b0 100644 (file)
@@ -23,7 +23,7 @@
              with Ant, this is messier than it should be. All we are saying here is:
              "Use the property if explicitly set, otherwise use the environment variable."
              We cannot just set the property to the environment variable, since expansion
-             fails for non existant properties, and you are left with a literal value of
+             fails for non existent properties, and you are left with a literal value of
              "${env.CLDR_DIR}". -->
         <condition property="cldrDir" value="${env.CLDR_DIR}">
             <isset property="env.CLDR_DIR"/>
index b0fafe3b64f35e92fa2ac40b017a00ccdcfb2b5d..22f87804f1a0e17da857fcfc1ab04abd4366aaab 100644 (file)
@@ -24,7 +24,7 @@
              with Ant, this is messier than it should be. All we are saying here is:
              "Use the property if explicitly set, otherwise use the environment variable."
              We cannot just set the property to the environment variable, since expansion
-             fails for non existant properties, and you are left with a literal value of
+             fails for non existent properties, and you are left with a literal value of
              "${env.CLDR_DATA_DIR}". -->
         <condition property="cldrDataDir" value="${env.CLDR_DATA_DIR}">
             <isset property="env.CLDR_DATA_DIR"/>
index 886c014e450034ebd34243b293d4967b194f981c..be3e70cdc358601fa877280d09683bfa9fe29994 100644 (file)
@@ -302,7 +302,7 @@ public final class PseudoLocales {
         // generate list automatically (rather than having a hard coded list in the type) but
         // https://unicode.org/reports/tr35/tr35-general.html#ExemplarSyntax
         // makes it quite clear that this is infeasible, since there are many equivalent
-        // representations of the examplar characters that could appear in the value
+        // representations of the exemplar characters that could appear in the value
         // (e.g. "[a b ... z]", "[a-z]", "[{a} {b} ... {z}]")
         private CldrValue getExemplarValue(CldrPath path) {
             StringBuilder exemplarList = new StringBuilder("[");
index 920c977fc57ce9cae89a1cdf38e005d65d28d5bb..68ab34aae9f79e722f8217130de1856846bd41fe 100755 (executable)
@@ -142,7 +142,7 @@ if (args.verbose>2):
     print gens
 
 if (args.verbose>3):
-    print "TODO: dependency tracking. For now, dont' care"
+    print "TODO: dependency tracking. For now, don't care"
 
 for gen in gens:
     item = gens[gen]
index 724a5b986565e5612c0095000d97eb93ab274674..6f9fe15e4774e24ed4adccaf583cd1ec67d13abc 100644 (file)
@@ -277,7 +277,7 @@ public class RBImporter extends JDialog {
         return markTranslatedCheck.isSelected();
     }
        
-    // Returns whether or not a group of name non-existant in the active bundle is created
+    // Returns whether or not a group of name non-existent in the active bundle is created
        
     protected boolean getDefaultGroupCreation() {
         return createGroupsCheck.isSelected();