]> granicus.if.org Git - icu/commitdiff
ICU-21580 Fix typos in icu4c/
authorluz paz <luzpaz@github.com>
Wed, 14 Jul 2021 22:45:49 +0000 (18:45 -0400)
committerErik Torres <ertorres@microsoft.com>
Mon, 19 Jul 2021 18:22:38 +0000 (13:22 -0500)
Found via `codespell -q 3 -L ans,anumber,atleast,ba,bre,hace,nd,nin,ois,rsource,som,sur,tht -S icu4c/source/data/zone,icu4c/source/data/lang`
ICU-21580 Fix source (related) typos
ICU-21580 Revert extraneous auto-encoding
ICU-21580 Re-add previous reverted fix without auto-encoding

295 files changed:
icu4c/LICENSE
icu4c/packaging/PACKAGES
icu4c/source/aclocal.m4
icu4c/source/allinone/Build.Windows.Library.WarningSettings.ProjectConfiguration.props
icu4c/source/common/caniter.cpp
icu4c/source/common/cstr.h
icu4c/source/common/dictbe.cpp
icu4c/source/common/icuplug.cpp
icu4c/source/common/locid.cpp
icu4c/source/common/loclikely.cpp
icu4c/source/common/lstmbe.cpp
icu4c/source/common/pluralmap.h
icu4c/source/common/putil.cpp
icu4c/source/common/rbbi.cpp
icu4c/source/common/rbbicst.pl
icu4c/source/common/rbbidata.cpp
icu4c/source/common/rbbinode.cpp
icu4c/source/common/rbbinode.h
icu4c/source/common/rbbirpt.txt
icu4c/source/common/rbbiscan.cpp
icu4c/source/common/rbbitblb.cpp
icu4c/source/common/rbbitblb.h
icu4c/source/common/resbund.cpp
icu4c/source/common/serv.cpp
icu4c/source/common/serv.h
icu4c/source/common/ucnv2022.cpp
icu4c/source/common/ucnv_cnv.h
icu4c/source/common/ucnv_imp.h
icu4c/source/common/ucnv_lmb.cpp
icu4c/source/common/ucnv_u32.cpp
icu4c/source/common/ucnvisci.cpp
icu4c/source/common/ucnvmbcs.cpp
icu4c/source/common/ucurr.cpp
icu4c/source/common/uhash.cpp
icu4c/source/common/uloc_tag.cpp
icu4c/source/common/unicode/caniter.h
icu4c/source/common/unicode/resbund.h
icu4c/source/common/unicode/strenum.h
icu4c/source/common/unicode/ucnv.h
icu4c/source/common/unicode/ucnv_err.h
icu4c/source/common/unicode/udata.h
icu4c/source/common/unicode/unistr.h
icu4c/source/common/unicode/uset.h
icu4c/source/common/unifiedcache.h
icu4c/source/common/uresimp.h
icu4c/source/common/usc_impl.h
icu4c/source/common/uset.cpp
icu4c/source/common/usprep.cpp
icu4c/source/common/ustring.cpp
icu4c/source/common/utext.cpp
icu4c/source/common/util.h
icu4c/source/common/util_props.cpp
icu4c/source/common/utrace.cpp
icu4c/source/common/wintz.cpp
icu4c/source/config/dist.mk
icu4c/source/config/mh-cygwin-msvc
icu4c/source/config/mh-mpras
icu4c/source/config/mh-msys-msvc
icu4c/source/config/mh-os390
icu4c/source/configure
icu4c/source/configure.ac
icu4c/source/data/Makefile.in
icu4c/source/data/brkitr/rules/char.txt
icu4c/source/data/brkitr/rules/line.txt
icu4c/source/data/brkitr/rules/line_cj.txt
icu4c/source/data/brkitr/rules/line_loose.txt
icu4c/source/data/brkitr/rules/line_loose_cj.txt
icu4c/source/data/brkitr/rules/line_normal.txt
icu4c/source/data/brkitr/rules/line_normal_cj.txt
icu4c/source/data/mappings/convrtrs.txt
icu4c/source/data/translit/Any_Accents.txt
icu4c/source/data/translit/Grek_Latn_UNGEGN.txt
icu4c/source/data/translit/InterIndic_Gurmukhi.txt
icu4c/source/data/translit/InterIndic_Latin.txt
icu4c/source/data/translit/Latin_ConjoiningJamo.txt
icu4c/source/data/translit/Latin_InterIndic.txt
icu4c/source/data/translit/am_am_FONIPA.txt
icu4c/source/data/translit/bg_bg_Latn_BGN.txt
icu4c/source/data/translit/cs_cs_FONIPA.txt
icu4c/source/data/translit/es_FONIPA_zh.txt
icu4c/source/data/translit/es_es_FONIPA.txt
icu4c/source/data/translit/it_ja.txt
icu4c/source/data/translit/sat_Olck_sat_FONIPA.txt
icu4c/source/extra/uconv/resources/root.txt
icu4c/source/i18n/astro.cpp
icu4c/source/i18n/astro.h
icu4c/source/i18n/brktrans.cpp
icu4c/source/i18n/calendar.cpp
icu4c/source/i18n/coleitr.cpp
icu4c/source/i18n/csdetect.cpp
icu4c/source/i18n/csr2022.cpp
icu4c/source/i18n/csrmbcs.cpp
icu4c/source/i18n/csrucode.cpp
icu4c/source/i18n/dcfmtsym.cpp
icu4c/source/i18n/decNumber.cpp
icu4c/source/i18n/double-conversion-bignum-dtoa.cpp
icu4c/source/i18n/double-conversion-double-to-string.h
icu4c/source/i18n/double-conversion-strtod.cpp
icu4c/source/i18n/dtfmtsym.cpp
icu4c/source/i18n/fmtable.cpp
icu4c/source/i18n/format.cpp
icu4c/source/i18n/formatted_string_builder.cpp
icu4c/source/i18n/gregoimp.h
icu4c/source/i18n/inputext.cpp
icu4c/source/i18n/inputext.h
icu4c/source/i18n/msgfmt.cpp
icu4c/source/i18n/nfrs.cpp
icu4c/source/i18n/nfsubs.cpp
icu4c/source/i18n/number_decimalquantity.h
icu4c/source/i18n/number_decimfmtprops.cpp
icu4c/source/i18n/number_longnames.h
icu4c/source/i18n/number_modifiers.h
icu4c/source/i18n/number_patternstring.h
icu4c/source/i18n/olsontz.cpp
icu4c/source/i18n/rbnf.cpp
icu4c/source/i18n/rbt.cpp
icu4c/source/i18n/rbt_data.cpp
icu4c/source/i18n/rbt_pars.h
icu4c/source/i18n/rbt_set.cpp
icu4c/source/i18n/rbt_set.h
icu4c/source/i18n/regexcmp.cpp
icu4c/source/i18n/regexcmp.h
icu4c/source/i18n/regexcst.pl
icu4c/source/i18n/regexcst.txt
icu4c/source/i18n/regeximp.h
icu4c/source/i18n/rematch.cpp
icu4c/source/i18n/simpletz.cpp
icu4c/source/i18n/smpdtfmt.cpp
icu4c/source/i18n/stsearch.cpp
icu4c/source/i18n/timezone.cpp
icu4c/source/i18n/transreg.h
icu4c/source/i18n/tzgnames.cpp
icu4c/source/i18n/tzgnames.h
icu4c/source/i18n/tznames.cpp
icu4c/source/i18n/tznames_impl.cpp
icu4c/source/i18n/tznames_impl.h
icu4c/source/i18n/unicode/alphaindex.h
icu4c/source/i18n/unicode/basictz.h
icu4c/source/i18n/unicode/choicfmt.h
icu4c/source/i18n/unicode/coleitr.h
icu4c/source/i18n/unicode/datefmt.h
icu4c/source/i18n/unicode/dcfmtsym.h
icu4c/source/i18n/unicode/decimfmt.h
icu4c/source/i18n/unicode/dtfmtsym.h
icu4c/source/i18n/unicode/dtitvfmt.h
icu4c/source/i18n/unicode/dtitvinf.h
icu4c/source/i18n/unicode/dtptngen.h
icu4c/source/i18n/unicode/dtrule.h
icu4c/source/i18n/unicode/fmtable.h
icu4c/source/i18n/unicode/format.h
icu4c/source/i18n/unicode/gregocal.h
icu4c/source/i18n/unicode/msgfmt.h
icu4c/source/i18n/unicode/numfmt.h
icu4c/source/i18n/unicode/rbnf.h
icu4c/source/i18n/unicode/search.h
icu4c/source/i18n/unicode/simpletz.h
icu4c/source/i18n/unicode/smpdtfmt.h
icu4c/source/i18n/unicode/timezone.h
icu4c/source/i18n/unicode/translit.h
icu4c/source/i18n/unicode/tzfmt.h
icu4c/source/i18n/unicode/ucol.h
icu4c/source/i18n/unicode/ucoleitr.h
icu4c/source/i18n/unicode/udatpg.h
icu4c/source/i18n/unicode/uformattable.h
icu4c/source/i18n/unicode/ulocdata.h
icu4c/source/i18n/unicode/umsg.h
icu4c/source/i18n/units_converter.h
icu4c/source/i18n/units_router.h
icu4c/source/i18n/uregex.cpp
icu4c/source/i18n/usearch.cpp
icu4c/source/i18n/uspoof.cpp
icu4c/source/i18n/uspoof_conf.h
icu4c/source/i18n/uspoof_impl.h
icu4c/source/i18n/usrchimp.h
icu4c/source/i18n/vtzone.cpp
icu4c/source/icudefs.mk.in
icu4c/source/io/unicode/ustdio.h
icu4c/source/layoutex/layout/ParagraphLayout.h
icu4c/source/layoutex/layout/playout.h
icu4c/source/samples/layout/FontMap.cpp
icu4c/source/samples/layout/ScriptCompositeFontInstance.h
icu4c/source/test/cintltst/bocu1tst.c
icu4c/source/test/cintltst/capitst.c
icu4c/source/test/cintltst/cbiapts.c
icu4c/source/test/cintltst/cbiditst.c
icu4c/source/test/cintltst/ccaltst.c
icu4c/source/test/cintltst/ccapitst.c
icu4c/source/test/cintltst/cdattst.c
icu4c/source/test/cintltst/cdtdptst.c
icu4c/source/test/cintltst/citertst.c
icu4c/source/test/cintltst/cloctst.c
icu4c/source/test/cintltst/cloctst.h
icu4c/source/test/cintltst/cmsccoll.c
icu4c/source/test/cintltst/cnmdptst.h
icu4c/source/test/cintltst/cnormtst.c
icu4c/source/test/cintltst/cnumtst.c
icu4c/source/test/cintltst/cturtst.c
icu4c/source/test/cintltst/cucdtst.c
icu4c/source/test/cintltst/custrtst.c
icu4c/source/test/cintltst/eurocreg.c
icu4c/source/test/cintltst/hpmufn.c
icu4c/source/test/cintltst/idnatest.c
icu4c/source/test/cintltst/nccbtst.h
icu4c/source/test/cintltst/ncnvfbts.c
icu4c/source/test/cintltst/ncnvtst.c
icu4c/source/test/cintltst/nucnvtst.c
icu4c/source/test/cintltst/reapits.c
icu4c/source/test/cintltst/spooftest.c
icu4c/source/test/cintltst/stdnmtst.c
icu4c/source/test/cintltst/trietest.c
icu4c/source/test/cintltst/ucsdetst.c
icu4c/source/test/cintltst/udatatst.c
icu4c/source/test/cintltst/usettest.c
icu4c/source/test/cintltst/usrchtst.c
icu4c/source/test/cintltst/utransts.c
icu4c/source/test/depstest/depstest.py
icu4c/source/test/fuzzer/fuzzer_driver.cpp
icu4c/source/test/intltest/apicoll.cpp
icu4c/source/test/intltest/apicoll.h
icu4c/source/test/intltest/callimts.cpp
icu4c/source/test/intltest/calregts.cpp
icu4c/source/test/intltest/caltest.cpp
icu4c/source/test/intltest/colldata.cpp
icu4c/source/test/intltest/colldata.h
icu4c/source/test/intltest/csdetest.cpp
icu4c/source/test/intltest/datadrivennumberformattestsuite.h
icu4c/source/test/intltest/dcfmtest.cpp
icu4c/source/test/intltest/dtfmttst.cpp
icu4c/source/test/intltest/dtfmttst.h
icu4c/source/test/intltest/fldset.h
icu4c/source/test/intltest/idnaref.h
icu4c/source/test/intltest/incaltst.cpp
icu4c/source/test/intltest/intltest.cpp
icu4c/source/test/intltest/intltest.h
icu4c/source/test/intltest/itercoll.cpp
icu4c/source/test/intltest/itrbnf.cpp
icu4c/source/test/intltest/localebuildertest.cpp
icu4c/source/test/intltest/loctest.h
icu4c/source/test/intltest/lstmbetst.cpp
icu4c/source/test/intltest/msfmrgts.cpp
icu4c/source/test/intltest/numberformattesttuple.h
icu4c/source/test/intltest/numfmtst.cpp
icu4c/source/test/intltest/numrgts.cpp
icu4c/source/test/intltest/rbbiapts.cpp
icu4c/source/test/intltest/rbbitst.cpp
icu4c/source/test/intltest/regextst.cpp
icu4c/source/test/intltest/simplethread.h
icu4c/source/test/intltest/srchtest.cpp
icu4c/source/test/intltest/ssearch.cpp
icu4c/source/test/intltest/string_segment_test.cpp
icu4c/source/test/intltest/tchcfmt.cpp
icu4c/source/test/intltest/testidn.cpp
icu4c/source/test/intltest/testidna.cpp
icu4c/source/test/intltest/tfsmalls.h
icu4c/source/test/intltest/thcoll.cpp
icu4c/source/test/intltest/transtst.cpp
icu4c/source/test/intltest/tsdcfmsy.cpp
icu4c/source/test/intltest/tsmthred.cpp
icu4c/source/test/intltest/tufmtts.cpp
icu4c/source/test/intltest/tzfmttst.cpp
icu4c/source/test/intltest/tzrulets.cpp
icu4c/source/test/intltest/unifiedcachetest.cpp
icu4c/source/test/intltest/ustrtest.cpp
icu4c/source/test/intltest/utxttest.cpp
icu4c/source/test/intltest/utxttest.h
icu4c/source/test/iotest/filetst.c
icu4c/source/test/iotest/iotest.cpp
icu4c/source/test/letest/cletest.c
icu4c/source/test/letest/letest.cpp
icu4c/source/test/perf/README
icu4c/source/test/perf/howExpensiveIs/sieve.cpp
icu4c/source/test/perf/normperf/normperf.h
icu4c/source/test/perf/perldriver/Dataset.pm
icu4c/source/test/testdata/break_rules/grapheme.txt
icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt
icu4c/source/test/testdata/idna_conf.txt
icu4c/source/test/testdata/rbbitst.txt
icu4c/source/test/testdata/regextst.txt
icu4c/source/test/testdata/ssearch.xml
icu4c/source/test/thaitest/thaitest.cpp
icu4c/source/tools/ctestfw/ctest.c
icu4c/source/tools/ctestfw/unicode/ctest.h
icu4c/source/tools/ctestfw/unicode/testdata.h
icu4c/source/tools/ctestfw/unicode/uperf.h
icu4c/source/tools/ctestfw/unicode/utimer.h
icu4c/source/tools/genrb/genrb.cpp
icu4c/source/tools/genrb/prscmnts.cpp
icu4c/source/tools/genrb/wrtjava.cpp
icu4c/source/tools/genrb/wrtxml.cpp
icu4c/source/tools/gensprep/store.c
icu4c/source/tools/toolutil/ucbuf.cpp
icu4c/source/tools/toolutil/uoptions.h
icu4c/source/tools/toolutil/xmlparser.cpp
icu4c/source/tools/tzcode/localtime.c
icu4c/source/tools/tzcode/tz2icu.cpp

index ccabadded6b3e2e46c756abe48dadcab63ea0f8f..970ae074cbf555dc418bee7430f35cc257b24210 100644 (file)
@@ -302,7 +302,7 @@ property of their respective owners.
  #  Redistributions of source code must retain the above copyright notice, this
  #  list of conditions and the following disclaimer. Redistributions in binary
  #  form must reproduce the above copyright notice, this list of conditions and
- #  the following disclaimer in the documentation and/or ther materials
+ #  the following disclaimer in the documentation and/or other materials
  #  provided with the distribution.
  #
  # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
index d69f3b6544aa6b98de031d2cd038745fffd973dc..0f7a471a0b804f2cd92b1540d3f7efe4abe8e43e 100644 (file)
@@ -60,9 +60,9 @@ in addition to platform-specific settings (like a specific mandir or
 sysconfdir). Note that the use of --disable-rpath assumes that the
 packaging is made for a standard location, or that the package
 installation/deinstallation will correctly manage the configuration
-of the system's dyanmic loader. This is the right way of doing things.
+of the system's dynamic loader. This is the right way of doing things.
 
-The configure script invokation should also be done with
+The configure script invocation should also be done with
 
   CFLAGS="-O2"
 
@@ -119,7 +119,7 @@ This package contains:
 
 + The ICU development package
 
-The ICU developpment package is named `libicu-dev'. It provides all
+The ICU development package is named `libicu-dev'. It provides all
 the files necessary to write applications that use ICU, along with
 examples and some documentation.
 
@@ -130,7 +130,7 @@ headers.
 - The .so symbolic links used by the linker to link against the
 latest version of the libraries.
 - A sample Makefile fragment that can be included by applications
-using ICU, to faciliate their building, along with a platform-specific
+using ICU, to facilitate their building, along with a platform-specific
 configuration file included by this fragment.
 - The sample applications from the ICU source tree, in an appropriate
 location for the system that the package is installed on (for example,
index b5ee8a9d1e180999d41df3663fe6739b5df142ec..ff0b1f2340cd8da4f9d9118cb789c258d6e2d0ad 100644 (file)
@@ -100,7 +100,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
 dnl
 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-dnl only at the first occurence in configure.ac, so if the first place
+dnl only at the first occurrence in configure.ac, so if the first place
 dnl it's called might be skipped (such as if it is within an "if", you
 dnl have to call PKG_CHECK_EXISTS manually
 AC_DEFUN([PKG_CHECK_EXISTS],
index a00e2c43047a253acdc269dc5765ec664e136c9d..603788a95370532bd159b76eafe350f93670bad8 100644 (file)
@@ -14,7 +14,7 @@
           C4661 No suitable definition provided for explicit template instantiation request.
           C4715 Not all control paths return a value.
           C4706 Assignment within conditional expression.
-          C4005 Macro redifintion.
+          C4005 Macro redefinition.
           C4068 Unknown pragma.
           C4267 Conversion from size_t to type, possible loss of data.
           C4910 __declspec(dllexport) and extern are incompatible on an explicit instantiation.
index b1e1ed0d0719d859abc9724152dd749aedf9a93b..a2083afde3cdb1906fb0e0e2d9ced9d018c8a5a9 100644 (file)
@@ -494,7 +494,7 @@ Hashtable *CanonicalIterator::getEquivalents2(Hashtable *fillinResult, const UCh
 
 /**
  * See if the decomposition of cp2 is at segment starting at segmentPos 
- * (with canonical rearrangment!)
+ * (with canonical rearrangement!)
  * If so, take the remainder, and return the equivalents 
  */
 Hashtable *CanonicalIterator::extract(Hashtable *fillinResult, UChar32 comp, const UChar *segment, int32_t segLen, int32_t segmentPos, UErrorCode &status) {
index c33f487ea121cd18ce472d328f6be4ef4e3be75d..c7a77a0ae5a65f9317c50c2d1a49f94ae27b6bc3 100644 (file)
@@ -28,7 +28,7 @@
  * default code page conversion, which will do the best job possible,
  * but may be lossy, depending on the platform.
  *
- * If no other conversion is available, use invariant conversion and substitue
+ * If no other conversion is available, use invariant conversion and substitute
  * '?' for non-invariant characters.
  *
  * Example Usage:
index f9aae5bc9ede81973fb42cd6e2d68e68da10b07e..4d158e3226db28ecfff6be1f45a3a3be782ac23b 100644 (file)
@@ -181,7 +181,7 @@ static const int32_t THAI_ROOT_COMBINE_THRESHOLD = 3;
 // dictionary word, with a preceding word
 static const int32_t THAI_PREFIX_COMBINE_THRESHOLD = 3;
 
-// Ellision character
+// Elision character
 static const int32_t THAI_PAIYANNOI = 0x0E2F;
 
 // Repeat character
@@ -531,7 +531,7 @@ foundBest:
         }
         
         // We come here after having either found a word or not. We look ahead to the
-        // next word. If it's not a dictionary word, we will combine it withe the word we
+        // next word. If it's not a dictionary word, we will combine it with the word we
         // just found (if there is one), but only if the preceding word does not exceed
         // the threshold.
         // The text iterator should now be positioned at the end of the word we found.
@@ -724,7 +724,7 @@ foundBest:
         }
         
         // We come here after having either found a word or not. We look ahead to the
-        // next word. If it's not a dictionary word, we will combine it withe the word we
+        // next word. If it's not a dictionary word, we will combine it with the word we
         // just found (if there is one), but only if the preceding word does not exceed
         // the threshold.
         // The text iterator should now be positioned at the end of the word we found.
index efd4305b1985a91f8a13ad19ded40bc7ddc22f01..52a0deced6d332a78828560e1e253c742773da2d 100644 (file)
@@ -526,7 +526,7 @@ uplug_getPlugLoadStatus(UPlugData *plug) {
 
 
 /**
- * Initialize a plugin fron an entrypoint and library - but don't load it.
+ * Initialize a plugin from an entrypoint and library - but don't load it.
  */
 static UPlugData* uplug_initPlugFromEntrypointAndLibrary(UPlugEntrypoint *entrypoint, const char *config, void *lib, const char *sym,
                                                          UErrorCode *status) {
index e737469c801ed24d4fe62748a13148e19a164dec..4989f7f2ef01eccab9da9698d9a190b40b1df534 100644 (file)
@@ -752,7 +752,7 @@ AliasDataBuilder::readLanguageAlias(
         alias, strings, types, replacementIndexes, length,
 #if U_DEBUG
         [](const char* type) {
-            // Assert the aliasFrom only contains the following possibilties
+            // Assert the aliasFrom only contains the following possibilities
             // language_REGION_variant
             // language_REGION
             // language_variant
@@ -1351,7 +1351,7 @@ AliasReplacer::replaceLanguage(
         }
         if (replacedExtensions != nullptr) {
             // DO NOTHING
-            // UTS35 does not specifiy what should we do if we have extensions in the
+            // UTS35 does not specify what should we do if we have extensions in the
             // replacement. Currently we know only the following 4 "BCP47 LegacyRules" have
             // extensions in them languageAlias:
             //  i_default => en_x_i_default
@@ -1710,7 +1710,7 @@ AliasReplacer::replace(const Locale& locale, CharString& out, UErrorCode& status
     }  // while(1)
 
     if (U_FAILURE(status)) { return false; }
-    // Nothing changed and we know the order of the vaiants are not change
+    // Nothing changed and we know the order of the variants are not change
     // because we have no variant or only one.
     const char* extensionsStr = locale_getKeywordsStart(locale.getName());
     if (changed == 0 && variants.size() <= 1 && extensionsStr == nullptr) {
index 94a60aba3e071c30601e351bba5a18e85ee5fefd..136081bcfaf5c1b25b119ff9f6bdfb41819b6788 100644 (file)
@@ -115,7 +115,7 @@ findLikelySubtags(const char* localeID,
  * @param tag The tag to add.
  * @param tagLength The length of the tag.
  * @param buffer The output buffer.
- * @param bufferLength The length of the output buffer.  This is an input/ouput parameter.
+ * @param bufferLength The length of the output buffer.  This is an input/output parameter.
  **/
 static void U_CALLCONV
 appendTag(
index 68c37866c6051f1e724c5483ccf5b23048275fb6..df742c812b389efc1eb14f5cd94ff7bd33f37149 100644 (file)
@@ -28,7 +28,7 @@
 
 U_NAMESPACE_BEGIN
 
-// Uncomment the follwoing #define to debug.
+// Uncomment the following #define to debug.
 // #define LSTM_DEBUG 1
 // #define LSTM_VECTORIZER_DEBUG 1
 
@@ -554,7 +554,7 @@ GraphemeClusterVectorizer::~GraphemeClusterVectorizer()
 {
 }
 
-constexpr int32_t MAX_GRAPHEME_CLSTER_LENTH = 10;
+constexpr int32_t MAX_GRAPHEME_CLSTER_LENGTH = 10;
 
 void GraphemeClusterVectorizer::vectorize(
     UText *text, int32_t startPos, int32_t endPos,
@@ -576,13 +576,13 @@ void GraphemeClusterVectorizer::vectorize(
     }
     int32_t last = startPos;
     int32_t current = startPos;
-    UChar str[MAX_GRAPHEME_CLSTER_LENTH];
+    UChar str[MAX_GRAPHEME_CLSTER_LENGTH];
     while ((current = graphemeIter->next()) != BreakIterator::DONE) {
         if (current >= endPos) {
             break;
         }
         if (current > startPos) {
-            utext_extract(text, last, current, str, MAX_GRAPHEME_CLSTER_LENTH, &status);
+            utext_extract(text, last, current, str, MAX_GRAPHEME_CLSTER_LENGTH, &status);
             if (U_FAILURE(status)) return;
             offsets.addElement(last, status);
             indices.addElement(stringToIndex(str), status);
@@ -593,7 +593,7 @@ void GraphemeClusterVectorizer::vectorize(
     if (U_FAILURE(status) || last >= endPos) {
         return;
     }
-    utext_extract(text, last, endPos, str, MAX_GRAPHEME_CLSTER_LENTH, &status);
+    utext_extract(text, last, endPos, str, MAX_GRAPHEME_CLSTER_LENGTH, &status);
     if (U_SUCCESS(status)) {
         offsets.addElement(last, status);
         indices.addElement(stringToIndex(str), status);
index 41ab1d9dffc58230aeec0a75d6d57e1536aa7cba..4988fd2699f385fdc388698cc49e19c82f0d2201 100644 (file)
@@ -46,7 +46,7 @@ public:
 
     /**
      * Converts a category name such as "zero", "one", "two", "few", "many"
-     * or "other" to a category enum.  Returns NONE for urecongized
+     * or "other" to a category enum.  Returns NONE for unrecognized
      * category name.
      */
     static Category toCategory(const UnicodeString &categoryName);
index ffcbbcce59b4018ca47192462eb405490c545f80..638a28e517c41560a86a83c4605a181ac810b1c3 100644 (file)
@@ -918,7 +918,7 @@ static UBool compareBinaryFiles(const char* defaultTZFileName, const char* TZFil
         if (sizeFile != tzInfo->defaultTZFileSize) {
             result = FALSE;
         } else {
-            /* Store the data from the files in seperate buffers and
+            /* Store the data from the files in separate buffers and
              * compare each byte to determine equality.
              */
             if (tzInfo->defaultTZBuffer == NULL) {
index 834fec9736242987d713c3c9d58349de7d3db062..24d1869338eea61d1c49c24e4148f9c7516a22c6 100644 (file)
@@ -671,7 +671,7 @@ int32_t RuleBasedBreakIterator::preceding(int32_t offset) {
 }
 
 /**
- * Returns true if the specfied position is a boundary position.  As a side
+ * Returns true if the specified position is a boundary position.  As a side
  * effect, leaves the iterator pointing to the first boundary position at
  * or after "offset".
  *
@@ -1037,7 +1037,7 @@ int32_t RuleBasedBreakIterator::handleSafePrevious(int32_t fromPosition) {
 
         if (state == STOP_STATE) {
             // This is the normal exit from the lookup state machine.
-            // Transistion to state zero means we have found a safe point.
+            // Transition to state zero means we have found a safe point.
             break;
         }
     }
index 9aee3c166270ca7f7c6edd440f3b3af084ea1baf..1a01386c7c101d6425b7029845f27c1bf70f3f2c 100755 (executable)
@@ -7,7 +7,7 @@
 #   and others. All rights reserved.
 #**************************************************************************
 #
-#  rbbicst   Compile the RBBI rule paser state table data into initialized C data.
+#  rbbicst   Compile the RBBI rule parser state table data into initialized C data.
 #            Usage:
 #                   cd icu/source/common
 #                   perl rbbicst.pl    < rbbirpt.txt > rbbirpt.h
@@ -357,7 +357,7 @@ else
     print "U_NAMESPACE_BEGIN\n";
 
     #
-    # Emit the constants for indicies of Unicode Sets
+    # Emit the constants for indices of Unicode Sets
     #   Define one constant for each of the character classes encountered.
     #   At the same time, store the index corresponding to the set name back into hash.
     #
@@ -382,7 +382,7 @@ else
     print "    rbbiLastAction};\n\n";
 
     #
-    # Emit the struct definition for transtion table elements.
+    # Emit the struct definition for transition table elements.
     #
     print "//-------------------------------------------------------------------------------\n";
     print "//\n";
index 193acafc4420b03c4c0702a9367f85b70e2488ba..dc14cf9c4053d15d979d66baeb250baa41070563 100644 (file)
@@ -283,7 +283,7 @@ void  RBBIDataWrapper::printData() {
     printTable("Forward State Transition Table", fForwardTable);
     printTable("Reverse State Transition Table", fReverseTable);
 
-    RBBIDebugPrintf("\nOrignal Rules source:\n");
+    RBBIDebugPrintf("\nOriginal Rules source:\n");
     for (int32_t c=0; fRuleSource[c] != 0; c++) {
         RBBIDebugPrintf("%c", fRuleSource[c]);
     }
index 69d84151fe818a43665d1932a7ae3eb5f5c5db3c..9d5112901119bb7ca6608ced52b3241be289cea9 100644 (file)
@@ -351,7 +351,7 @@ void RBBINode::printTree(const RBBINode *node, UBool printHeading) {
     printNode(node);
     if (node != NULL) {
         // Only dump the definition under a variable reference if asked to.
-        // Unconditinally dump children of all other node types.
+        // Unconditionally dump children of all other node types.
         if (node->fType != varRef) {
             if (node->fLeftChild != NULL) {
                 printTree(node->fLeftChild, FALSE);
index cff3ba70c427695f1b7f46853c91b96a1b23d8c7..9e200196459dc2c8ad05e6f7cac92c4e13c7c51f 100644 (file)
@@ -71,7 +71,7 @@ class RBBINode : public UMemory {
         int           fLastPos;             //  Last position in the rule source string
                                             //    of any text associated with this node.
                                             //    If there's a right child, this will be the same
-                                            //    as that child's last postion.
+                                            //    as that child's last position.
 
         UBool         fNullable;            // See Aho.
         int32_t       fVal;                 // For leafChar nodes, the value.
@@ -108,7 +108,7 @@ class RBBINode : public UMemory {
 
     private:
         RBBINode &operator = (const RBBINode &other); // No defs.
-        UBool operator == (const RBBINode &other);    // Private, so these functions won't accidently be used.
+        UBool operator == (const RBBINode &other);    // Private, so these functions won't accidentally be used.
 
 #ifdef RBBI_DEBUG
     public:
index 83f7aa401b02584b7d33a0a645f80d2a7d801141..86b75c11e96f09dac977e197abb3680a502b0e67 100644 (file)
@@ -50,7 +50,7 @@
 #       |                     character from the input only if 'n' appears here.
 #       |
 #       |--- Character or named character classes to test for.  If the current character being scanned
-#            matches, peform the actions and go to the state specified on this line.
+#            matches, perform the actions and go to the state specified on this line.
 #            The input character is tested sequentally, in the order written.  The characters and
 #            character classes tested for do not need to be mutually exclusive.  The first match wins.
 #            
@@ -258,7 +258,7 @@ expr-cont-no-tag:
 #                    to go to after completion of the variable name scanning.
 #
 #                    The current input character must be the $ that introduces the name.
-#                    The $ is consummed here rather than in the state that first detected it
+#                    The $ is consumed here rather than in the state that first detected it
 #                    so that the doStartVariableName action only needs to happen in one
 #                    place (here), and the other states don't need to worry about it.
 #
index 45911b1cfe0d5cc63f590d6c453fd7705a518b89..1304f7e37e6961941b1021623bd30542331da6a6 100644 (file)
@@ -175,7 +175,7 @@ RBBIRuleScanner::~RBBIRuleScanner() {
 
     // Node Stack.
     //   Normally has one entry, which is the entire parse tree for the rules.
-    //   If errors occured, there may be additional subtrees left on the stack.
+    //   If errors occurred, there may be additional subtrees left on the stack.
     while (fNodeStackPtr > 0) {
         delete fNodeStack[fNodeStackPtr];
         fNodeStackPtr--;
@@ -375,7 +375,7 @@ UBool RBBIRuleScanner::doParseActions(int32_t action)
         RBBINode **destRules = (fReverseRule? &fRB->fSafeRevTree : fRB->fDefaultTree);
 
         if (*destRules != NULL) {
-            // This is not the first rule encounted.
+            // This is not the first rule encountered.
             // OR previous stuff  (from *destRules)
             // with the current rule expression (on the Node Stack)
             //  with the resulting OR expression going to *destRules
@@ -1223,7 +1223,7 @@ void RBBIRuleScanner::scanSet() {
         //  TODO:  Get more accurate position of the error from UnicodeSet's return info.
         //         UnicodeSet appears to not be reporting correctly at this time.
         #ifdef RBBI_DEBUG
-            RBBIDebugPrintf("UnicodeSet parse postion.ErrorIndex = %d\n", pos.getIndex());
+            RBBIDebugPrintf("UnicodeSet parse position.ErrorIndex = %d\n", pos.getIndex());
         #endif
         error(localStatus);
         delete uset;
@@ -1244,7 +1244,7 @@ void RBBIRuleScanner::scanSet() {
     }
 
 
-    // Advance the RBBI parse postion over the UnicodeSet pattern.
+    // Advance the RBBI parse position over the UnicodeSet pattern.
     //   Don't just set fScanIndex because the line/char positions maintained
     //   for error reporting would be thrown off.
     i = pos.getIndex();
@@ -1267,7 +1267,7 @@ void RBBIRuleScanner::scanSet() {
         fRB->fRules.extractBetween(n->fFirstPos, n->fLastPos, n->fText);
         //  findSetFor() serves several purposes here:
         //     - Adopts storage for the UnicodeSet, will be responsible for deleting.
-        //     - Mantains collection of all sets in use, needed later for establishing
+        //     - Maintains collection of all sets in use, needed later for establishing
         //          character categories for run time engine.
         //     - Eliminates mulitiple instances of the same set.
         //     - Creates a new uset node if necessary (if this isn't a duplicate.)
index b55dd17339dbc9d7d68d8794d0b38913cf2b6127..984d35b14795ff92d1e091fdb70ec921e9e38e03 100644 (file)
@@ -79,7 +79,7 @@ void  RBBITableBuilder::buildForwardTable() {
 
     //
     // Walk through the tree, replacing any references to $variables with a copy of the
-    //   parse tree for the substition expression.
+    //   parse tree for the substitution expression.
     //
     fTree = fTree->flattenVariables();
 #ifdef RBBI_DEBUG
@@ -694,7 +694,7 @@ void RBBITableBuilder::buildStateTable() {
         }
     }
     return;
-    // delete local pointers only if error occured.
+    // delete local pointers only if error occurred.
 ExitBuildSTdeleteall:
     delete initialState;
     delete failState;
@@ -1445,7 +1445,7 @@ void RBBITableBuilder::buildSafeReverseTable(UErrorCode &status) {
     // the first of a pair. In each of these rows, the entry for the second character
     // of a safe pair is set to the stop state (0), indicating that a match was found.
     // All other table entries are set to the state corresponding the current input
-    // character, allowing that charcter to be the of a start following pair.
+    // character, allowing that character to be the of a start following pair.
     //
     // Because the safe rules are to be run in reverse, moving backwards in the text,
     // the first and second pair categories are swapped when building the table.
@@ -1490,7 +1490,7 @@ void RBBITableBuilder::buildSafeReverseTable(UErrorCode &status) {
     // The table as a whole is UVector<UnicodeString>
     // Each row is represented by a UnicodeString, being used as a Vector<int16>.
     // Row 0 is the stop state.
-    // Row 1 is the start sate.
+    // Row 1 is the start state.
     // Row 2 and beyond are other states, initially one per char class, but
     //   after initial construction, many of the states will be combined, compacting the table.
     // The String holds the nextState data only. The four leading fields of a row, fAccepting,
index fe3db8d7bf1ae8e44be56a77455dbf8705c0368d..38607a819ac1efd3d6e8fab6d7acc94e156c5fad 100644 (file)
@@ -69,12 +69,12 @@ public:
     bool     findDuplCharClassFrom(IntPair *categories);
 
     /** Remove a column from the state table. Used when two character categories
-     *  have been found equivalent, and merged together, to eliminate the uneeded table column.
+     *  have been found equivalent, and merged together, to eliminate the unneeded table column.
      */
     void     removeColumn(int32_t column);
 
     /**
-     * Check for, and remove dupicate states (table rows).
+     * Check for, and remove duplicate states (table rows).
      * @return the number of states removed.
      */
     int32_t  removeDuplicateStates();
index 7c5063b21143c4bde11df7f62a081f288476ff12..47c0fe1c6edd13d1b0fefe2fe1e8cef0d3c8b9da 100644 (file)
@@ -135,7 +135,7 @@ U_NAMESPACE_BEGIN
  * so forth, until the chain is exhausted or the tag is found.
  *
  * Thread-safety is implemented around caches, both the cache that
- * stores all the resouce data, and the cache that stores flags
+ * stores all the resource data, and the cache that stores flags
  * indicating whether or not a file has been visited.  These caches
  * delete their storage at static cleanup time, when the process
  * quits.
index 210a9703f5a8046587a34ae18761596a733dec96..dc9a62e3562a619fd82e37997eaf3bedbdc0da40 100644 (file)
@@ -238,7 +238,7 @@ public:
     * you're removing pointer to this somewhere.  Management of that
     * pointer will have to know how to deal with refcounts.  Once
     * the refcount drops to zero, the resource is released.  Return
-    * false if the resouce has been released.
+    * false if the resource has been released.
     */
     CacheEntry* unref() {
         if ((--refcount) == 0) {
index ca070b6c6d69c25b8c18e5f8ddd18526dcd771a1..4a6a0fffb823b4347e9bae6b603aa5f026a9b541 100644 (file)
@@ -363,7 +363,7 @@ public:
 
 /**
  * <p>ServiceListener is the listener that ICUService provides by default.
- * ICUService will notifiy this listener when factories are added to
+ * ICUService will notify this listener when factories are added to
  * or removed from the service.  Subclasses can provide
  * different listener interfaces that extend EventListener, and modify
  * acceptsListener and notifyListener as appropriate.</p>
index 4110cb8500f026f07a5df675fecafe7075c9182b..aa1e169c99c00b40d837bc27eb142426cea8ea29 100644 (file)
@@ -2147,7 +2147,7 @@ escape:
                     changeState_2022(args->converter,&(mySource),
                         mySourceLimit, ISO_2022_JP,err);
 
-                    /* If in ISO-2022-JP only and we successully completed an escape sequence, but previous segment was empty, create an error */
+                    /* If in ISO-2022-JP only and we successfully completed an escape sequence, but previous segment was empty, create an error */
                     if(myData->version==0 && myData->key==0 && U_SUCCESS(*err) && myData->isEmptySegment) {
                         *err = U_ILLEGAL_ESCAPE_SEQUENCE;
                         args->converter->toUCallbackReason = UCNV_IRREGULAR;
@@ -2849,21 +2849,21 @@ getTrailByte:
 *       SS2 is a Chinese character as defined in CNS
 *       11643-plane-2, until another SS2designation
 *       appears
-*       (Meaning <ESC>N must preceed every 2 byte
+*       (Meaning <ESC>N must precede every 2 byte
 *        sequence.)
 *
 *      ESC $ + I       Indicates the immediate two bytes following SS3
 *       is a Chinese character as defined in CNS
 *       11643-plane-3, until another SS3designation
 *       appears
-*       (Meaning <ESC>O must preceed every 2 byte
+*       (Meaning <ESC>O must precede every 2 byte
 *        sequence.)
 *
 *      ESC $ + J       Indicates the immediate two bytes following SS3
 *       is a Chinese character as defined in CNS
 *       11643-plane-4, until another SS3designation
 *       appears
-*       (In English: <ESC>O must preceed every 2 byte
+*       (In English: <ESC>O must precede every 2 byte
 *        sequence.)
 *
 *      ESC $ + K       Indicates the immediate two bytes following SS3
index 59be8bdb37b59353187efb01ba2e3d6b2a4bb3a0..e89eebe54ed8c45cfc501541edc18b102ca2d70f 100644 (file)
@@ -164,7 +164,7 @@ typedef const char * (*UConverterGetName) (const UConverter *cnv);
  * If this function is not set, then ucnv_cbFromUWriteSub() writes
  * the substitution character from UConverter.
  * For stateful converters, it is typically necessary to handle this
- * specificially for the converter in order to properly maintain the state.
+ * specifically for the converter in order to properly maintain the state.
  */
 typedef void (*UConverterWriteSub) (UConverterFromUnicodeArgs *pArgs, int32_t offsetIndex, UErrorCode *pErrorCode);
 
index c5e6aeb47e48d861e026b4d0ae0100ba4afe6d37..cb939911e47e4b5f12ce2936a19b3ad4a470a4cb 100644 (file)
@@ -9,7 +9,7 @@
 *
 *  ucnv_imp.h:
 *  Contains all internal and external data structure definitions
-* Created & Maitained by Bertrand A. Damiba
+* Created & Maintained by Bertrand A. Damiba
 *
 *
 *
index 4656a38561e7e902d3d7b9ffec0f29899a8d2e0f..6969727927e60b2b3c851b613bd52ef61a0da05f 100644 (file)
@@ -878,7 +878,7 @@ _LMBCSFromUnicode(UConverterFromUnicodeArgs*     args,
          A) The optimization group
          B) The locale group
          C) The last group that succeeded with this string.
-         D) every other group that's relevent (single or double)
+         D) every other group that's relevant (single or double)
          E) If its single-byte ambiguous, try the exceptions group
 
       4. And as a grand fallback: Unicode
@@ -1049,7 +1049,7 @@ _LMBCSFromUnicode(UConverterFromUnicodeArgs*     args,
          }
       }
   
-      /* we have a translation. increment source and write as much as posible to target */
+      /* we have a translation. increment source and write as much as possible to target */
       args->source++;
       pLMBCS = LMBCS;
       while (args->target < args->targetLimit && bytes_written--)
index 9f98914b9d734dd8bb1046bace2f5776596c7fca..bf6bd11dbacb7346230a64ba373cf636f3e7f7fc 100644 (file)
@@ -488,7 +488,7 @@ static const UConverterImpl _UTF32BEImpl = {
     NULL
 };
 
-/* The 1232 CCSID refers to any version of Unicode with any endianess of UTF-32 */
+/* The 1232 CCSID refers to any version of Unicode with any endianness of UTF-32 */
 static const UConverterStaticData _UTF32BEStaticData = {
     sizeof(UConverterStaticData),
     "UTF-32BE",
@@ -983,7 +983,7 @@ static const UConverterImpl _UTF32LEImpl = {
     NULL
 };
 
-/* The 1232 CCSID refers to any version of Unicode with any endianess of UTF-32 */
+/* The 1232 CCSID refers to any version of Unicode with any endianness of UTF-32 */
 static const UConverterStaticData _UTF32LEStaticData = {
     sizeof(UConverterStaticData),
     "UTF-32LE",
@@ -1230,7 +1230,7 @@ static const UConverterImpl _UTF32Impl = {
     NULL
 };
 
-/* The 1236 CCSID refers to any version of Unicode with a BOM sensitive endianess of UTF-32 */
+/* The 1236 CCSID refers to any version of Unicode with a BOM sensitive endianness of UTF-32 */
 static const UConverterStaticData _UTF32StaticData = {
     sizeof(UConverterStaticData),
     "UTF-32",
index b091447402746d2ecbdb9d85018394e246d725cb..f303e7e24fc92f22d2a20a9a9ae0984caa540113 100644 (file)
@@ -128,7 +128,7 @@ typedef struct {
     MaskEnum currentMaskToUnicode;      /* mask for current state in toUnicode */
     MaskEnum defMaskToUnicode;          /* mask for default state in toUnicode */
     UBool isFirstBuffer;                /* boolean for fromUnicode to see if we need to announce the first script */
-    UBool resetToDefaultToUnicode;      /* boolean for reseting to default delta and mask when a newline is encountered*/
+    UBool resetToDefaultToUnicode;      /* boolean for resetting to default delta and mask when a newline is encountered*/
     char name[sizeof(ISCII_CNV_PREFIX) + 1];
     UChar32 prevToUnicodeStatus;        /* Hold the previous toUnicodeStatus. This is necessary because we may need to know the last two code points. */
 } UConverterDataISCII;
@@ -1105,7 +1105,7 @@ getTrail:
 }
 
 static const uint16_t lookupTable[][2]={
-    { ZERO,       ZERO     },     /*DEFALT*/
+    { ZERO,       ZERO     },     /*DEFAULT*/
     { ZERO,       ZERO     },     /*ROMAN*/
     { DEVANAGARI, DEV_MASK },
     { BENGALI,    BNG_MASK },
@@ -1167,12 +1167,12 @@ static const uint16_t lookupTable[][2]={
  *  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
+ *  i)  Halant: if preceded by a halant then it is a explicit halant
  *  ii) Nukta :
- *       a) if preceeded by a halant then it is a soft halant
- *       b) if preceeded by specific consonants and the ligatures have pre-composed
+ *       a) if preceded by a halant then it is a soft halant
+ *       b) if preceded by specific consonants and the ligatures have pre-composed
  *          characters in Unicode then convert to pre-composed characters
- *  iii) Danda: If Danda is preceeded by a Danda then convert to Double Danda
+ *  iii) Danda: If Danda is preceded by a Danda then convert to Double Danda
  *
  */
 
@@ -1208,7 +1208,7 @@ UConverter_toUnicode_ISCII_OFFSETS_LOGIC(UConverterToUnicodeArgs *args, UErrorCo
         if (target < targetLimit) {
             sourceChar = (unsigned char)*(source)++;
 
-            /* look at the post-context preform special processing */
+            /* look at the post-context perform special processing */
             if (*contextCharToUnicode==ATR) {
 
                 /* If we have ATR in *contextCharToUnicode then we need to change our
index ca9b0a335ad1560f8ec896d05ebf6167628acda0..c02f336815ff34727ffac8d1c562dde2ce8eacaa 100644 (file)
@@ -4444,7 +4444,7 @@ getTrail:
                  * For EUC encodings that use only either 0x8e or 0x8f as the first
                  * byte of their longest byte sequences, the first two bytes in
                  * this third stage indicate with their 7th bits whether these bytes
-                 * are to be written directly or actually need to be preceeded by
+                 * are to be written directly or actually need to be preceded by
                  * one of the two Single-Shift codes. With this, the third stage
                  * stores one byte fewer per character than the actual maximum length of
                  * EUC byte sequences.
index 20bbd514889681e9eb604e661c77ff82b7e3fea1..f478d8094ff9e58aec81e30078becb9f38bd59c5 100644 (file)
@@ -287,7 +287,7 @@ myUCharsToChars(char* resultOfLen4, const UChar* currency) {
  * four integers.  The first is the fraction digits.  The second is the
  * rounding increment, or 0 if none.  The rounding increment is in
  * units of 10^(-fraction_digits).  The third and fourth are the same
- * except that they are those used in cash transations ( cashDigits
+ * except that they are those used in cash transactions ( cashDigits
  * and cashRounding ).
  */
 static const int32_t*
@@ -1312,7 +1312,7 @@ searchCurrencyName(const CurrencyNameStruct* currencyNames,
     // The 2nd round binary search search the second "B" in the text against
     // the 2nd char in currency names, and narrow the matching range to
     // "BB BBEX BBEXYZ" (and the maximum matching "BB").
-    // The 3rd round returnes the range as "BBEX BBEXYZ" (without changing
+    // The 3rd round returns the range as "BBEX BBEXYZ" (without changing
     // maximum matching).
     // The 4th round returns the same range (the maximum matching is "BBEX").
     // The 5th round returns no matching range.
index 67c7c36354030788b1dacbc54f49db43d78e094d..740f6c5a5ad13107ad5a3df474c12422a9b04e83 100644 (file)
@@ -320,7 +320,7 @@ _uhash_create(UHashFunction *keyHash,
  * Stop if it is identical or empty, otherwise continue by adding a
  * "jump" value (moduloing by the length again to keep it within
  * range) and retesting.  For efficiency, there need enough empty
- * values so that the searchs stop within a reasonable amount of time.
+ * values so that the searches stop within a reasonable amount of time.
  * This can be changed by changing the high/low water marks.
  *
  * In theory, this function can return NULL, if it is full (no empty
index 1b91da7a4dd5c0a7a472a02ca26bb26330f34f3e..0150e94cefdc1aad700f6d7f9ff789a3b5fa7e45 100644 (file)
@@ -2310,7 +2310,7 @@ ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* sta
         if (next & EXTV) {
             if (_isExtensionSubtag(pSubtag, subtagLen)) {
                 if (pExtValueSubtag == NULL) {
-                    /* if the start postion of this extension's value is not yet,
+                    /* if the start position of this extension's value is not yet,
                         this one is the first value subtag */
                     pExtValueSubtag = pSubtag;
                 }
index 4ed2b74b1014c794d6f11ffc8fa84d37fd1fdb60..205eaaa831665bdbd0e432824e7ea2f25799c62f 100644 (file)
@@ -194,7 +194,7 @@ private:
 
     /**
      * See if the decomposition of cp2 is at segment starting at segmentPos
-     * (with canonical rearrangment!)
+     * (with canonical rearrangement!)
      * If so, take the remainder, and return the equivalents
      */
     //Set extract(int comp, String segment, int segmentPos, StringBuffer buffer);
index 37738e277b567c60b1304264299e479e63bc1501..1cae05c376c7dcd0f6297936dfd7bf933e9720ab 100644 (file)
@@ -66,7 +66,7 @@ U_NAMESPACE_BEGIN
 
 /**
  * A class representing a collection of resource information pertaining to a given
- * locale. A resource bundle provides a way of accessing locale- specfic information in
+ * locale. A resource bundle provides a way of accessing locale- specific information in
  * a data file. You create a resource bundle that manages the resources for a given
  * locale and then ask it for individual resources.
  * <P>
index df72b4b7e84910bab8711644d614e80bb50f19ec..a153d550b856978a0a7ad34aade2569b81c89ffa 100644 (file)
@@ -149,7 +149,7 @@ public:
      * and handles the conversion.
      *
      * @param status the error code.
-     * @param resultLength a ponter to receive the length, can be NULL.
+     * @param resultLength a pointer to receive the length, can be NULL.
      * @return a pointer to the string, or NULL.
      *
      * @stable ICU 2.4 
index 5d784990f2cdcee34940785c34495ce5e7f80ba4..ddf2a961fe6f4f9ca842f8ab94f7fe61d0342b09 100644 (file)
@@ -1007,7 +1007,7 @@ ucnv_getUnicodeSet(const UConverter *cnv,
                    UErrorCode *pErrorCode);
 
 /**
- * Gets the current calback function used by the converter when an illegal
+ * Gets the current callback function used by the converter when an illegal
  *  or invalid codepage sequence is found.
  * Context pointers are always owned by the caller.
  *
@@ -2032,7 +2032,7 @@ ucnv_toUCountPending(const UConverter* cnv, UErrorCode* status);
  * fixed ratio of bytes to Unicode codes <i>units</i> for any particular Unicode encoding form.
  * false is returned with the UErrorCode if error occurs or cnv is NULL.
  * @param cnv       The converter to be tested
- * @param status    ICU error code in/out paramter
+ * @param status    ICU error code in/out parameter
  * @return true if the converter is fixed-width
  * @stable ICU 4.8
  */
index 7209ba5f7b85f46ec385fbe8ff00338aee957345..a13d01db099b37991d055a3206fa7741a1fb1078 100644 (file)
@@ -268,7 +268,7 @@ U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP (
 /**
  * DO NOT CALL THIS FUNCTION DIRECTLY!
  * This From Unicode callback skips any ILLEGAL_SEQUENCE, or
- * skips only UNASSINGED_SEQUENCE depending on the context parameter
+ * skips only UNASSIGNED_SEQUENCE depending on the context parameter
  * simply ignoring those characters. 
  *
  * @param context  The function currently recognizes the callback options:
@@ -330,31 +330,31 @@ U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE (
  *
  * @param context The function currently recognizes the callback options:
  *        <ul>
- *        <li>UCNV_ESCAPE_ICU: Substitues the  ILLEGAL SEQUENCE with the hexadecimal 
+ *        <li>UCNV_ESCAPE_ICU: Substitutes the  ILLEGAL SEQUENCE with the hexadecimal 
  *          representation in the format  %UXXXX, e.g. "%uFFFE%u00AC%uC8FE"). 
  *          In the Event the converter doesn't support the characters {%,U}[A-F][0-9], 
  *          it will  substitute  the illegal sequence with the substitution characters.
  *          Note that  codeUnit(32bit int eg: unit of a surrogate pair) is represented as
  *          %UD84D%UDC56</li>
- *        <li>UCNV_ESCAPE_JAVA: Substitues the  ILLEGAL SEQUENCE with the hexadecimal 
+ *        <li>UCNV_ESCAPE_JAVA: Substitutes the  ILLEGAL SEQUENCE with the hexadecimal 
  *          representation in the format  \\uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). 
  *          In the Event the converter doesn't support the characters {\,u}[A-F][0-9], 
  *          it will  substitute  the illegal sequence with the substitution characters.
  *          Note that  codeUnit(32bit int eg: unit of a surrogate pair) is represented as
  *          \\uD84D\\uDC56</li>
- *        <li>UCNV_ESCAPE_C: Substitues the  ILLEGAL SEQUENCE with the hexadecimal 
+ *        <li>UCNV_ESCAPE_C: Substitutes the  ILLEGAL SEQUENCE with the hexadecimal 
  *          representation in the format  \\uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). 
  *          In the Event the converter doesn't support the characters {\,u,U}[A-F][0-9], 
  *          it will  substitute  the illegal sequence with the substitution characters.
  *          Note that  codeUnit(32bit int eg: unit of a surrogate pair) is represented as
  *          \\U00023456</li>
- *        <li>UCNV_ESCAPE_XML_DEC: Substitues the  ILLEGAL SEQUENCE with the decimal 
+ *        <li>UCNV_ESCAPE_XML_DEC: Substitutes the  ILLEGAL SEQUENCE with the decimal 
  *          representation in the format \htmlonly&amp;#DDDDDDDD;, e.g. "&amp;#65534;&amp;#172;&amp;#51454;")\endhtmlonly. 
  *          In the Event the converter doesn't support the characters {&amp;,#}[0-9], 
  *          it will  substitute  the illegal sequence with the substitution characters.
  *          Note that  codeUnit(32bit int eg: unit of a surrogate pair) is represented as
  *          &amp;#144470; and Zero padding is ignored.</li>
- *        <li>UCNV_ESCAPE_XML_HEX:Substitues the  ILLEGAL SEQUENCE with the decimal 
+ *        <li>UCNV_ESCAPE_XML_HEX:Substitutes the  ILLEGAL SEQUENCE with the decimal 
  *          representation in the format \htmlonly&amp;#xXXXX; e.g. "&amp;#xFFFE;&amp;#x00AC;&amp;#xC8FE;")\endhtmlonly. 
  *          In the Event the converter doesn't support the characters {&,#,x}[0-9], 
  *          it will  substitute  the illegal sequence with the substitution characters.
@@ -383,7 +383,7 @@ U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE (
 /**
  * DO NOT CALL THIS FUNCTION DIRECTLY!
  * This To Unicode callback skips any ILLEGAL_SEQUENCE, or
- * skips only UNASSINGED_SEQUENCE depending on the context parameter
+ * skips only UNASSIGNED_SEQUENCE depending on the context parameter
  * simply ignoring those characters. 
  *
  * @param context  The function currently recognizes the callback options:
index 6caa849c42f5319a62bec395004b050c35e61d2c..22f764b169c54523fc190d7faab8d59bfddcc860 100644 (file)
@@ -362,7 +362,7 @@ udata_setCommonData(const void *data, UErrorCode *err);
  *
  *
  * Warning:  setAppData will set a U_USING_DEFAULT_WARNING code if
- *           data with the specifed path that has already been opened, or
+ *           data with the specified path that has already been opened, or
  *           if setAppData with the same path has already been called.
  *           Any such calls to setAppData will have no effect.
  *
index 85bd96495150d38e26aa5d602566bcdeb5e48a56..9ec22ace173da39a0b7eb30cca9718f76d431881 100644 (file)
@@ -1545,7 +1545,7 @@ public:
    * @param target the target buffer for extraction, can be NULL
    *               if targetLength is 0
    * @param targetCapacity the length of the target buffer
-   * @param inv Signature-distinguishing paramater, use US_INV.
+   * @param inv Signature-distinguishing parameter, use US_INV.
    * @return the output string length, not including the terminating NUL
    * @stable ICU 3.2
    */
@@ -3274,7 +3274,7 @@ public:
    * \endcode
    * @param src String using only invariant characters.
    * @param textLength Length of src, or -1 if NUL-terminated.
-   * @param inv Signature-distinguishing paramater, use US_INV.
+   * @param inv Signature-distinguishing parameter, use US_INV.
    *
    * @see US_INV
    * @stable ICU 3.2
index 3621230641c0ce4610d21bdfa408bd8ba5fcf775..e20fac4e97d53aa87b61794230e9a69022b80c3c 100644 (file)
@@ -719,7 +719,7 @@ uset_retainAll(USet* set, const USet* retain);
  * possible space, without changing this object's value.
  * A frozen set will not be modified.
  *
- * @param set the object on which to perfrom the compact
+ * @param set the object on which to perform the compact
  * @stable ICU 3.2
  */
 U_CAPI void U_EXPORT2
index 4102473a2124b8c58f6bca7d35ac7d7a5392af75..e8b25a18a2db1d69ce7a1eadc896d0e4b04dad14 100644 (file)
@@ -465,7 +465,7 @@ class U_COMMON_API UnifiedCache : public UnifiedCacheBase {
    /**
     * Register a primary cache entry. A primary key is the first key to create
     * a given  SharedObject value. Subsequent keys whose create function
-    * produce referneces to an already existing SharedObject are not primary -
+    * produce references to an already existing SharedObject are not primary -
     * they can be evicted and subsequently recreated.
     * 
     * On entry, gCacheMutex must be held.
index f038dedace3676539e4ec3acf317b334743da515..73d37daf9f8134f3af0f2a72e72a47f8b260742f 100644 (file)
@@ -328,7 +328,7 @@ ures_getVersionNumberInternal(const UResourceBundle *resourceBundle);
  * you to query for the real locale of the resource. For example, if you requested 
  * "en_US_CALIFORNIA" and only "en_US" bundle exists, "en_US" will be returned. 
  * For subresources, the locale where this resource comes from will be returned.
- * If fallback has occured, getLocale will reflect this.
+ * If fallback has occurred, getLocale will reflect this.
  *
  * This internal version avoids deprecated-warnings in ICU code.
  *
index 44899649d4c31516ebfbd4b6d889fff296ce6359..cd76990501ac728c4adbcf2d124051ff2cfe4c65 100644 (file)
@@ -33,7 +33,7 @@
  *
  * Scripts are chosen based on the <code>UScriptCode</code> enumeration.
  * No attempt is made to combine related scripts into a single run. In
- * particular, Hiragana, Katakana, and Han characters will appear in seperate
+ * particular, Hiragana, Katakana, and Han characters will appear in separate
  * runs.
 
  * Here is an example of how to iterate over script runs:
index c131fd91e13e1e8538e935e3aae960439da61393..871a5d8986f0506fe979c2c68fc8ab13acfc7347 100644 (file)
@@ -360,7 +360,7 @@ uset_getItem(const USet* uset, int32_t itemIndex,
  * therefore all BMP code points precede all supplementary code points.
  *
  * Store each supplementary code point in 2 16-bit units,
- * simply with higher-then-lower 16-bit halfs.
+ * simply with higher-then-lower 16-bit halves.
  *
  * Precede the entire list with the length.
  * If there are supplementary code points, then set bit 15 in the length
index 874ffc63a8b67fba39b6dbc541855aa6282bfeb5..41a1f56c773f5b3b201cb385fef8f4fab3e844a3 100644 (file)
@@ -282,8 +282,8 @@ loadData(UStringPrepProfile* profile,
         udata_close(dataMemory);
         return FALSE;
     }
-    if( normUniVer < sprepUniVer && /* the Unicode version of SPREP file must be less than the Unicode Vesion of the normalization data */
-        normUniVer < normCorrVer && /* the Unicode version of the NormalizationCorrections.txt file should be less than the Unicode Vesion of the normalization data */
+    if( normUniVer < sprepUniVer && /* the Unicode version of SPREP file must be less than the Unicode Version of the normalization data */
+        normUniVer < normCorrVer && /* the Unicode version of the NormalizationCorrections.txt file should be less than the Unicode Version of the normalization data */
         ((profile->indexes[_SPREP_OPTIONS] & _SPREP_NORMALIZATION_ON) > 0) /* normalization turned on*/
       ){
         *errorCode = U_INVALID_FORMAT_ERROR;
index bba2d45c4e8e5c643ffc69c76e4471f889892161..d7f63ec77fec0846430373a02dc72b2b9da8dcf8 100644 (file)
@@ -755,7 +755,7 @@ uprv_strCompare(const UChar *s1, int32_t length1,
             length2=u_strlen(s2);
         }
 
-        /* limit1=start1+min(lenght1, length2) */
+        /* limit1=start1+min(length1, length2) */
         if(length1<length2) {
             lengthResult=-1;
             limit1=start1+length1;
index ada83d5b751610133040887cde6f7a772dce67e3..ec79700ca8163674e9a4c62161afe478cc67996c 100644 (file)
@@ -1359,7 +1359,7 @@ fillReverse:
                 int32_t  sIx      = srcIx;  // ix of last byte of multi-byte u8 char
 
                 // Get the full character from the UTF8 string.
-                //   use code derived from tbe macros in utf8.h
+                //   use code derived from the macros in utf8.h
                 //   Leaves srcIx pointing at the first byte of the UTF-8 char.
                 //
                 c=utf8_prevCharSafeBody(s8, 0, &srcIx, c, -3);
@@ -1570,7 +1570,7 @@ utf8TextClone(UText *dest, const UText *src, UBool deep, UErrorCode *status)
     // For deep clones, make a copy of the string.
     //  The copied storage is owned by the newly created clone.
     //
-    // TODO:  There is an isssue with using utext_nativeLength().
+    // TODO:  There is an issue with using utext_nativeLength().
     //        That function is non-const in cases where the input was NUL terminated
     //          and the length has not yet been determined.
     //        This function (clone()) is const.
index b5fac383a2f68f0902b25b2770bcdec94d814a8f..a748d915d47ed85e88ff927db69f719ff6391750 100644 (file)
@@ -199,7 +199,7 @@ class U_COMMON_API ICU_Utility /* not : public UObject because all methods are s
      * position.  Return the identifier, or an empty string if there
      * is no identifier.
      * @param str the string to parse
-     * @param pos INPUT-OUPUT parameter.  On INPUT, pos is the
+     * @param pos INPUT-OUTPUT parameter.  On INPUT, pos is the
      * first character to examine.  It must be less than str.length(),
      * and it must not point to a whitespace character.  That is, must
      * have pos < str.length() and
index 95a112bc9122c37114d3aa30c355c67fe62f4a03..d6ae052214cc132d81239edb0b7871b791661d14 100644 (file)
@@ -135,7 +135,7 @@ int32_t ICU_Utility::parsePattern(const UnicodeString& rule, int32_t pos, int32_
  * position.  Return the identifier, or an empty string if there
  * is no identifier.
  * @param str the string to parse
- * @param pos INPUT-OUPUT parameter.  On INPUT, pos is the
+ * @param pos INPUT-OUTPUT parameter.  On INPUT, pos is the
  * first character to examine.  It must be less than str.length(),
  * and it must not point to a whitespace character.  That is, must
  * have pos < str.length().  On
index c981546594706ce188f6bcb62a95b277ad37e7af..300ee972c80894ac9e56d72f751ecd3933b982d4 100644 (file)
@@ -93,7 +93,7 @@ static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, i
     int32_t i;
     /* Check whether a start of line indenting is needed.  Three cases:
      *   1.  At the start of the first line  (output index == 0).
-     *   2.  At the start of subsequent lines  (preceeding char in buffer == '\n')
+     *   2.  At the start of subsequent lines  (preceding char in buffer == '\n')
      *   3.  When preflighting buffer len (buffer capacity is exceeded), when
      *       a \n is output.  Ideally we wouldn't do the indent until the following char
      *       is received, but that won't work because there's no place to remember that
@@ -369,13 +369,13 @@ utrace_vformat(char *outBuf, int32_t capacity, int32_t indent, const char *fmt,
         default:
             /* %. in format string, where . is some character not in the set
              *    of recognized format chars.  Just output it as if % wasn't there.
-             *    (Covers "%%" outputing a single '%')
+             *    (Covers "%%" outputting a single '%')
              */
              outputChar(fmtC, outBuf, &outIx, capacity, indent);
         }
     }
-    outputChar(0, outBuf, &outIx, capacity, indent);  /* Make sure that output is null terminated  */
-    return outIx + 1;     /* outIx + 1 because outIx does not increment when outputing final null. */
+    outputChar(0, outBuf, &outIx, capacity, indent);  /* Make sure that output is null terminated   */
+    return outIx + 1;     /* outIx + 1 because outIx does not increment when outputting final null. */
 }
 
 
index ebf31650c2fa81d39edfc9d219e347d11d27aea2..84a29b8d36a4311d3a9c1bada7d7655b04419006 100644 (file)
@@ -36,7 +36,7 @@
 
 U_NAMESPACE_BEGIN
 
-// Note these constants and the struct are only used when dealing with the fallback path for RDP sesssions.
+// Note these constants and the struct are only used when dealing with the fallback path for RDP sessions.
 
 // This is the location of the time zones in the registry on Vista+ systems.
 // See: https://docs.microsoft.com/windows/win32/api/timezoneapi/ns-timezoneapi-dynamic_time_zone_information
index f45133eddb5186839da59067906cb3b494b1b97e..d82863221b26952c8154c7297ee88ddeaadd36a4 100644 (file)
@@ -38,7 +38,7 @@ DISTY_DAT:=$(firstword $(wildcard data/out/tmp/icudt$(SO_TARGET_VERSION_MAJOR)*.
 
 DISTY_FILES_SRC=$(DISTY_FILE_TGZ) $(DISTY_FILE_ZIP)
 DISTY_FILES=$(DISTY_FILES_SRC) $(DISTY_DOC_ZIP)
-# colon-equals because we watn to run this once!
+# colon-equals because we want to run this once!
 EXCLUDES_FILE:=$(shell mktemp)
 
 $(DISTY_FILE_DIR):
index 31ac458d308010b06443fd0c0d962429317b62be..21d72350c789a6fc78117c3e8c69f9376a8c3487 100644 (file)
@@ -154,10 +154,10 @@ endif
 
 
 ## Dependency rules
-## This is a start to how depdendencies could work
+## This is a start to how dependencies could work
 # The commented out rules may not properly delete the file when ^C is pressed
 #   or the compiler fails.
-# make currently doesn't like rules with C:\\PROGRA~1\\.. in the depedency.
+# make currently doesn't like rules with C:\\PROGRA~1\\.. in the dependency.
 #   So system headers are ignored by ignoring \\
 %.d : $(srcdir)/%.c
        @echo "generating dependency information for $<"
index b1b8bf6d83b8b8f29377f1450df86c83d686f5a1..12927abe588c08443db44707dcbbe629b19f0198 100644 (file)
@@ -5,7 +5,7 @@
 ## Copyright (c) 2003-2004, International Business Machines Corporation and
 ## others. All Rights Reserved.
 ##
-## Original contributer: Jason Gordon from NCR
+## Original contributor: Jason Gordon from NCR
 
 ## Flags for position independent code
 SHAREDLIBCFLAGS = -K PIC
index 17f710ef3c948cf51c68a0a1a664ef03351b2681..6f50798ebf1cecdab11b6278d2655b9de55edaf1 100644 (file)
@@ -143,10 +143,10 @@ LDFLAGSICUTOOLUTIL=# Unused for now.
 
 
 ## Dependency rules
-## This is a start to how depdendencies could work
+## This is a start to how dependencies could work
 # The commented out rules may not properly delete the file when ^C is pressed
 #   or the compiler fails.
-# make currently doesn't like rules with C:\\PROGRA~1\\.. in the depedency.
+# make currently doesn't like rules with C:\\PROGRA~1\\.. in the dependency.
 #   So system headers are ignored by ignoring \\
 %.d : $(srcdir)/%.c
        @echo "generating dependency information for $<"
index 9bd3f9bf4c93f703784d252e483aef48458ea392..56edbeb7080583d67592859830b40b07c2fb6270 100644 (file)
@@ -80,7 +80,7 @@ ARFLAGS         = -cr
 ifeq (${OS390_XPLINK}, 1)
 #SH# if [ "x$OS390_XPLINK" = "x1" ]; then
 # These lines must be the last options specified.
-# GOFF is is the strategic object module format for S/390. It is required for XPLINK.
+# GOFF is the strategic object module format for S/390. It is required for XPLINK.
 # NOTEMPINC could be used if ICU starts using templates.
 ICU_XPLINK_C      = -Wc,'xplink(backchain,storeargs),goff'
 ICU_XPLINK_CXX    = -Wc,'xplink(backchain,storeargs),goff' -Wc,'NOTEMPINC'
index 627fffda44a6fdad4d38d7de27345351ec16ce8d..06840cd54b5cd5a99933349efd6575ff5a1620f5 100755 (executable)
@@ -6046,7 +6046,7 @@ done
    fi
 fi
 
-# Check for miscellanous functions.
+# Check for miscellaneous functions.
 # So, use for putil / tools only.
 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
 for ac_func in gettimeofday
@@ -6167,7 +6167,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 OLD_LIBS=${LIBS}
 
 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
-# and must do this before seaching for pthread_mutex_destroy, or
+# and must do this before searching for pthread_mutex_destroy, or
 # we will pick up libpthreads.so not libpthread.so
 # If this fails, then we must test for HPUX specials, before
 # moving on to a more generic test
@@ -7818,7 +7818,7 @@ fi
 
 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
 
-datapackaging_msg="(No explaination for mode $datapackaging.)"
+datapackaging_msg="(No explanation for mode $datapackaging.)"
 
 datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override."
 datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override."
index 425fdc7b8a546f557187536e00f05709d9c254e4..2331ac1ef6c9713dcce95b0d3660494295077aeb 100644 (file)
@@ -481,7 +481,7 @@ if test "$enable" = "yes"; then
    fi
 fi
 
-# Check for miscellanous functions.
+# Check for miscellaneous functions.
 # So, use for putil / tools only.
 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
 AC_CHECK_FUNCS([gettimeofday])
@@ -541,7 +541,7 @@ AC_LANG_POP([C++])
 OLD_LIBS=${LIBS}
 
 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
-# and must do this before seaching for pthread_mutex_destroy, or
+# and must do this before searching for pthread_mutex_destroy, or
 # we will pick up libpthreads.so not libpthread.so
 # If this fails, then we must test for HPUX specials, before
 # moving on to a more generic test
@@ -1190,7 +1190,7 @@ fi
 
 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
 
-datapackaging_msg="(No explaination for mode $datapackaging.)"
+datapackaging_msg="(No explanation for mode $datapackaging.)"
 
 datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override."
 datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override."
index f020bc82a881e7f2b1d69acd8924ff9dc490109c..454dec8a8c3d2e45d13ee987f7f959f078cae268 100644 (file)
@@ -143,7 +143,7 @@ check-local:
 ICUDATA_SOURCE_ARCHIVE = $(wildcard $(srcdir)/in/$(ICUDATA_PLATFORM_NAME).dat)
 ifeq ($(ICUDATA_SOURCE_ARCHIVE),)
 ICUDATA_ARCHIVE = $(firstword $(wildcard $(srcdir)/in/$(ICUDATA_BASENAME_VERSION)*.dat))
-# We don't have the data in the current endianess or charset.
+# We don't have the data in the current endianness or charset.
 # See if we can find data of any archive type,
 # and convert it to the current type.
 ifneq ($(ICUDATA_ARCHIVE),)
@@ -159,7 +159,7 @@ endif
 else
 ifneq ($(ENABLE_STATIC),YES)
 ifeq ($(PKGDATA_MODE),common)
-# We have a source data common archive in the native endianess,
+# We have a source data common archive in the native endianness,
 # and it's what we want to build. Try to not run any of ICU's tools.
 ICUDATA_SOURCE_IS_NATIVE_TARGET=YES
 endif
index 555f1a59dab4c51b84bbf7c93446f5f2f29e546d..f3b16ded6790a05346bcee737eab467af7d57bd3 100644 (file)
@@ -41,7 +41,7 @@ $T           = [\p{Grapheme_Cluster_Break = T}];
 $LV          = [\p{Grapheme_Cluster_Break = LV}];
 $LVT         = [\p{Grapheme_Cluster_Break = LVT}];
 
-# Emoji defintions
+# Emoji definitions
 
 $Extended_Pict = [:ExtPict:];
 
index 8766a1201156cc5d4eee54a65e35a747945f78d4..89ca5c756c80f397bc0d228f4bc6565279bfc5d0 100644 (file)
@@ -182,7 +182,7 @@ $GL $CM* .;
 
 
 
-# LB 13   Don't break before ']' or '!' or or '/', even after spaces.
+# LB 13   Don't break before ']' or '!' or '/', even after spaces.
 #
 $LB8NonBreaks $CL;
 $CAN_CM $CM*  $CL;
index 29890b239e8328bb730f89b3e0c0b5cd787ad6db..17a88ca96eca1730a87369e6bb5f79fb6f38cb11 100644 (file)
@@ -183,7 +183,7 @@ $GL $CM* .;
 
 
 
-# LB 13   Don't break before ']' or '!' or or '/', even after spaces.
+# LB 13   Don't break before ']' or '!' or '/', even after spaces.
 #
 $LB8NonBreaks $CL;
 $CAN_CM $CM*  $CL;
index 7feebd509a1dc533af6fa9124bb8a6b8c18f5fdb..acdcb425fc5b514fe24449b0946168b186a4276e 100644 (file)
@@ -189,7 +189,7 @@ $GL $CM* .;
 
 
 
-# LB 13   Don't break before ']' or '!' or or '/', even after spaces.
+# LB 13   Don't break before ']' or '!' or '/', even after spaces.
 #
 $LB8NonBreaks $CL;
 $CAN_CM $CM*  $CL;
index 60fb6d29df197ba24f2d3783f729c27ad9734497..23bf58f2f2b040eb388970f0d8bbd66be20611bb 100644 (file)
@@ -199,7 +199,7 @@ $GL $CM* .;
 
 
 
-# LB 13   Don't break before ']' or '!' or or '/', even after spaces.
+# LB 13   Don't break before ']' or '!' or '/', even after spaces.
 #
 # Do not include $EXX here
 $LB8NonBreaks $CL;
index c10fd353eecf611c579d3026144360f5835a740f..6fc45d55106686d0ad7c6b7a08c4528f2b65b372 100644 (file)
@@ -184,7 +184,7 @@ $GL $CM* .;
 
 
 
-# LB 13   Don't break before ']' or '!' or or '/', even after spaces.
+# LB 13   Don't break before ']' or '!' or '/', even after spaces.
 #
 $LB8NonBreaks $CL;
 $CAN_CM $CM*  $CL;
index 609eeacb0f6a5fcb201460a318587dca9bacbac3..7ec95999ab8386b70c5abac69b8b6bf117d9b9ae 100644 (file)
@@ -188,7 +188,7 @@ $GL $CM* .;
 
 
 
-# LB 13   Don't break before ']' or '!' or or '/', even after spaces.
+# LB 13   Don't break before ']' or '!' or '/', even after spaces.
 #
 $LB8NonBreaks $CL;
 $CAN_CM $CM*  $CL;
index f8f9ca34d83e5ac2f08bc12eabbe368401afb1e4..4aaa592a532e8439b9fa8fd2ccc08ad1ed9c2a3b 100644 (file)
@@ -657,7 +657,7 @@ java-euc_jp_linux-1.6_P { UTR22* }
 java-sjis_0213-1.6_P { UTR22* }
                         x-SJIS_0213 { JAVA* }
 
-# Here are various interpretations and extentions of Big5
+# Here are various interpretations and extensions of Big5
 ibm-1373_P100-2002 { UTR22* } # IBM's interpretation of Windows' Taiwan Big-5 without HKSCS extensions
                         ibm-1373 { IBM* }
                         windows-950 # Alternate mapping. Leave untagged. This is the IBM interpretation of a Windows codepage.
@@ -1091,7 +1091,7 @@ ibm-16684_P110-2003 { UTR22* }  ibm-16684 { IBM* } ibm-20780 { IBM } # DBCS Jis
 ibm-4899_P100-1998 { UTR22* }   ibm-4899 { IBM* }                   # Old EBCDIC Hebrew. Update of ibm-803
 ibm-4971_P100-1999 { UTR22* }   ibm-4971 { IBM* }                   # EBCDIC Greek. Update of ibm-875 and superceded by ibm-9067
 ibm-9067_X100-2005 { UTR22* }   ibm-9067 { IBM* }                   # EBCDIC Greek. Update of ibm-875 and ibm-4971
-ibm-12712_P100-1998 { UTR22* }  ibm-12712 { IBM* } ebcdic-he        # EBCDIC Hebrew (new sheqel, control charaters update). Update of ibm-424
+ibm-12712_P100-1998 { UTR22* }  ibm-12712 { IBM* } ebcdic-he        # EBCDIC Hebrew (new sheqel, control characters update). Update of ibm-424
 ibm-16804_X110-1999 { UTR22* }  ibm-16804 { IBM* } ebcdic-ar        # EBCDIC Arabic. Update of ibm-420
 
 java-Cp1399A-1.6_P { UTR22* }   x-IBM1399A { JAVA* }
index a0f7b5bde890bfce07879314ae8fd32dce19d31e..025a97a29f390b3038ed3c5f62f6e9bfced6fd13 100644 (file)
@@ -9,7 +9,7 @@
 :: NFD (NFC) ;
 # to do: make reversible
 # define special conversion characters.
-# varients of this could use different characters, or set one or the other to null.
+# variants of this could use different characters, or set one or the other to null.
 $pre = \↠;
 $post = \→ ;
 # Provide keyboard equivalents for common diacritics used in transliteration
index 573a21bf4d6ebf825bd113254a75ee7e427db8a3..0e6dcc86a73d4c3ebe7ee1b4b86511a3df85c01c 100644 (file)
@@ -37,7 +37,7 @@ $caron = \u030C;
 $afterLetter = [:L:] [\'$accent]* ;
 $beforeLetter = [\'$accent]* [:L:] ;
 # Fix punctuation
-# preserve orginal
+# preserve original
 \: â†” \: $under ;
 \? â†” \? $under ;
 \; â†” \? ;
index c0c2433f9a48d19b1b893d18f7dc42dcbcf32a9a..325047bf32e1a71d3fdf6b53945814045124919f 100644 (file)
@@ -12,7 +12,7 @@ $vowel = [ਅ-ਔ à¨¾-\u0A4D];
 $consonant = [ਕ-ਹ];
 \uE001→\u0A01;       # SIGN CHANDRABINDU
 #rules for BINDI
-# Anusvara is equivalent to BINDI when preceeded by a vowel
+# Anusvara is equivalent to BINDI when preceded by a vowel
 $vowel{\uE002→\u0A02; # SIGN ANUSVARA (\u0A02 = SIGN BINDI)
 # else is equivalent to TIPPI
 $consonant{\uE002→\u0A70; # SIGN TIPPI
index 9f5d2cfbc04ad47d41d43d266eeb8517d1dd138f..af1cb13c7883b16ab920a6d9eda33a8eeeddfb8a 100644 (file)
@@ -99,7 +99,7 @@ $om=\uE050; # OM
 $lm = \uE055;#  Telugu Length Mark
 $ailm=\uE056;#  AI Length Mark
 $aulm=\uE057;#  AU Length Mark
-#urdu compatibity forms
+#urdu compatibility forms
 $uka=\uE058;
 $ukha=\uE059;
 $ugha=\uE05A;
@@ -405,7 +405,7 @@ $wco} $x â†’ o\u0306\u0314;
 $wse} $x â†’ e\u0314;
 $wso} $x â†’ o\u0314;
 $om} $x â†’ ''om\u0314;
-# independent vowels when preceeded by vowels
+# independent vowels when preceded by vowels
 $vowels{$waa  â†’ ''a\u0304;
 $vowels{$wai  â†’ ''ai;
 $vowels{$wau  â†’ ''au;
index 8e7937a0a6ff73f2feb97a4cd76582e9b268cb1d..46721915da8dda80acaaeafa4e2bf1db71d66d04 100644 (file)
@@ -49,7 +49,7 @@
 #    after it. Continue with the rest of the consonants.
 # -- If there is one consonant, attach to the following vowel
 # -- If there are two consonants and a following vowel, attach one to the
-#    preceeding vowel, and one to the following vowel.
+#    preceding vowel, and one to the following vowel.
 # -- If there are more than two consonants, join the first two together if you
 #    can: L + G =→ LG
 # -- If you still end up with more than 2 consonants, insert EU after the
index ff09b5d604874cb4a5ab3883d3e2e37d0ec2157b..0081c180ab3e148934423da359bcf0826c113ec9 100644 (file)
@@ -100,7 +100,7 @@ $om = \uE050; # OM
 $lm = \uE055;#  Telugu Length Mark
 $ailm=\uE056;#  AI Length Mark
 $aulm=\uE057;#  AU Length Mark
-#urdu compatibity forms
+#urdu compatibility forms
 $uka=\uE058;
 $ukha=\uE059;
 $ugha=\uE05A;
@@ -180,7 +180,7 @@ x→$ka$virama$sa;
 \u0314o\u0306→$co;
 \u0314e→$se;
 \u0314o→$so;
-# preceeded by consonants
+# preceded by consonants
 $consonants{ a\u0304→$aa;
 $consonants{ ai→$ai;
 $consonants{ au→$au;
index 011b8d7760bf6ec05fd51dac8f3be9d0d5964f5e..480ed56a8d8ff657f86a54dacea47df492930fab 100644 (file)
@@ -567,7 +567,7 @@ $LABIALIZABLE_BEFORE_A = [p{pʼ}t{tʼ} {t\u0361ʃ}{t\u0361ʃʼ}{d\u0361Ê’}{d\u03
 á¦ â†’ ' ';  # U+1366 ETHIOPIC PREFACE COLON
 á§ â†’ ' ';  # U+1367 ETHIOPIC QUESTION MARK
 á¨ â†’ ' ';  # U+1368 ETHIOPIC PARAGRAPH SEPARATOR
-# Likewise, Ethiopic numberals cannot be pronounced by these rules,
+# Likewise, Ethiopic numerals cannot be pronounced by these rules,
 # so we replace them by whitespace in the output IPA notation.
 # Applications will typically pre-process text before calling
 # the am â†’ am_FONIPA transform.
index 17afc485a37b31998c0d4e74b6d48388977a42a3..276079b98d29eaf936ff94ee0c14b966c445ee01 100644 (file)
@@ -228,7 +228,7 @@ $bulgarian { [Ъъ]  } $wordBoundary > ;
 Ñ£ â†’ ye ; # CYRILLIC SMALL LETTER YAT
 #
 #
-# Alternative rule where appropriate for local pronounciation. To apply
+# Alternative rule where appropriate for local pronunciation. To apply
 # uncomment the following by removing the '#' mark at the start of the
 # line and insert before the three rule lines above.
 #
index 40ae8000e4c1b8f1c354e6ddfc94944cf936240b..4d0e65ed96f4ad7df757aa12b3810690151bce54 100644 (file)
@@ -6,7 +6,7 @@
 # Generated from CLDR
 #
 
-# Tranformation from Czech to Czech in IPA transcription (cs_FONIPA).
+# Transformation from Czech to Czech in IPA transcription (cs_FONIPA).
 # The transcription is not fully phonemic since we mark allophonic variations
 # of /m/, /n/, /x/ and /ɦ/.
 #
index dfc33bef8e46e6b73fc05a9218223992ca129609..3c99ce7086deb38388cf9f39c115be384b104b1a 100644 (file)
@@ -6,7 +6,7 @@
 # Generated from CLDR
 #
 
-# Tranforms Spanish to Mandarin Chinese. The input Spanish string must be in
+# Transforms Spanish to Mandarin Chinese. The input Spanish string must be in
 # phonemic IPA transcription (es_FONIPA); the output is in Simplified Chinese.
 $word_boundary = [-\ $];
 $vowel = [aeijouw];       # Vowels and glides
@@ -504,7 +504,7 @@ xwe â†’ èƒ¡åŸƒ ;
 xwi â†’ æƒ  ;
 xwo â†’ éœ ;
 x â†’ èµ« ;
-# å°” simplification pass.  The idea is to drop most occurences of å°”
+# å°” simplification pass.  The idea is to drop most occurrences of å°”
 # corresponding to <r> (not to <l> or <ll>) from a word if there is another /l/
 # sound nearby.  There is a vague pattern like this in the data, but the details
 # remain to be determined.  At the moment, this does nothing, it just puts å°” in
index a78c59f0c60555b8831c9eff0baef3c2d06feafd..4114f9ec927bd6a61a08fbddb008b1d6a2af2048 100644 (file)
@@ -6,7 +6,7 @@
 # Generated from CLDR
 #
 
-# Tranformation from Spanish to Spanish in IPA transcription (es_FONIPA).
+# Transformation from Spanish to Spanish in IPA transcription (es_FONIPA).
 # Not fully phonemic, since we mark up allophonic variants of voiced stops,
 # e.g. we break down /b/ into [b] and [β].
 #
index 08ecffcc07d58aae97af2ad2a0bb1676cfdfbe3f..017bdebb58f6006ebebb7ca207de75c20dd768bb 100644 (file)
@@ -255,7 +255,7 @@ z â†’ ãƒ„;
 #
 # Latin hyphen should be transliterated to U+30A0 (KATAKANA-HIRAGANA
 # DOUBLE HYPHEN), ideally. But since the character isn't supported by
-# many fonts or softwares, we use U+FF1D (FULLWIDTH EQUALS SIGN),
+# many fonts or software, we use U+FF1D (FULLWIDTH EQUALS SIGN),
 # which is widely used as "double hyphen".
 #
 \- â†’ ï¼;
index b1316179b7f8ac85df5804fd93128039dd4a6e19..c320834ae8f7a1db8188b0cfaf8b4005bd06c40a 100644 (file)
@@ -59,7 +59,7 @@ $inword = [[:L:][:M:]];
 # Some online texts use U+1C7C PHAARKAA instead of U+1C7B RELAA for indicating
 # long phonemes, presumably because the graphemes look similar in some fonts.
 # Since phaarkaa is used for voicing ejectives and plosives (which cannot
-# be lenghtened), we rewrite phaarkaa to relaa.
+# be lengthened), we rewrite phaarkaa to relaa.
 [ᱚᱟᱤᱩᱮᱳᱶᱢá±á±žá±±] [ᱹᱸᱺ]* {á±¼} â†’ á±» ;
 ::null();
 á±šá±¹á±» â†’ É”Ë ;
index 785479fc5aa179d6277bb7daee3f3c826510b968..3ed0252a43bdfe0c01031c5b3e66c817b37433e2 100644 (file)
@@ -106,7 +106,7 @@ root
 
   U_USING_FALLBACK_ERROR       { "Using fallback data" }
   U_USING_DEFAULT_ERROR        { "Using default data" }
-  U_ZERO_ERROR                 { "No error has occured" }
+  U_ZERO_ERROR                 { "No error has occurred" }
   U_ILLEGAL_ARGUMENT_ERROR     { "Illegal argument" }
   U_MISSING_RESOURCE_ERROR     { "A resource was missing" }
   U_INVALID_FORMAT_ERROR       { "Invalid format" }
index f17b6db91288d11227d1d1977607f4bf7cf41ed9..f6e494de920fb0498e88d62468fb7105f8091396 100644 (file)
@@ -379,7 +379,7 @@ double CalendarAstronomer::getJulianCentury() {
  */
 double CalendarAstronomer::getGreenwichSidereal() {
     if (isINVALID(siderealTime)) {
-        // See page 86 of "Practial Astronomy with your Calculator",
+        // See page 86 of "Practical Astronomy with your Calculator",
         // by Peter Duffet-Smith, for details on the algorithm.
 
         double UT = normalize(fTime/(double)HOUR_MS, 24.);
@@ -460,7 +460,7 @@ CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(Calenda
  */
 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equatorial& result, double eclipLong, double eclipLat)
 {
-    // See page 42 of "Practial Astronomy with your Calculator",
+    // See page 42 of "Practical Astronomy with your Calculator",
     // by Peter Duffet-Smith, for details on the algorithm.
 
     double obliq = eclipticObliquity();
@@ -623,7 +623,7 @@ static double trueAnomaly(double meanAnomaly, double eccentricity)
  */
 double CalendarAstronomer::getSunLongitude()
 {
-    // See page 86 of "Practial Astronomy with your Calculator",
+    // See page 86 of "Practical Astronomy with your Calculator",
     // by Peter Duffet-Smith, for details on the algorithm.
 
     if (isINVALID(sunLongitude)) {
@@ -637,7 +637,7 @@ double CalendarAstronomer::getSunLongitude()
  */
 /*public*/ void CalendarAstronomer::getSunLongitude(double jDay, double &longitude, double &meanAnomaly)
 {
-    // See page 86 of "Practial Astronomy with your Calculator",
+    // See page 86 of "Practical Astronomy with your Calculator",
     // by Peter Duffet-Smith, for details on the algorithm.
 
     double day = jDay - JD_EPOCH;       // Days since epoch
@@ -1066,7 +1066,7 @@ UDate CalendarAstronomer::getSunRiseSet(UBool rise)
 const CalendarAstronomer::Equatorial& CalendarAstronomer::getMoonPosition()
 {
     //
-    // See page 142 of "Practial Astronomy with your Calculator",
+    // See page 142 of "Practical Astronomy with your Calculator",
     // by Peter Duffet-Smith, for details on the algorithm.
     //
     if (moonPositionSet == FALSE) {
@@ -1154,7 +1154,7 @@ const CalendarAstronomer::Equatorial& CalendarAstronomer::getMoonPosition()
  * @deprecated ICU 2.4. This class may be removed or modified.
  */
 double CalendarAstronomer::getMoonAge() {
-    // See page 147 of "Practial Astronomy with your Calculator",
+    // See page 147 of "Practical Astronomy with your Calculator",
     // by Peter Duffet-Smith, for details on the algorithm.
     //
     // Force the moon's position to be calculated.  We're going to use
@@ -1181,7 +1181,7 @@ double CalendarAstronomer::getMoonAge() {
  * @deprecated ICU 2.4. This class may be removed or modified.
  */
 double CalendarAstronomer::getMoonPhase() {
-    // See page 147 of "Practial Astronomy with your Calculator",
+    // See page 147 of "Practical Astronomy with your Calculator",
     // by Peter Duffet-Smith, for details on the algorithm.
     return 0.5 * (1 - cos(getMoonAge()));
 }
@@ -1239,8 +1239,8 @@ MoonTimeAngleFunc::~MoonTimeAngleFunc() {}
  * longitude will have the desired value.
  * <p>
  * @param desired   The desired longitude.
- * @param next      <tt>true</tt> if the next occurrance of the phase
- *                  is desired, <tt>false</tt> for the previous occurrance.
+ * @param next      <tt>true</tt> if the next occurrence of the phase
+ *                  is desired, <tt>false</tt> for the previous occurrence.
  * @internal
  * @deprecated ICU 2.4. This class may be removed or modified.
  */
@@ -1259,8 +1259,8 @@ UDate CalendarAstronomer::getMoonTime(double desired, UBool next)
  * desired phase.
  * <p>
  * @param desired   The desired phase of the moon.
- * @param next      <tt>true</tt> if the next occurrance of the phase
- *                  is desired, <tt>false</tt> for the previous occurrance.
+ * @param next      <tt>true</tt> if the next occurrence of the phase
+ *                  is desired, <tt>false</tt> for the previous occurrence.
  * @internal
  * @deprecated ICU 2.4. This class may be removed or modified.
  */
index a2464890056c3ece84f2ff78028cb9263957e40d..372a79ac6714cc0135c952bfbd61dbe907d9123b 100644 (file)
@@ -626,8 +626,8 @@ public:
    * longitude will have the desired value.
    * <p>
    * @param desired   The desired longitude.
-   * @param next      <tt>true</tt> if the next occurrance of the phase
-   *                  is desired, <tt>false</tt> for the previous occurrance.
+   * @param next      <tt>true</tt> if the next occurrence of the phase
+   *                  is desired, <tt>false</tt> for the previous occurrence.
    * @internal
    */
   UDate getMoonTime(double desired, UBool next);
index 46b0e345dae97d559241a1237576db3e50070e94..f0ec8407db2c05e0e594d54575edff8240e810fd 100644 (file)
@@ -106,7 +106,7 @@ void BreakTransliterator::handleTransliterate(Replaceable& text, UTransPosition&
         int32_t boundary;
         for(boundary = bi->next(); boundary != UBRK_DONE && boundary < offsets.limit; boundary = bi->next()) {
             if (boundary == 0) continue;
-            // HACK: Check to see that preceeding item was a letter
+            // HACK: Check to see that preceding item was a letter
 
             UChar32 cp = sText.char32At(boundary-1);
             int type = u_charType(cp);
index 9b1ed9fac21f6dd3e4640ffdf35ce704d48c9636..ef3af277b237ad300d9a99ca942d6887a94c13a7 100644 (file)
@@ -3083,7 +3083,7 @@ void Calendar::computeTime(UErrorCode& status) {
 }
 
 /**
- * Find the previous zone transtion near the given time.
+ * Find the previous zone transition near the given time.
  */
 UBool Calendar::getImmediatePreviousZoneTransition(UDate base, UDate *transitionTime, UErrorCode& status) const {
     BasicTimeZone *btz = getBasicTimeZone();
@@ -3197,7 +3197,7 @@ int32_t Calendar::computeZoneOffset(double millis, double millisInDay, UErrorCod
             // recalculate offsets from the resolved time (non-wall).
             // When the given wall time falls into skipped wall time,
             // the offsets will be based on the zone offsets AFTER
-            // the transition (which means, earliest possibe interpretation).
+            // the transition (which means, earliest possible interpretation).
             UDate tgmt = wall - (rawOffset + dstOffset);
             tz.getOffset(tgmt, FALSE, rawOffset, dstOffset, ec);
         }
index 64d3ab4d2bfe734842a6896cc775130648ba156b..79d3cdf42ba3d6fa3056447863e9e3425eb5a36f 100644 (file)
@@ -99,7 +99,7 @@ int32_t CollationElementIterator::getOffset() const
 /**
 * Get the ordering priority of the next character in the string.
 * @return the next character's ordering. Returns NULLORDER if an error has 
-*         occured or if the end of string has been reached
+*         occurred or if the end of string has been reached
 */
 int32_t CollationElementIterator::next(UErrorCode& status)
 {
@@ -162,7 +162,7 @@ UBool CollationElementIterator::operator==(
 * Get the ordering priority of the previous collation element in the string.
 * @param status the error code status.
 * @return the previous element's ordering. Returns NULLORDER if an error has 
-*         occured or if the start of string has been reached.
+*         occurred or if the start of string has been reached.
 */
 int32_t CollationElementIterator::previous(UErrorCode& status)
 {
index babb3084302ffb98384dae77449a8d95cd9b760c..84f0776542d896869fcaa83e545b04b2f54a4383 100644 (file)
@@ -385,7 +385,7 @@ enumNext(UEnumeration *en, int32_t *resultLength, UErrorCode * /*status*/) {
             // ucsdet_getDetectableCharsets
             UBool *enabledArray = ((Context *)en->context)->enabledRecognizers;
             if (enabledArray != NULL) {
-                // custome set
+                // custom set
                 while (currName == NULL && ((Context *)en->context)->currIndex < fCSRecognizers_size) {
                     if (enabledArray[((Context *)en->context)->currIndex]) {
                         currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
index ff26e5e9116bef0a238b76b6dde53e3706527f94..e064c426a2a26ce71d01d459e9567cf96112d857 100644 (file)
@@ -83,7 +83,7 @@ scanInput:
     }
 
     //
-    // Initial quality is based on relative proportion of recongized vs.
+    // Initial quality is based on relative proportion of recognized vs.
     //   unrecognized escape sequences. 
     //   All good:  quality = 100;
     //   half or less good: quality = 0;
index eb2d63570c2e123e7206ecaafdb80aa17e2d696c..6b2ca98516b87feba24fde0b61a4b5b949f35e74 100644 (file)
@@ -209,7 +209,7 @@ int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars
     }
 
     if (commonChars == 0) {
-        // We have no statistics on frequently occuring characters.
+        // We have no statistics on frequently occurring characters.
         //  Assess confidence purely on having a reasonable number of
         //  multi-byte characters (the more the better)
         confidence = 30 + doubleByteCharCount - 20*badCharCount;
@@ -219,7 +219,7 @@ int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars
         }
     } else {
         //
-        // Frequency of occurence statistics exist.
+        // Frequency of occurrence statistics exist.
         //
 
         double maxVal = log((double)doubleByteCharCount / 4); /*(float)?*/
index abbca08625379087afd7435417a44e500fab560d..480dae1400cdf55c292aac451459f0ee1512cd37 100644 (file)
@@ -144,7 +144,7 @@ UBool CharsetRecog_UTF_32::match(InputText* textIn, CharsetMatch *results) const
     }
 
 
-    // Cook up some sort of confidence score, based on presense of a BOM
+    // Cook up some sort of confidence score, based on presence of a BOM
     //    and the existence of valid and/or invalid multi-byte sequences.
     if (hasBOM && numInvalid==0) {
         confidence = 100;
index 15418bfe65fc06d1741ab4648dd325875ef85d1e..f5fe8ae1232a94cfbfe2640473675c0eb5c92ce1 100644 (file)
@@ -221,7 +221,7 @@ struct DecFmtSymDataSink : public ResourceSink {
     // Destination for data, modified via setters.
     DecimalFormatSymbols& dfs;
     // Boolean array of whether or not we have seen a particular symbol yet.
-    // Can't simpy check fSymbols because it is pre-populated with defaults.
+    // Can't simply check fSymbols because it is pre-populated with defaults.
     UBool seenSymbol[DecimalFormatSymbols::kFormatSymbolCount];
 
     // Constructor/Destructor
index a7ee057e540bf893add1f8e276d74395953ddfd4..71477d8202cbeddea2c7a7e9ba2b5980db7c0809 100644 (file)
@@ -3776,7 +3776,7 @@ static void decToString(const decNumber *dn, char *string, Flag eng) {
 
   /* Finally add the E-part, if needed.  It will never be 0, has a
      base maximum and minimum of +999999999 through -999999999, but
-     could range down to -1999999998 for anormal numbers */
+     could range down to -1999999998 for abnormal numbers */
   if (e!=0) {
     Flag had=0;               /* 1=had non-zero  */
     *c='E'; c++;
@@ -5616,7 +5616,7 @@ static const uShort LNnn[90]={9016,  8652,  8316,  8008,  7724,  7456,  7208,
 /*    would certainly save at least one if it were made ten times     */
 /*    bigger, too (for truncated fractions 0.100 through 0.999).      */
 /*    However, for most practical evaluations, at least four or five  */
-/*    iterations will be neede -- so this would only speed up by      */
+/*    iterations will be needed -- so this would only speed up by      */
 /*    20-25% and that probably does not justify increasing the table  */
 /*    size.                                                           */
 /*                                                                    */
index 372e17dc7bd63832e7ef444f331fb9782dac0868..638e9cb0469750c87477d603c6b3e2b3341419ec 100644 (file)
@@ -290,7 +290,7 @@ static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
 
 // Let v = numerator / denominator < 10.
 // Then we generate 'count' digits of d = x.xxxxx... (without the decimal point)
-// from left to right. Once 'count' digits have been produced we decide wether
+// from left to right. Once 'count' digits have been produced we decide whether
 // to round up or down. Remainders of exactly .5 round upwards. Numbers such
 // as 9.999999 propagate a carry all the way, and change the
 // exponent (decimal_point), when rounding upwards.
index 73ff48f109ecd5c20888a379b28032e7f0e26bec..1fae2e87715a45ab1fb14506659de8bf5e5134d2 100644 (file)
@@ -138,7 +138,7 @@ class DoubleToStringConverter {
   // Example with max_leading_padding_zeroes_in_precision_mode = 6.
   //   ToPrecision(0.0000012345, 2) -> "0.0000012"
   //   ToPrecision(0.00000012345, 2) -> "1.2e-7"
-  // Similarily the converter may add up to
+  // Similarly the converter may add up to
   // max_trailing_padding_zeroes_in_precision_mode in precision mode to avoid
   // returning an exponential representation. A zero added by the
   // EMIT_TRAILING_ZERO_AFTER_POINT flag is counted for this limit.
@@ -196,7 +196,7 @@ class DoubleToStringConverter {
   // Example with decimal_in_shortest_low = -6,
   //              decimal_in_shortest_high = 21,
   //              EMIT_POSITIVE_EXPONENT_SIGN activated, and
-  //              EMIT_TRAILING_DECIMAL_POINT deactived:
+  //              EMIT_TRAILING_DECIMAL_POINT deactivated:
   //   ToShortest(0.000001)  -> "0.000001"
   //   ToShortest(0.0000001) -> "1e-7"
   //   ToShortest(111111111111111111111.0)  -> "111111111111111110000"
@@ -320,7 +320,7 @@ class DoubleToStringConverter {
   // Example with max_leading_padding_zeroes_in_precision_mode = 6.
   //   ToPrecision(0.0000012345, 2) -> "0.0000012"
   //   ToPrecision(0.00000012345, 2) -> "1.2e-7"
-  // Similarily the converter may add up to
+  // Similarly the converter may add up to
   // max_trailing_padding_zeroes_in_precision_mode in precision mode to avoid
   // returning an exponential representation. A zero added by the
   // EMIT_TRAILING_ZERO_AFTER_POINT flag is counted for this limit.
index 9eeaa2e40fc73c0390f81e5471a144a52274ba77..eea8203281a26dbaa7fbb1eae51297e0561f8583 100644 (file)
@@ -566,7 +566,7 @@ float StrtofTrimmed(Vector<const char> trimmed, int exponent) {
   //    low-precision (3 digits):
   //       when read from input: 123
   //       when rounded from high precision: 124.
-  // To do this we simply look at the neigbors of the correct result and see
+  // To do this we simply look at the neighbors of the correct result and see
   // if they would round to the same float. If the guess is not correct we have
   // to look at four values (since two different doubles could be the correct
   // double).
index 937cf7036bc51f34e0f1da5af2c70319397c2c4b..ebefc1489c2962ca6d488dec6ca5f60d7e60f01c 100644 (file)
@@ -2103,7 +2103,7 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
 
     if (U_FAILURE(status)) return;
 
-    // Create a CalendarDataSink to process this data and the resouce bundles
+    // Create a CalendarDataSink to process this data and the resource bundles
     CalendarDataSink calendarSink(status);
     UResourceBundle *rb = ures_open(NULL, locale.getBaseName(), &status);
     UResourceBundle *cb = ures_getByKey(rb, gCalendarTag, NULL, &status);
index ea27246f16e40ff42e7153aff8bd17c176e749c4..22ffcdd3997d27fe100f95855e64b7a58ee33a5a 100644 (file)
@@ -177,7 +177,7 @@ Formattable::Formattable(const UnicodeString& stringToCopy)
 
 // -------------------------------------
 // Creates a formattable object with a UnicodeString* value.
-// (adopting symantics)
+// (adopting semantics)
 
 Formattable::Formattable(UnicodeString* stringToAdopt)
 {
index a010defff93c4095be424e4cfd5fe339b6703631..a3a3c539a4f58804e2a5f4e9ee28b265c2c8f6e2 100644 (file)
@@ -167,7 +167,7 @@ Format::operator==(const Format& that) const
  * Simple function for initializing a UParseError from a UnicodeString.
  *
  * @param pattern The pattern to copy into the parseError
- * @param pos The position in pattern where the error occured
+ * @param pos The position in pattern where the error occurred
  * @param parseError The UParseError object to fill in
  * @draft ICU 2.4
  */
index b370f14f2ac4ff0873e5614376ae51fe0232b02d..734078644b88efd47b47a58e97fee5bd06afb4f8 100644 (file)
@@ -277,7 +277,7 @@ int32_t FormattedStringBuilder::prepareForInsertHelper(int32_t index, int32_t co
     Field *oldFields = getFieldPtr();
     if (fLength + count > oldCapacity) {
         if ((fLength + count) > INT32_MAX / 2) {
-            // If we continue, then newCapacity will overlow int32_t in the next line.
+            // If we continue, then newCapacity will overflow int32_t in the next line.
             status = U_INPUT_TOO_LONG_ERROR;
             return -1;
         }
index c49d32d3a317de818b6112b292c4a1dce648d2fb..b1a5bc22c22d2827bacf55a7e682ad10997853d9 100644 (file)
@@ -214,7 +214,7 @@ class Grego {
      * @param dom output parameter to receive day-of-month (1-based)
      * @param dow output parameter to receive day-of-week (1-based, 1==Sun)
      * @param doy output parameter to receive day-of-year (1-based)
-     * @param mid output parameter to recieve millis-in-day
+     * @param mid output parameter to receive millis-in-day
      */
     static void timeToFields(UDate time, int32_t& year, int32_t& month,
                             int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
index 2d4f8a388af6126f69bae095dc84c7158f2b38aa..fa4939e8f4f1aee57207b4104058253f94770f66 100644 (file)
@@ -141,7 +141,7 @@ void InputText::MungeInput(UBool fStripTags) {
     }
 
     //
-    // Tally up the byte occurence statistics.
+    // Tally up the byte occurrence statistics.
     // These are available for use by the various detectors.
     //
 
index 8edc561fc64bcc4dadf7c410b520a54773059461..fb92dc06343afa2694dd80ec499603985d1fe310 100644 (file)
@@ -44,7 +44,7 @@ public:
     int32_t     fInputLen;          // Length of the byte data in fInputBytes.
     // byte frequency statistics for the input text.
     //   Value is percent, not absolute.
-    //   Value is rounded up, so zero really means zero occurences. 
+    //   Value is rounded up, so zero really means zero occurrences. 
     int16_t  *fByteStats;
     UBool     fC1Bytes;          // True if any bytes in the range 0x80 - 0x9F are in the input;false by default
     char     *fDeclaredEncoding;
index d2631776e83bb0afd1365acbce6081c16937832e..0f6b0793070c378b1ed43cfd6bb20b465124fd31 100644 (file)
@@ -637,7 +637,7 @@ MessageFormat::adoptFormats(Format** newFormats,
 
 // -------------------------------------
 // Sets the new formats array and updates the array count.
-// This MessageFormat instance maks a copy of the new formats.
+// This MessageFormat instance makes a copy of the new formats.
 
 void
 MessageFormat::setFormats(const Format** newFormats,
index 25ea6dcc1bd39d97286251fb081c29a5b7b9d7e7..beb1de86897e7db2f774db67788504123e719528 100644 (file)
@@ -762,7 +762,7 @@ NFRuleSet::parse(const UnicodeString& text, ParsePosition& pos, double upperBoun
 #ifdef RBNF_DEBUG
     fprintf(stderr, "<nfrs> exit\n");
 #endif
-    // finally, update the parse postion we were passed to point to the
+    // finally, update the parse position we were passed to point to the
     // first character we didn't use, and return the result that
     // corresponds to that string of characters
     pos = highWaterMark;
index e3d1fc144fa9b4b7c4cd522a862d003b04b0a276..dcbf7a0e919667ce9e25e6067a600357c03b74c2 100644 (file)
@@ -845,7 +845,7 @@ ModulusSubstitution::ModulusSubstitution(int32_t _pos,
   }
 
   if (0 == description.compare(gGreaterGreaterGreaterThan, 3)) {
-    // the >>> token doesn't alter how this substituion calculates the
+    // the >>> token doesn't alter how this substitution calculates the
     // values it uses for formatting and parsing, but it changes
     // what's done with that value after it's obtained: >>> short-
     // circuits the rule-search process and goes straight to the
index 5ab680e6d734e762647746f7551255672a4e5532..45bef61a9cbe6ffbcbfa47a71f35db1bd271c878 100644 (file)
@@ -136,7 +136,7 @@ class U_I18N_API DecimalQuantity : public IFixedDecimal, public UMemory {
      * this method with delta=-3 will change the value to "1.23456".
      *
      * @param delta The number of magnitudes of ten to change by.
-     * @return true if integer overflow occured; false otherwise.
+     * @return true if integer overflow occurred; false otherwise.
      */
     bool adjustMagnitude(int32_t delta);
 
index 30481ce5bf0110099b656ab6e1cbcd97c3db27f8..8b2233c0556163bfa9d96d0ff06fc9f18166226c 100644 (file)
@@ -21,7 +21,7 @@ char kRawDefaultProperties[sizeof(DecimalFormatProperties)];
 icu::UInitOnce gDefaultPropertiesInitOnce = U_INITONCE_INITIALIZER;
 
 void U_CALLCONV initDefaultProperties(UErrorCode&) {
-    // can't fail, uses placement new into staticly allocated space.
+    // can't fail, uses placement new into statically allocated space.
     new(kRawDefaultProperties) DecimalFormatProperties(); // set to the default instance
 }
 
index bca55e010317dc8e89a4ece75f40a32edd7b7e51..06949989d7fbcd669184f6fd46dd7cdbd6d9eff0 100644 (file)
@@ -44,7 +44,7 @@ class LongNameHandler : public MicroPropsGenerator, public ModifierStore, public
      *
      * Mixed units are not supported, use MixedUnitLongNameHandler::forMeasureUnit.
      *
-     * This function uses a fillIn intead of returning a pointer, because we
+     * This function uses a fillIn instead of returning a pointer, because we
      * want to fill in instances in a MemoryPool (which cannot adopt pointers it
      * didn't create itself).
      *
@@ -139,7 +139,7 @@ class MixedUnitLongNameHandler : public MicroPropsGenerator, public ModifierStor
      * Construct a localized MixedUnitLongNameHandler for the specified
      * MeasureUnit. It must be a MIXED unit.
      *
-     * This function uses a fillIn intead of returning a pointer, because we
+     * This function uses a fillIn instead of returning a pointer, because we
      * want to fill in instances in a MemoryPool (which cannot adopt pointers it
      * didn't create itself).
      *
index 375254310ca0564f412fdc8bd2e8bf2e65ed3ef0..09af3f48813c88091146d5ad7012495c5232104b 100644 (file)
@@ -273,7 +273,7 @@ class U_I18N_API EmptyModifier : public Modifier, public UMemory {
 };
 
 /**
- * This implementation of ModifierStore adopts Modifer pointers.
+ * This implementation of ModifierStore adopts Modifier pointers.
  */
 class U_I18N_API AdoptingModifierStore : public ModifierStore, public UMemory {
   public:
index 54f37fd7e2f55bcdb038464f028915d0bb348e21..750e7cfabe2bde091f9541637eab9be3a410960d 100644 (file)
@@ -245,7 +245,7 @@ class U_I18N_API PatternStringUtils {
      *
      * This test is needed for both NumberPropertyMapper::oldToNew and 
      * PatternStringUtils::propertiesToPatternString. In Java it cannot be
-     * exported by NumberPropertyMapper (package provate) so it is in
+     * exported by NumberPropertyMapper (package private) so it is in
      * PatternStringUtils, do the same in C.
      *
      * @param roundIncr
index b56c4a7bac20f80a77926ad4060030f39f620ad1..e261e6db064853e9915bab594958c0ba94e4f45b 100644 (file)
@@ -806,7 +806,7 @@ OlsonTimeZone::initTransitionRules(UErrorCode& status) {
         }
     }
     if (finalZone != NULL) {
-        // Get the first occurence of final rule starts
+        // Get the first occurrence of final rule starts
         UDate startTime = (UDate)finalStartMillis;
         TimeZoneRule *firstFinalRule = NULL;
 
index d50edd260e436e164e6ce5c70ee8e102319be8a3..1d8f3e9e8be9446b5acbabfe84e8cc84864c39c2 100644 (file)
@@ -1077,7 +1077,7 @@ RuleBasedNumberFormat::getRuleSetDisplayName(int32_t index, const Locale& locale
                 return name;
             }
             
-            // trim trailing portion, skipping over ommitted sections
+            // trim trailing portion, skipping over omitted sections
             do { --len;} while (len > 0 && localeStr[len] != 0x005f); // underscore
             while (len > 0 && localeStr[len-1] == 0x005F) --len;
         }
index d166f7af2c035f60a750f5fe06da1b4985ad1b5e..1de53e6071c477e4525a800991c6d31219b3761f 100644 (file)
@@ -62,7 +62,7 @@ void RuleBasedTransliterator::_construct(const UnicodeString& rules,
  * @param rules         rules, separated by ';'
  * @param direction     either FORWARD or REVERSE.
  * @param adoptedFilter the filter for this transliterator.
- * @param parseError    Struct to recieve information on position 
+ * @param parseError    Struct to receive information on position 
  *                      of error if an error is encountered
  * @param status        Output param set to success/failure code.
  * @exception IllegalArgumentException if rules are malformed
index 4b596ac6c4a2b12e228704e45c5db42273d14196..f3985fc7685d03bf1750199e3c98fef353424353 100644 (file)
@@ -72,7 +72,7 @@ TransliterationRuleData::TransliterationRuleData(const TransliterationRuleData&
             }
         }
     }
-    // Remove the array and exit if memory allocation error occured.
+    // Remove the array and exit if memory allocation error occurred.
     if (U_FAILURE(status)) {
         for (int32_t n = i-1; n >= 0; n--) {
             delete variables[n];
index 07ae02de33ef6ee57b7ecb1b255f343175d855b3..d1a4cd6997c6da541dbb1ab4d490fc758938b989 100644 (file)
@@ -156,7 +156,7 @@ public:
      * call returns.
      * @param rules      rules, separated by ';'
      * @param direction  either FORWARD or REVERSE.
-     * @param pe         Struct to recieve information on position 
+     * @param pe         Struct to receive information on position 
      *                   of error if an error is encountered
      * @param ec         Output param set to success/failure code.
      */
index d8d0384dda6f41830d6e9926c5e7564842778d81..7953d2d2e80ae5c947ee22e3870b1fc6d0988e3c 100644 (file)
@@ -322,7 +322,7 @@ void TransliterationRuleSet::freeze(UParseError& parseError,UErrorCode& status)
                 // If the indexValue is < 0, then the first key character is
                 // a set, and we must use the more time-consuming
                 // matchesIndexValue check.  In practice this happens
-                // rarely, so we seldom tread this code path.
+                // rarely, so we seldom treat this code path.
                 TransliterationRule* r = (TransliterationRule*) ruleVector->elementAt(j);
                 if (r->matchesIndexValue((uint8_t)x)) {
                     v.addElement(r, status);
@@ -396,7 +396,7 @@ void TransliterationRuleSet::freeze(UParseError& parseError,UErrorCode& status)
  * @param text the text to be transliterated
  * @param pos the position indices, which will be updated
  * @param incremental if TRUE, assume new text may be inserted
- * at index.limit, and return FALSE if thre is a partial match.
+ * at index.limit, and return FALSE if there is a partial match.
  * @return TRUE unless a U_PARTIAL_MATCH has been obtained,
  * indicating that transliteration should stop until more text
  * arrives.
index 35ae3fbb4baf2c4454ff9e29fa321e6299319a93..3a2890e8ec7973f8f24bf0157a8db46bcc6c2b12 100644 (file)
@@ -129,7 +129,7 @@ public:
      * @param text the text to be transliterated
      * @param index the position indices, which will be updated
      * @param isIncremental if true, assume new text may be inserted
-     * at index.limit, and return false if thre is a partial match.
+     * at index.limit, and return false if thrre is a partial match.
      * @return true unless a U_PARTIAL_MATCH has been obtained,
      * indicating that transliteration should stop until more text
      * arrives.
index 50d42f7ebebeb62f32f9396a76b9ccd26d85d216..627f1955ee9961990b34039a49f6194c804768ee 100644 (file)
@@ -473,7 +473,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_START_CAPTURE, varsLoc);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the two NOPs.  Depending on what follows in the pattern, the
             //   NOPs may be changed to SAVE_STATE or JMP ops, with a target
             //   address of the end of the parenthesized group.
@@ -515,7 +515,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_NOP, 0);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the two NOPs.
             fParenStack.push(fModeFlags, *fStatus);                       // Match mode state
             fParenStack.push(plain,      *fStatus);                       // Begin a new frame.
@@ -540,7 +540,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_STO_SP, varLoc);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the two NOPs.  Depending on what follows in the pattern, the
             //   NOPs may be changed to SAVE_STATE or JMP ops, with a target
             //   address of the end of the parenthesized group.
@@ -594,7 +594,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_NOP, 0);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the NOPs.
             fParenStack.push(fModeFlags, *fStatus);                       // Match mode state
             fParenStack.push(lookAhead, *fStatus);                        // Frame type.
@@ -627,7 +627,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_STATE_SAVE, 0);    // dest address will be patched later.
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the StateSave and NOP.
             fParenStack.push(fModeFlags, *fStatus);                       // Match mode state
             fParenStack.push(negLookAhead, *fStatus);                    // Frame type
@@ -679,7 +679,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_NOP, 0);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the URX_LB_CONT and the NOP.
             fParenStack.push(fModeFlags, *fStatus);                       // Match mode state
             fParenStack.push(lookBehind, *fStatus);                       // Frame type
@@ -734,7 +734,7 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_NOP, 0);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the URX_LB_CONT and the NOP.
             fParenStack.push(fModeFlags, *fStatus);                       // Match mode state
             fParenStack.push(lookBehindN, *fStatus);                      // Frame type
@@ -1009,7 +1009,7 @@ UBool RegexCompile::doParseActions(int32_t action)
 
     case doIntervalInit:
         // The '{' opening an interval quantifier was just scanned.
-        // Init the counter varaiables that will accumulate the values as the digits
+        // Init the counter variables that will accumulate the values as the digits
         //    are scanned.
         fIntervalLow = 0;
         fIntervalUpper = -1;
@@ -1522,9 +1522,9 @@ UBool RegexCompile::doParseActions(int32_t action)
             appendOp(URX_NOP, 0);
             appendOp(URX_NOP, 0);
 
-            // On the Parentheses stack, start a new frame and add the postions
+            // On the Parentheses stack, start a new frame and add the positions
             //   of the two NOPs (a normal non-capturing () frame, except for the
-            //   saving of the orignal mode flags.)
+            //   saving of the original mode flags.)
             fParenStack.push(fModeFlags, *fStatus);
             fParenStack.push(flags, *fStatus);                            // Frame Marker
             fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus);   // The first NOP
@@ -2396,7 +2396,7 @@ void        RegexCompile::compileSet(UnicodeSet *theSet)
         return;
     }
     //  Remove any strings from the set.
-    //  There shoudn't be any, but just in case.
+    //  There shouldn't be any, but just in case.
     //     (Case Closure can add them; if we had a simple case closure available that
     //      ignored strings, that would be better.)
     theSet->removeAllStrings();
@@ -3927,7 +3927,7 @@ void RegexCompile::error(UErrorCode e) {
         UErrorCode status = U_ZERO_ERROR; // throwaway status for extracting context
 
         // Fill in the context.
-        //   Note: extractBetween() pins supplied indicies to the string bounds.
+        //   Note: extractBetween() pins supplied indices to the string bounds.
         uprv_memset(fParseErr->preContext,  0, sizeof(fParseErr->preContext));
         uprv_memset(fParseErr->postContext, 0, sizeof(fParseErr->postContext));
         utext_extract(fRXPat->fPattern, fScanIndex-U_PARSE_CONTEXT_LEN+1, fScanIndex, fParseErr->preContext, U_PARSE_CONTEXT_LEN, &status);
@@ -4057,7 +4057,7 @@ void RegexCompile::nextChar(RegexPatternChar &c) {
             //
             // We are in free-spacing and comments mode.
             //  Scan through any white space and comments, until we
-            //  reach a significant character or the end of inut.
+            //  reach a significant character or the end of input.
             for (;;) {
                 if (c.fChar == (UChar32)-1) {
                     break;     // End of Input
@@ -4385,7 +4385,7 @@ static inline void addIdentifierIgnorable(UnicodeSet *set, UErrorCode& ec) {
 
 //
 //  Create a Unicode Set from a Unicode Property expression.
-//     This is common code underlying both \p{...} ane [:...:] expressions.
+//     This is common code underlying both \p{...} and [:...:] expressions.
 //     Includes trying the Java "properties" that aren't supported as
 //     normal ICU UnicodeSet properties
 //
index a6e6066c4d5688ca9e8950ad2dd5c99bf99e467b..9e1aa170f08689b22a02f0f7813987b8660aa692 100644 (file)
@@ -209,7 +209,7 @@ private:
                                                      //   initially scanned.  Each new interval
                                                      //   encountered overwrites these values.
                                                      //   -1 for the upper interval value means none
-                                                     //   was specified (unlimited occurences.)
+                                                     //   was specified (unlimited occurrences.)
 
     int64_t                       fNameStartPos;     // Starting position of a \N{NAME} name in a
                                                      //   pattern, valid while remainder of name is
index 3d656ed23102602144ad728725944d8f109139a9..7636757331d92155082bbd08266e6ad842cf4f1b 100755 (executable)
@@ -8,7 +8,7 @@
 #  ********************************************************************
 #
 #  regexcst.pl
-#            Compile the regular expression paser state table data into initialized C data.
+#            Compile the regular expression parser state table data into initialized C data.
 #            Usage:
 #                   cd icu4c/source/i18n
 #                   perl regexcst.pl < regexcst.txt > regexcst.h
@@ -222,7 +222,7 @@ print "\n";
 print "U_NAMESPACE_BEGIN\n";
 
 #
-# Emit the constants for indicies of Unicode Sets
+# Emit the constants for indices of Unicode Sets
 #   Define one constant for each of the character classes encountered.
 #   At the same time, store the index corresponding to the set name back into hash.
 #
@@ -261,7 +261,7 @@ foreach $act (keys %actions) {
 print "    rbbiLastAction};\n\n";
 
 #
-# Emit the struct definition for transtion table elements.
+# Emit the struct definition for transition table elements.
 #
 print "//-------------------------------------------------------------------------------\n";
 print "//\n";
index d69a7ea36935b5b7f716b4e5d64170a57d095919..7e53578e243e2edb8f0102065854d9517228cc6d 100644 (file)
@@ -44,7 +44,7 @@
 #       |                     character from the input only if 'n' appears here.
 #       |
 #       |--- Character or named character classes to test for.  If the current character being scanned
-#            matches, peform the actions and go to the state specified on this line.
+#            matches, perform the actions and go to the state specified on this line.
 #            The input character is tested sequentally, in the order written.  The characters and
 #            character classes tested for do not need to be mutually exclusive.  The first match wins.
 #
@@ -389,7 +389,7 @@ set-after-op:
 #      Have scanned [[set]&
 #      Could be a '&' intersection operator, if a set follows.
 #      Could be the start of a '&&' operator.
-#      Otherewise is a literal.
+#      Otherwise is a literal.
 set-set-amp:
     '['                  n  set-open      ^set-after-set           doSetBeginIntersection1
     '&'                  n  set-after-op                           doSetIntersection2
@@ -410,7 +410,7 @@ set-lit-amp:
 #      Have scanned [set]-
 #      Could be a '-' difference operator, if a [set] follows.
 #      Could be the start of a '--' operator.
-#      Otherewise is a literal.
+#      Otherwise is a literal.
 set-set-dash:
     '['                  n  set-open      ^set-after-set           doSetBeginDifference1
     '-'                  n  set-after-op                           doSetDifference2
index a223b02f0313655df05fab2edd49547095821eb6..bb0e1e838de6516f43cbc5b0ed8c1b86e3343262 100644 (file)
@@ -140,7 +140,7 @@ enum {
      URX_DOLLAR_M      = 42,   // $ in multi-line mode.
      URX_CARET_M       = 43,   // ^ in multi-line mode.
      URX_LB_START      = 44,   // LookBehind Start.
-                               //   Paramater is data location
+                               //   Parameter is data location
      URX_LB_CONT       = 45,   // LookBehind Continue.
                                //   Param 0:  the data location
                                //   Param 1:  The minimum length of the look-behind match
@@ -371,7 +371,7 @@ class CaseFoldingUTextIterator: public UMemory {
 
         UBool   inExpansion();    // True if last char returned from next() and the
                                   //  next to be returned both originated from a string
-                                  //  folding of the same code point from the orignal UText.
+                                  //  folding of the same code point from the original UText.
       private:
         UText             &fUText;
         const  UChar      *fFoldChars;
@@ -395,7 +395,7 @@ class CaseFoldingUCharIterator: public UMemory {
 
         UBool   inExpansion();    // True if last char returned from next() and the
                                   //  next to be returned both originated from a string
-                                  //  folding of the same code point from the orignal UText.
+                                  //  folding of the same code point from the original UText.
 
         int64_t  getIndex();      // Return the current input buffer index.
 
index c9a1bcae58656d73b7d3cdf829aa80e77cb731e1..3f4b97f0ea5d81fe943bedbba854a2629bede08f 100644 (file)
@@ -2005,7 +2005,7 @@ static UText *utext_extract_replace(UText *src, UText *dest, int64_t start, int6
         return dest;
     }
 
-    // Caller did not provide a prexisting UText.
+    // Caller did not provide a preexisting UText.
     // Open a new one, and have it adopt the text buffer storage.
     if (U_FAILURE(*status)) {
         return NULL;
@@ -3717,7 +3717,7 @@ void RegexMatcher::MatchAt(int64_t startIdx, UBool toEnd, UErrorCode &status) {
                 }
 
                 if (success && inputItr.inExpansion()) {
-                    // We otained a match by consuming part of a string obtained from
+                    // We obtained a match by consuming part of a string obtained from
                     // case-folding a single code point of the input text.
                     // This does not count as an overall match.
                     success = FALSE;
@@ -3962,7 +3962,7 @@ void RegexMatcher::MatchAt(int64_t startIdx, UBool toEnd, UErrorCode &status) {
                     break;
                 }
 
-                // Look-behind match is good.  Restore the orignal input string region,
+                // Look-behind match is good.  Restore the original input string region,
                 //   which had been truncated to pin the end of the lookbehind match to the
                 //   position being looked-behind.
                 fActiveStart = fData[opValue+2];
@@ -4051,7 +4051,7 @@ void RegexMatcher::MatchAt(int64_t startIdx, UBool toEnd, UErrorCode &status) {
                 // Look-behind expression matched, which means look-behind test as
                 //   a whole Fails
 
-                //   Restore the orignal input string length, which had been truncated
+                //   Restore the original input string length, which had been truncated
                 //   inorder to pin the end of the lookbehind match
                 //   to the position being looked-behind.
                 fActiveStart = fData[opValue+2];
@@ -5187,7 +5187,7 @@ void RegexMatcher::MatchChunkAt(int32_t startIdx, UBool toEnd, UErrorCode &statu
                 }
 
                 if (success && inputItr.inExpansion()) {
-                    // We otained a match by consuming part of a string obtained from
+                    // We obtained a match by consuming part of a string obtained from
                     // case-folding a single code point of the input text.
                     // This does not count as an overall match.
                     success = FALSE;
@@ -5409,7 +5409,7 @@ void RegexMatcher::MatchChunkAt(int32_t startIdx, UBool toEnd, UErrorCode &statu
                     break;
                 }
 
-                // Look-behind match is good.  Restore the orignal input string region,
+                // Look-behind match is good.  Restore the original input string region,
                 //   which had been truncated to pin the end of the lookbehind match to the
                 //   position being looked-behind.
                 fActiveStart = fData[opValue+2];
@@ -5489,7 +5489,7 @@ void RegexMatcher::MatchChunkAt(int32_t startIdx, UBool toEnd, UErrorCode &statu
                 // Look-behind expression matched, which means look-behind test as
                 //   a whole Fails
 
-                //   Restore the orignal input string length, which had been truncated
+                //   Restore the original input string length, which had been truncated
                 //   inorder to pin the end of the lookbehind match
                 //   to the position being looked-behind.
                 fActiveStart = fData[opValue+2];
index a7bc7109cd5460bd086a6d794266a5cee436551a..34ecb12438707e1ee3f66b1410b5e34223dfe10d 100644 (file)
@@ -289,7 +289,7 @@ SimpleTimeZone::setStartYear(int32_t year)
  *       month, regardless of what day of the week it is (e.g., (-2, 0) is the
  *       next-to-last day of the month).
  *   <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
- *       first specified day of the week on or after the specfied day of the month.
+ *       first specified day of the week on or after the specified day of the month.
  *       (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
  *       [or the 15th itself if the 15th is a Sunday].)
  *   <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
index bf706ff0a57ed0f947f4e9c549d965352a2a1ac7..0e4cd36d567b9246a924f3ce372cd10138763819 100644 (file)
@@ -228,7 +228,7 @@ static const int32_t gFieldRangeBias[] = {
 };
 
 // When calendar uses hebr numbering (i.e. he@calendar=hebrew),
-// offset the years within the current millenium down to 1-999
+// offset the years within the current millennium down to 1-999
 static const int32_t HEBREW_CAL_CUR_MILLENIUM_START_YEAR = 5000;
 static const int32_t HEBREW_CAL_CUR_MILLENIUM_END_YEAR = 6000;
 
@@ -2211,7 +2211,7 @@ SimpleDateFormat::zeroPaddingNumber(
 //----------------------------------------------------------------------
 
 /**
- * Return true if the given format character, occuring count
+ * Return true if the given format character, occurring count
  * times, represents a numeric field.
  */
 UBool SimpleDateFormat::isNumeric(UChar formatChar, int32_t count) {
@@ -2850,7 +2850,7 @@ UBool SimpleDateFormat::matchLiterals(const UnicodeString &pattern,
                     continue;  // Do not update p.
                 }
             }
-            // hack around oldleniency being a bit of a catch-all bucket and we're just adding support specifically for paritial matches
+            // hack around oldleniency being a bit of a catch-all bucket and we're just adding support specifically for partial matches
             if(partialMatchLenient && oldLeniency) {
                 break;
             }
index 7fcd2bd93fef9d814c923838d083210ae015fec6..eb8d0f7edb6b78796d07d49b1330800dcf3f1462 100644 (file)
@@ -335,7 +335,7 @@ int32_t StringSearch::handleNext(int32_t position, UErrorCode &status)
                 // the flipping direction issue has already been handled
                 // in next()
                 // for boundary check purposes. this will ensure that the
-                // next match will not preceed the current offset
+                // next match will not precede the current offset
                 // note search->matchedIndex will always be set to something
                 // in the code
                 m_search_->matchedIndex = position - 1;
index e46437b4f958b1292277989dfff1dca0ac21154d..90586cdf92717ef84579e65cfda2e7d61c9a024b 100644 (file)
@@ -311,7 +311,7 @@ void U_CALLCONV initStaticTimeZones() {
     // be valid even if we can't load the time zone UDataMemory.
     ucln_i18n_registerCleanup(UCLN_I18N_TIMEZONE, timeZone_cleanup);
 
-    // new can't fail below, as we use placement new into staticly allocated space.
+    // new can't fail below, as we use placement new into statically allocated space.
     new(gRawGMT) SimpleTimeZone(0, UnicodeString(TRUE, GMT_ID, GMT_ID_LENGTH));
     new(gRawUNKNOWN) SimpleTimeZone(0, UnicodeString(TRUE, UNKNOWN_ZONE_ID, UNKNOWN_ZONE_ID_LENGTH));
 
@@ -445,7 +445,7 @@ TimeZone::createTimeZone(const UnicodeString& ID)
     if (result == NULL) {
         U_DEBUG_TZ_MSG(("failed to load time zone with id - falling to Etc/Unknown(GMT)"));
         const TimeZone& unknown = getUnknown();
-        // Unknown zone uses staticly allocated memory, so creation of it can never fail due to OOM.
+        // Unknown zone uses statically allocated memory, so creation of it can never fail due to OOM.
         result = unknown.clone();
     }
     return result;
index 0a0698862be1ac8f283748a6367f5034151f0839..18deec85156550b99792a63b7f301ff05d78d6e0 100644 (file)
@@ -103,7 +103,7 @@ class TransliteratorAlias : public UMemory {
     //    null, zero, empty.
     // 2. CompoundRBT
     //    Here ID is the ID, aliasID is the idBlock, trans is the
-    //    contained RBT, and idSplitPoint is the offet in aliasID
+    //    contained RBT, and idSplitPoint is the offset in aliasID
     //    where the contained RBT goes.  compoundFilter is the
     //    compound filter, and it is _not_ owned.
     // 3. Rules
@@ -170,7 +170,7 @@ class TransliteratorRegistry : public UMemory {
      * @param ID          the given ID
      * @param aliasReturn output param to receive TransliteratorAlias;
      *                    should be NULL on entry
-     * @param parseError  Struct to recieve information on position
+     * @param parseError  Struct to receive information on position
      *                    of error if an error is encountered
      * @param status      Output param set to success/failure code.
      */
@@ -293,7 +293,7 @@ class TransliteratorRegistry : public UMemory {
      * Return a registered source specifier.
      * @param index which specifier to return, from 0 to n-1, where
      * n = countAvailableSources()
-     * @param result fill-in paramter to receive the source specifier.
+     * @param result fill-in parameter to receive the source specifier.
      * If index is out of range, result will be empty.
      * @return reference to result
      */
@@ -314,7 +314,7 @@ class TransliteratorRegistry : public UMemory {
      * @param index which specifier to return, from 0 to n-1, where
      * n = countAvailableTargets(source)
      * @param source the source specifier
-     * @param result fill-in paramter to receive the target specifier.
+     * @param result fill-in parameter to receive the target specifier.
      * If source is invalid or if index is out of range, result will
      * be empty.
      * @return reference to result
@@ -345,7 +345,7 @@ class TransliteratorRegistry : public UMemory {
      * n = countAvailableVariants(source, target)
      * @param source the source specifier
      * @param target the target specifier
-     * @param result fill-in paramter to receive the variant
+     * @param result fill-in parameter to receive the variant
      * specifier.  If source is invalid or if target is invalid or if
      * index is out of range, result will be empty.
      * @return reference to result
index e240202b729a3e16b53b3d0a08af43426aaf1b88..e45c9d7bbe13dcf4b1d0587e2b4a1f1df56683b7 100644 (file)
@@ -554,7 +554,7 @@ TZGNCore::getGenericLocationName(const UnicodeString& tzCanonicalID) {
             // If this is not the primary zone in the country,
             // use the exemplar city name.
 
-            // getExemplarLocationName should retur non-empty string
+            // getExemplarLocationName should return non-empty string
             // if the time zone is associated with a region
 
             UnicodeString city;
index 71d9d84dc0402f1ec643af6a12ae16f172175fdf..7edeb526871a2149b001ab4c939de8573532935c 100644 (file)
@@ -11,7 +11,7 @@
 
 /**
  * \file 
- * \brief C API: Time zone generic names classe
+ * \brief C API: Time zone generic names classes
  */
 
 #include "unicode/utypes.h"
index d789c12363026002c8df8051ce15f099bc15e853..8008cc5750d06072cef807c0823a7b7d89885d50 100644 (file)
@@ -345,7 +345,7 @@ TimeZoneNames::getDisplayName(const UnicodeString& tzID, UTimeZoneNameType type,
     return name;
 }
 
-// Empty default implementation, to be overriden in tznames_impl.cpp.
+// Empty default implementation, to be overridden in tznames_impl.cpp.
 void
 TimeZoneNames::loadAllDisplayNames(UErrorCode& /*status*/) {
 }
index 0fa7408e4dbedd461fd9d3de7f07c0e3548849e7..173432c3ee6867773dce37740f6f1d5adbc0aa92 100644 (file)
@@ -533,7 +533,7 @@ const UChar *ZNStringPool::get(const UChar *s, UErrorCode &status) {
 //
 //  ZNStringPool::adopt()    Put a string into the hash, but do not copy the string data
 //                           into the pool's storage.  Used for strings from resource bundles,
-//                           which will perisist for the life of the zone string formatter, and
+//                           which will persist for the life of the zone string formatter, and
 //                           therefore can be used directly without copying.
 const UChar *ZNStringPool::adopt(const UChar * s, UErrorCode &status) {
     const UChar *pooledString;
@@ -776,7 +776,7 @@ struct ZNames::ZNamesLoader : public ResourceSink {
         clear();
         ures_getAllItemsWithFallback(zoneStrings, key, *this, localStatus);
 
-        // Ignore errors, but propogate possible warnings.
+        // Ignore errors, but propagate possible warnings.
         if (U_SUCCESS(localStatus)) {
             errorCode = localStatus;
         }
index 417c0511f81f8ab2ba0808d1fd370ea9b1bef908..9e3e5e870da8ee02a0fcb963c5b49ad3287139e0 100644 (file)
@@ -74,7 +74,7 @@ class U_I18N_API ZNStringPool: public UMemory {
  */
 struct CharacterNode {
     // No constructor or destructor.
-    // We malloc and free an uninitalized array of CharacterNode objects
+    // We malloc and free an uninitialized array of CharacterNode objects
     // and clear and delete them ourselves.
 
     void clear();
index edab16bd60409666cba0aec9ec13de5893c43934..fc430b56145c309540406341a5de877656f21c7b 100644 (file)
@@ -44,7 +44,7 @@ typedef enum UAlphabeticIndexLabelType {
     U_ALPHAINDEX_NORMAL    = 0,
 
     /**
-     * Undeflow Label.  The bucket with this label contains names
+     * Underflow Label.  The bucket with this label contains names
      * in scripts that sort before any of the bucket labels in this index.
      * @stable ICU 4.8
      */
@@ -61,7 +61,7 @@ typedef enum UAlphabeticIndexLabelType {
     U_ALPHAINDEX_INFLOW    = 2,
 
     /**
-     * Overflow Label. Te bucket with this label contains names in scripts
+     * Overflow Label. The bucket with this label contains names in scripts
      * that sort after all of the bucket labels in this index.
      * @stable ICU 4.8
      */
index 5bcd754330ae15cb605ba36a283709eb57265b2e..64be77c5807bc5dba0f0bdec8f5947fdc10180e1 100644 (file)
@@ -84,7 +84,7 @@ public:
      *              changes will be ignored, except either of them is zero.
      *              For example, a transition from rawoffset 3:00/dstsavings 1:00
      *              to rawoffset 2:00/dstsavings 2:00 is excluded from the comparison,
-     *              but a transtion from rawoffset 2:00/dstsavings 1:00 to
+     *              but a transition from rawoffset 2:00/dstsavings 1:00 to
      *              rawoffset 3:00/dstsavings 0:00 is included.
      * @param ec    Output param to filled in with a success or an error.
      * @return      true if the other time zone has the equivalent transitions in the
index cb01fca253355d7104fc9c57695de218921f621e..4ea72454b617cfc9005b9c0a5d9b585862a364e5 100644 (file)
@@ -528,7 +528,7 @@ private:
             const UnicodeString &source, int32_t sourceOffset);
 
     /**
-     * Some of the ChoiceFormat constructors do not have a UErrorCode paramater.
+     * Some of the ChoiceFormat constructors do not have a UErrorCode parameter.
      * We need _some_ way to provide one for the MessagePattern constructor.
      * Alternatively, the MessagePattern could be a pointer field, but that is
      * not nice either.
index aa0b08f5e73ffe2e72e93b6e4692a46cb4fd3651..b08fe492ca5addf51a2c413f5a708dff1451c678 100644 (file)
@@ -103,7 +103,7 @@ class UVector32;
 * to reset the status, shifting pointers to either the end or the start of
 * the string (reset() or setText()), or the specified position (setOffset()).
 * Hence at the next call of next() or previous(), the first or last collation order,
-* or collation order at the spefcifieid position will be returned. If a change of
+* or collation order at the specified position will be returned. If a change of
 * direction is done without one of these calls, the result is undefined.
 * <p>
 * The result of a forward iterate (next()) and reversed result of the backward
@@ -125,7 +125,7 @@ public:
 
     enum {
         /**
-         * NULLORDER indicates that an error has occured while processing
+         * NULLORDER indicates that an error has occurred while processing
          * @stable ICU 2.0
          */
         NULLORDER = (int32_t)0xffffffff
@@ -177,7 +177,7 @@ public:
     * Gets the ordering priority of the next character in the string.
     * @param status the error code status.
     * @return the next character's ordering. otherwise returns NULLORDER if an 
-    *         error has occured or if the end of string has been reached
+    *         error has occurred or if the end of string has been reached
     * @stable ICU 2.0
     */
     int32_t next(UErrorCode& status);
@@ -186,7 +186,7 @@ public:
     * Get the ordering priority of the previous collation element in the string.
     * @param status the error code status.
     * @return the previous element's ordering. otherwise returns NULLORDER if an 
-    *         error has occured or if the start of string has been reached
+    *         error has occurred or if the start of string has been reached
     * @stable ICU 2.0
     */
     int32_t previous(UErrorCode& status);
index c50d486542390337f7aa3bff0c4ffedb34af4540..f8b2fd4d617f11501ab0a4d00ddaf6a21d517e6c 100644 (file)
@@ -291,12 +291,12 @@ public:
      * statfieldPositionus.getEndIndex will be set to 0 and 4, respectively.
      * <P> Notice
      * that if the same time field appears more than once in a pattern, the status will
-     * be set for the first occurence of that time field. For instance,
+     * be set for the first occurrence of that time field. For instance,
      * formatting a UDate to the time string "1 PM PDT (Pacific Daylight Time)"
      * using the pattern "h a z (zzzz)" and the alignment field
      * DateFormat::TIMEZONE_FIELD, the offsets fieldPosition.beginIndex and
      * fieldPosition.getEndIndex will be set to 5 and 8, respectively, for the first
-     * occurence of the timezone pattern character 'z'.
+     * occurrence of the timezone pattern character 'z'.
      *
      * @param cal           Calendar set to the date and time to be formatted
      *                      into a date/time string.  When the calendar type is
@@ -349,12 +349,12 @@ public:
      * statfieldPositionus.getEndIndex will be set to 0 and 4, respectively.
      * <P> Notice
      * that if the same time field appears more than once in a pattern, the status will
-     * be set for the first occurence of that time field. For instance,
+     * be set for the first occurrence of that time field. For instance,
      * formatting a UDate to the time string "1 PM PDT (Pacific Daylight Time)"
      * using the pattern "h a z (zzzz)" and the alignment field
      * DateFormat::TIMEZONE_FIELD, the offsets fieldPosition.beginIndex and
      * fieldPosition.getEndIndex will be set to 5 and 8, respectively, for the first
-     * occurence of the timezone pattern character 'z'.
+     * occurrence of the timezone pattern character 'z'.
      *
      * @param date          UDate to be formatted into a date/time string.
      * @param appendTo      Output parameter to receive result.
index d0f844a51a369fa7ec8df0fbc297bc497f0074e9..dfc617cddc72d9a59c2742eafccb828506e05acf 100644 (file)
@@ -284,12 +284,12 @@ public:
      *
      * @param symbol    Constant to indicate a number format symbol.
      * @param value     value of the format symbol
-     * @param propogateDigits If false, setting the zero digit will not automatically set 1-9.
+     * @param propagateDigits If false, setting the zero digit will not automatically set 1-9.
      *     The default behavior is to automatically set 1-9 if zero is being set and the value
      *     it is being set to corresponds to a known Unicode zero digit.
      * @stable ICU 2.0
      */
-    void setSymbol(ENumberFormatSymbol symbol, const UnicodeString &value, const UBool propogateDigits);
+    void setSymbol(ENumberFormatSymbol symbol, const UnicodeString &value, const UBool propagateDigits);
 
 #ifndef U_HIDE_INTERNAL_API
     /**
index b9be18f768c6aac1848117929cafe37211af6832..0cd329bd4617c17ca1dcdfee47f5b1f5cf4ef55a 100644 (file)
@@ -1831,13 +1831,13 @@ class U_I18N_API DecimalFormat : public NumberFormat {
      * This means a minimum of 2 integer digits, 1 fraction digit, and
      * a maximum of 2 fraction digits.
      * <pre>
-     * .      Example: "#,#00.0#;(#,#00.0#)" for negatives in parantheses.
+     * .      Example: "#,#00.0#;(#,#00.0#)" for negatives in parentheses.
      * </pre>
      * In negative patterns, the minimum and maximum counts are ignored;
      * these are presumed to be set in the positive pattern.
      *
      * @param pattern    The pattern to be applied.
-     * @param parseError Struct to recieve information on position
+     * @param parseError Struct to receive information on position
      *                   of error if an error is encountered
      * @param status     Output param set to success/failure code on
      *                   exit. If the pattern is invalid, this will be
@@ -1873,13 +1873,13 @@ class U_I18N_API DecimalFormat : public NumberFormat {
      * This means a minimum of 2 integer digits, 1 fraction digit, and
      * a maximum of 2 fraction digits.
      *
-     * Example: "#,#00.0#;(#,#00.0#)" for negatives in parantheses.
+     * Example: "#,#00.0#;(#,#00.0#)" for negatives in parentheses.
      *
      * In negative patterns, the minimum and maximum counts are ignored;
      * these are presumed to be set in the positive pattern.
      *
      * @param pattern   The localized pattern to be applied.
-     * @param parseError Struct to recieve information on position
+     * @param parseError Struct to receive information on position
      *                   of error if an error is encountered
      * @param status    Output param set to success/failure code on
      *                  exit. If the pattern is invalid, this will be
index 1a4a0c48b9604eedff332f328467a348d8def0be..978f30b1d3dc30105eb7d0f6fc39b217ba3ab7fc 100644 (file)
@@ -554,7 +554,7 @@ public:
     /**
      * Sets timezone strings. These strings are stored in a 2-dimensional array.
      * <p><b>Note:</b> SimpleDateFormat no longer use the zone strings stored in
-     * a DateFormatSymbols. Therefore, the time zone strings set by this mthod
+     * a DateFormatSymbols. Therefore, the time zone strings set by this method
      * have no effects in an instance of SimpleDateFormat for formatting time
      * zones.
      * @param strings       The timezone strings as a 2-d array to be copied. (not adopted; caller retains ownership)
index f45e68038ac48d8208b83c0bbf12eb5349693b6e..015c78d37738ba81207da85d766c340df8270aa7 100644 (file)
@@ -742,7 +742,7 @@ private:
          * Whether the first date in interval pattern is later date or not.
          * Fallback format set the default ordering.
          * And for a particular interval pattern, the order can be
-         * overriden by prefixing the interval pattern with "latestFirst:" or
+         * overridden by prefixing the interval pattern with "latestFirst:" or
          * "earliestFirst:"
          * For example, given 2 date, Jan 10, 2007 to Feb 10, 2007.
          * if the fallback format is "{0} - {1}",
index f9379cd81f10186f1251b31cf93ddadb58ca6259..845483897516d8d7a22dc49a28f828db1ea76fbd 100644 (file)
@@ -45,7 +45,7 @@ U_NAMESPACE_BEGIN
  * <P>
  * For power users, who want to create their own date interval patterns,
  * or want to re-set date interval patterns, they could do so by
- * directly creating DateIntervalInfo and manupulating it.
+ * directly creating DateIntervalInfo and manipulating it.
  *
  * <P>
  * Logically, the interval patterns are mappings
@@ -114,7 +114,7 @@ U_NAMESPACE_BEGIN
  * the first date in the interval pattern for this locale is earlier date.
  * If the fallback format is &quot;{1} - {0}&quot;, it means the first date is the
  * later date.
- * For a particular interval pattern, the default order can be overriden
+ * For a particular interval pattern, the default order can be overridden
  * by prefixing &quot;latestFirst:&quot; or &quot;earliestFirst:&quot; to the interval pattern.
  * For example, if the fallback format is &quot;{0}-{1}&quot;,
  * but for skeleton &quot;yMMMd&quot;, the interval pattern when day is different is
index 7ce1ba20e5b07eb4343c583547a14ce9ca48295d..6732ebf0184de76aa39c40eaa54bc90525e970f1 100644 (file)
@@ -202,7 +202,7 @@ public:
     /**
      * Adds a pattern to the generator. If the pattern has the same skeleton as
      * an existing pattern, and the override parameter is set, then the previous
-     * value is overriden. Otherwise, the previous value is retained. In either
+     * value is overridden. Otherwise, the previous value is retained. In either
      * case, the conflicting status is set and previous vale is stored in
      * conflicting pattern.
      * <p>
index adab8967f634faa7e16b1502febeb7b4bf6aa832..7464b7983ccc3a2774449f3ce94bcda03c65d637 100644 (file)
@@ -40,11 +40,11 @@ public:
     enum DateRuleType {
         DOM = 0,        /**< The exact day of month,
                              for example, March 11. */
-        DOW,            /**< The Nth occurence of the day of week,
+        DOW,            /**< The Nth occurrence of the day of week,
                              for example, 2nd Sunday in March. */
-        DOW_GEQ_DOM,    /**< The first occurence of the day of week on or after the day of monnth,
+        DOW_GEQ_DOM,    /**< The first occurrence of the day of week on or after the day of monnth,
                              for example, first Sunday on or after March 8. */
-        DOW_LEQ_DOM     /**< The last occurence of the day of week on or before the day of month,
+        DOW_LEQ_DOM     /**< The last occurrence of the day of week on or before the day of month,
                              for example, first Sunday on or before March 14. */
     };
 
@@ -74,7 +74,7 @@ public:
         int32_t millisInDay, TimeRuleType timeType);
 
     /**
-     * Constructs a <code>DateTimeRule</code> by the day of week and its oridinal
+     * Constructs a <code>DateTimeRule</code> by the day of week and its ordinal
      * number and the time rule.  The date rule type for an instance created
      * by this constructor is <code>DOW</code>.
      * 
@@ -194,7 +194,7 @@ public:
     int32_t getRuleDayOfWeek(void) const;
 
     /**
-     * Gets the ordinal number of the occurence of the day of week
+     * Gets the ordinal number of the occurrence of the day of week
      * in the month.  When the date rule type is not <code>DOW</code>,
      * the value is always 0.
      * @return The rule day of week ordinal number in the month.
index 3a090393ac4bec545e768af6cfb4263e7f4242ce..8d77b46096710d6d8d2a1248d81dd660726f5e5c 100644 (file)
@@ -294,7 +294,7 @@ public:
 
     /**
      * Gets the double value of this object. If this object is of type
-     * long, int64 or Decimal Number then a conversion is peformed, with
+     * long, int64 or Decimal Number then a conversion is performed, with
      * possible loss of precision.  If the type is kObject and the
      * object is a Measure, then the result of
      * getNumber().getDouble(status) is returned.  If this object is
@@ -320,7 +320,7 @@ public:
      * as appropriate, is returned and the status is set to
      * U_INVALID_FORMAT_ERROR.  If this object is of type kInt64 and
      * it fits within a long, then no precision is lost.  If it is of
-     * type kDouble, then a conversion is peformed, with
+     * type kDouble, then a conversion is performed, with
      * truncation of any fractional part.  If the type is kObject and
      * the object is a Measure, then the result of
      * getNumber().getLong(status) is returned.  If this object is
@@ -346,7 +346,7 @@ public:
      * the maximum or minimum int64 value, as appropriate, is returned
      * and the status is set to U_INVALID_FORMAT_ERROR.  If the
      * magnitude fits in an int64, then a casting conversion is
-     * peformed, with truncation of any fractional part.  If the type
+     * performed, with truncation of any fractional part.  If the type
      * is kObject and the object is a Measure, then the result of
      * getNumber().getDouble(status) is returned.  If this object is
      * neither a numeric type nor a Measure, then 0 is returned and
@@ -479,7 +479,7 @@ public:
      * the full precision and range of the original input, unconstrained by
      * the limits of a double floating point or a 64 bit int.
      *
-     * This function is not thread safe, and therfore is not declared const,
+     * This function is not thread safe, and therefore is not declared const,
      * even though it is logically const.
      *
      * Possible errors include U_MEMORY_ALLOCATION_ERROR, and
index 96883a81a2ed95be7408299950be8a7caeacefe8..638068e3bc2fc333b7e737f8ba3c3d5b5aba9161 100644 (file)
@@ -88,7 +88,7 @@ U_NAMESPACE_BEGIN
  * 0xFFFD is returned.
  * <P>
  * If there is no match when parsing, a parse failure UErrorCode is
- * retured for methods which take no ParsePosition.  For the method
+ * returned for methods which take no ParsePosition.  For the method
  * that takes a ParsePosition, the index parameter is left unchanged.
  * <P>
  * <em>User subclasses are not supported.</em> While clients may write
@@ -288,7 +288,7 @@ protected:
      * Simple function for initializing a UParseError from a UnicodeString.
      *
      * @param pattern The pattern to copy into the parseError
-     * @param pos The position in pattern where the error occured
+     * @param pos The position in pattern where the error occurred
      * @param parseError The UParseError object to fill in
      * @stable ICU 2.4
      */
index e5e6df17fda219bfa07e4ca54515e3bd590e4ecb..df037c65040fde96861375564c91053179ea1922 100644 (file)
@@ -141,7 +141,7 @@ U_NAMESPACE_BEGIN
  *     cout << "DST_OFFSET: " << (calendar->get( UCAL_DST_OFFSET, success )/(60*60*1000)) << endl; // in hours
  *
  *     if (U_FAILURE(success)) {
- *         cout << "An error occured. success=" << u_errorName(success) << endl;
+ *         cout << "An error occurred. success=" << u_errorName(success) << endl;
  *     }
  *
  *     delete ids;
index 14b57a114dc3a53fd46434841ff2b7af89c4afb5..0f778cf73e8408e0da59e577ecdb613f9ff2dd7e 100644 (file)
@@ -589,7 +589,7 @@ public:
      * arguments. If numbered, the formatName is the
      * corresponding UnicodeStrings (e.g. "0", "1", "2"...).
      * The returned Format object should not be deleted by the caller,
-     * nor should the ponter of other object .  The pointer and its
+     * nor should the pointer of other object .  The pointer and its
      * contents remain valid only until the next call to any method
      * of this class is made with this object.
      * @param formatName the name or number specifying a format
index 513d160536795e4f4e1af6253a43923a6288529f..2ba92d2449a99b0a3955129db769345f4418bf42 100644 (file)
@@ -685,7 +685,7 @@ public:
      * true, the string "1234." would be parsed as the integer value
      * 1234 and parsing would stop at the "." character.  Of course,
      * the exact format accepted by the parse operation is locale
-     * dependant and determined by sub-classes of NumberFormat.
+     * dependent and determined by sub-classes of NumberFormat.
      * @return    true if this format will parse numbers as integers
      *            only.
      * @stable ICU 2.0
index 17d2f303706fc5c02f104f499a795184bf597a69..c3a15166bbbde1070067b2ab7424cf54cc475979 100644 (file)
@@ -894,7 +894,7 @@ public:
   using NumberFormat::parse;
 
   /**
-   * Parses the specfied string, beginning at the specified position, according
+   * Parses the specified string, beginning at the specified position, according
    * to this formatter's rules.  This will match the string against all of the
    * formatter's public rule sets and return the value corresponding to the longest
    * parseable substring.  This function's behavior is affected by the lenient
index f1c4b2bc97ec403ac6487e1a666d2be22cebe26c..07bb5d534b7127141dd4661c90a56a811b82da2c 100644 (file)
@@ -59,7 +59,7 @@ U_NAMESPACE_BEGIN
  * <p>
  * <tt>SearchIterator</tt> provides an API that is similar to that of
  * other text iteration classes such as <tt>BreakIterator</tt>. Using 
- * this class, it is easy to scan through text looking for all occurances of 
+ * this class, it is easy to scan through text looking for all occurrences of 
  * a given pattern. The following example uses a <tt>StringSearch</tt> 
  * object to find all instances of "fox" in the target string. Any other 
  * subclass of <tt>SearchIterator</tt> can be used in an identical 
index f85b04072efc4946c223bac36979e340feb7b45b..343ff67110d6fe06446c1057f99307e805ee8fe8 100644 (file)
@@ -134,7 +134,7 @@ public:
      * TimeZone.createInstance() to create a TimeZone instead of creating a
      * SimpleTimeZone directly with this constructor.
      * <P>
-     * Various types of daylight-savings time rules can be specfied by using different
+     * Various types of daylight-savings time rules can be specified by using different
      * values for startDay and startDayOfWeek and endDay and endDayOfWeek.  For a
      * complete explanation of how these parameters work, see the documentation for
      * setStartRule().
@@ -175,7 +175,7 @@ public:
      * TimeZone.createInstance() to create a TimeZone instead of creating a
      * SimpleTimeZone directly with this constructor.
      * <P>
-     * Various types of daylight-savings time rules can be specfied by using different
+     * Various types of daylight-savings time rules can be specified by using different
      * values for startDay and startDayOfWeek and endDay and endDayOfWeek.  For a
      * complete explanation of how these parameters work, see the documentation for
      * setStartRule().
@@ -219,7 +219,7 @@ public:
      * TimeZone.createInstance() to create a TimeZone instead of creating a
      * SimpleTimeZone directly with this constructor.
      * <P>
-     * Various types of daylight-savings time rules can be specfied by using different
+     * Various types of daylight-savings time rules can be specified by using different
      * values for startDay and startDayOfWeek and endDay and endDayOfWeek.  For a
      * complete explanation of how these parameters work, see the documentation for
      * setStartRule().
@@ -293,7 +293,7 @@ public:
      *       month, regardless of what day of the week it is (e.g., (-2, 0) is the
      *       next-to-last day of the month).</li>
      *   <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
-     *       first specified day of the week on or after the specfied day of the month.
+     *       first specified day of the week on or after the specified day of the month.
      *       (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
      *       [or the 15th itself if the 15th is a Sunday].)</li>
      *   <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
@@ -337,7 +337,7 @@ public:
      *       month, regardless of what day of the week it is (e.g., (-2, 0) is the
      *       next-to-last day of the month).</li>
      *   <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
-     *       first specified day of the week on or after the specfied day of the month.
+     *       first specified day of the week on or after the specified day of the month.
      *       (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
      *       [or the 15th itself if the 15th is a Sunday].)</li>
      *   <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
index 9a5a83b16582d54a0e0b4ca81fa01d0204bb6778..4fa36f6ce41a91f3bb9b48164e8906ceac7af69d 100644 (file)
@@ -1299,7 +1299,7 @@ private:
                            int32_t maxDigits) const;
 
     /**
-     * Return true if the given format character, occuring count
+     * Return true if the given format character, occurring count
      * times, represents a numeric field.
      */
     static UBool isNumeric(char16_t formatChar, int32_t count);
@@ -1386,7 +1386,7 @@ private:
      *
      * @param pattern the pattern string
      * @param patternOffset the starting offset into the pattern text. On
-     *        outupt will be set the offset of the first non-literal character in the pattern
+     *        output will be set the offset of the first non-literal character in the pattern
      * @param text the text being parsed
      * @param textOffset the starting offset into the text. On output
      *                   will be set to the offset of the character after the match
index 90e5f254f48d9150a1ce51d6d03b2bc0000a8ead..0224032676eb235a0c5efad58566b81d207587f8 100644 (file)
@@ -923,7 +923,7 @@ private:
      * Parses the given custom time zone identifier
      * @param id id A string of the form GMT[+-]hh:mm, GMT[+-]hhmm, or
      * GMT[+-]hh.
-     * @param sign Receves parsed sign, 1 for positive, -1 for negative.
+     * @param sign Receives parsed sign, 1 for positive, -1 for negative.
      * @param hour Receives parsed hour field
      * @param minute Receives parsed minute field
      * @param second Receives parsed second field
@@ -951,7 +951,7 @@ private:
      * @param min offset minutes
      * @param sec offset seconds
      * @param negative sign of the offset, true for negative offset.
-     * @param id Receves the format result (normalized custom ID)
+     * @param id Receives the format result (normalized custom ID)
      * @return The reference to id
      */
     static UnicodeString& formatCustomID(int32_t hour, int32_t min, int32_t sec,
index 75d9219b81fe0ce7885b3c4502688974e1623cc6..525f2b0056e0f5aa55aa9c7c12119c1a81e7dbb4 100644 (file)
@@ -18,7 +18,7 @@
 
 /**
  * \file
- * \brief C++ API: Tranforms text from one format to another.
+ * \brief C++ API: Transforms text from one format to another.
  */
 
 #if !UCONFIG_NO_TRANSLITERATION
@@ -219,7 +219,7 @@ class TransliteratorIDParser;
  * acts a template; future calls to {@link #createInstance } with the ID
  * of the registered object return clones of that object.  Thus any
  * object passed to <tt>registerInstance()</tt> must implement
- * <tt>clone()</tt> propertly.  To register a transliterator subclass
+ * <tt>clone()</tt> properly.  To register a transliterator subclass
  * without instantiating it (until it is needed), users may call
  * {@link #registerFactory }.  In this case, the objects are
  * instantiated by invoking the zero-argument public constructor of
@@ -317,7 +317,7 @@ class TransliteratorIDParser;
  * replacement. The cursor is the point in the text at which the
  * next replacement, if any, will be applied. The cursor is usually
  * placed within the replacement text; however, it can actually be
- * placed into the precending or following context by using the
+ * placed into the preceding or following context by using the
  * special character '@'. Examples:
  *
  * <pre>
@@ -1061,7 +1061,7 @@ public:
      *
      * @param ID a valid ID, as enumerated by <code>getAvailableIDs()</code>
      * @param dir        either FORWARD or REVERSE.
-     * @param parseError Struct to recieve information on position
+     * @param parseError Struct to receive information on position
      *                   of error if an error is encountered
      * @param status     Output param to filled in with a success or an error.
      * @return A <code>Transliterator</code> object with the given ID
@@ -1380,7 +1380,7 @@ public:
      * Return a registered source specifier.
      * @param index which specifier to return, from 0 to n-1, where
      * n = countAvailableSources()
-     * @param result fill-in paramter to receive the source specifier.
+     * @param result fill-in parameter to receive the source specifier.
      * If index is out of range, result will be empty.
      * @return reference to result
      * @stable ICU 2.0
@@ -1403,7 +1403,7 @@ public:
      * @param index which specifier to return, from 0 to n-1, where
      * n = countAvailableTargets(source)
      * @param source the source specifier
-     * @param result fill-in paramter to receive the target specifier.
+     * @param result fill-in parameter to receive the target specifier.
      * If source is invalid or if index is out of range, result will
      * be empty.
      * @return reference to result
@@ -1430,7 +1430,7 @@ public:
      * n = countAvailableVariants(source, target)
      * @param source the source specifier
      * @param target the target specifier
-     * @param result fill-in paramter to receive the variant
+     * @param result fill-in parameter to receive the variant
      * specifier.  If source is invalid or if target is invalid or if
      * index is out of range, result will be empty.
      * @return reference to result
index 3d1348290af81ed5f598cad40ee588226c235acd..b5f1f5e9e8231ccf99204017432255b90b7fa968 100644 (file)
@@ -355,7 +355,7 @@ public:
      * Sets the localized GMT format pattern. The pattern must contain
      * a single argument {0}, for example "GMT {0}".
      * @param pattern The localized GMT format pattern to be used by this object.
-     * @param status Recieves the status.
+     * @param status Receives the status.
      * @see #getGMTPattern
      * @stable ICU 50
      */
@@ -437,7 +437,7 @@ public:
      * Sets the default parse options.
      * <p><b>Note</b>: By default, an instance of <code>TimeZoneFormat</code>
      * created by {@link #createInstance} has no parse options set (UTZFMT_PARSE_OPTION_NONE).
-     * To specify multipe options, use bitwise flags of UTimeZoneFormatParseOption.
+     * To specify multiple options, use bitwise flags of UTimeZoneFormatParseOption.
      * @see #UTimeZoneFormatParseOption
      * @stable ICU 50
      */
@@ -590,7 +590,7 @@ public:
      * @param text The text contains a time zone string at the position.
      * @param style The format style
      * @param pos The position.
-     * @param parseOptions The parse options repesented by bitwise flags of UTimeZoneFormatParseOption.
+     * @param parseOptions The parse options represented by bitwise flags of UTimeZoneFormatParseOption.
      * @param timeType The output argument for receiving the time type (standard/daylight/unknown),
      * or NULL if the information is not necessary.
      * @return A <code>TimeZone</code>, or null if the input could not be parsed.
@@ -1058,7 +1058,7 @@ private:
      * Returns the time zone ID of a match at the specified index within
      * the MatchInfoCollection.
      * @param matches the collection of matches
-     * @param idx the index withing matches
+     * @param idx the index within matches
      * @param tzID receives the resolved time zone ID
      * @return a reference to tzID.
      */
index dfc3a16a8b24df6dca2a9f8feb73fca615833d6b..6d22eb6069ec87cb1a73e72e0e93ccf2cd61e4ac 100644 (file)
@@ -418,7 +418,7 @@ ucol_open(const char *loc, UErrorCode *status);
  *             UCOL_DEFAULT (set the mode according to the rules)
  * @param strength The default collation strength; one of UCOL_PRIMARY, UCOL_SECONDARY,
  * UCOL_TERTIARY, UCOL_IDENTICAL,UCOL_DEFAULT_STRENGTH - can be also set in the rules.
- * @param parseError  A pointer to UParseError to recieve information about errors
+ * @param parseError  A pointer to UParseError to receive information about errors
  *                    occurred during parsing. This argument can currently be set
  *                    to NULL, but at users own risk. Please provide a real structure.
  * @param status A pointer to a UErrorCode to receive any errors
@@ -443,7 +443,7 @@ ucol_openRules( const UChar        *rules,
  * The structure and the syntax of the string is defined in the "Naming collators"
  * section of the users guide: 
  * https://unicode-org.github.io/icu/userguide/collation/concepts#collator-naming-scheme
- * Attributes are overriden by the subsequent attributes. So, for "S2_S3", final
+ * Attributes are overridden by the subsequent attributes. So, for "S2_S3", final
  * strength will be 3. 3066bis locale overrides individual locale parts.
  * The call to this function is equivalent to a call to ucol_open, followed by a 
  * series of calls to ucol_setAttribute and ucol_setVariableTop.
@@ -462,7 +462,7 @@ ucol_openRules( const UChar        *rules,
  *                   instantiating collators (like out of memory or similar), this
  *                   API will return an error if an invalid attribute or attribute/value
  *                   combination is specified.
- * @return           A pointer to a UCollator or 0 if an error occured (including an 
+ * @return           A pointer to a UCollator or 0 if an error occurred (including an 
  *                   invalid attribute).
  * @see ucol_open
  * @see ucol_setAttribute
@@ -653,7 +653,7 @@ ucol_equal(const UCollator *coll,
            const UChar     *target, int32_t targetLength);
 
 /**
- * Compare two UTF-8 encoded trings.
+ * Compare two UTF-8 encoded strings.
  * The strings will be compared using the options already specified.
  * @param coll The UCollator containing the comparison rules.
  * @param sIter The source string iterator.
index d50003622a27bdf5f12dfa546df8c71d6d937f3a..25efcf2a08e77ee8c4428111a86ef3e32601ef1f 100644 (file)
@@ -167,7 +167,7 @@ ucol_next(UCollationElements *elems, UErrorCode *status);
  * A single character may contain more than one collation element.
  * Note that internally a stack is used to store buffered collation elements. 
  * @param elems The UCollationElements containing the text.
- * @param status A pointer to a UErrorCode to receive any errors. Noteably 
+ * @param status A pointer to a UErrorCode to receive any errors. Notably 
  *               a U_BUFFER_OVERFLOW_ERROR is returned if the internal stack
  *               buffer has been exhausted.
  * @return The previous collation elements ordering, otherwise returns 
index 4ff5e83d0959d01910fb5079308200a5e4362def..efe4357bfeecd28d55231ee5a753f0c5ddd9e831 100644 (file)
@@ -341,7 +341,7 @@ udatpg_getBaseSkeleton(UDateTimePatternGenerator *unusedDtpg,
 /**
  * Adds a pattern to the generator. If the pattern has the same skeleton as
  * an existing pattern, and the override parameter is set, then the previous
- * value is overriden. Otherwise, the previous value is retained. In either
+ * value is overridden. Otherwise, the previous value is retained. In either
  * case, the conflicting status is set and previous vale is stored in 
  * conflicting pattern.
  * <p>
index 6b8bee1f3dfe7c89ae6f27755b456496b81680f7..4c4a307a24b4a1257c5c59b694c33cd971f4472e 100644 (file)
@@ -173,7 +173,7 @@ ufmt_getDouble(UFormattable* fmt, UErrorCode *status);
  * as appropriate, is returned and the status is set to
  * U_INVALID_FORMAT_ERROR.  If this object is of type UFMT_INT64 and
  * it fits within a long, then no precision is lost.  If it is of
- * type kDouble or kDecimalNumber, then a conversion is peformed, with
+ * type kDouble or kDecimalNumber, then a conversion is performed, with
  * truncation of any fractional part.  If the type is UFMT_OBJECT and
  * the object is a Measure, then the result of
  * getNumber().getLong(status) is returned.  If this object is
@@ -195,7 +195,7 @@ ufmt_getLong(UFormattable* fmt, UErrorCode *status);
  * the maximum or minimum int64 value, as appropriate, is returned
  * and the status is set to U_INVALID_FORMAT_ERROR.  If the
  * magnitude fits in an int64, then a casting conversion is
- * peformed, with truncation of any fractional part.  If the type
+ * performed, with truncation of any fractional part.  If the type
  * is UFMT_OBJECT and the object is a Measure, then the result of
  * getNumber().getDouble(status) is returned.  If this object is
  * neither a numeric type nor a Measure, then 0 is returned and
@@ -267,7 +267,7 @@ ufmt_getArrayItemByIndex(UFormattable* fmt, int32_t n, UErrorCode *status);
  * the full precision and range of the original input, unconstrained by
  * the limits of a double floating point or a 64 bit int.
  *
- * This function is not thread safe, and therfore is not declared const,
+ * This function is not thread safe, and therefore is not declared const,
  * even though it is logically const.
  * The resulting buffer is owned by the UFormattable and is invalid if any other functions are
  * called on the UFormattable.
index 3977743e3238ec0169dc2179897c37c0e312fd3b..3647df9596ae63be9d8120dbdbca4a7ab91c4179 100644 (file)
@@ -229,15 +229,15 @@ ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
 /**
  * Returns the element gives the normal business letter size, and customary units.
  * The units for the numbers are always in <em>milli-meters</em>.
- * For US since 8.5 and 11 do not yeild an integral value when converted to milli-meters,
+ * For US since 8.5 and 11 do not yield an integral value when converted to milli-meters,
  * the values are rounded off.
- * So for A4 size paper the height and width are 297 mm and 210 mm repectively,
+ * So for A4 size paper the height and width are 297 mm and 210 mm respectively,
  * and for US letter size the height and width are 279 mm and 216 mm respectively.
  * Please note that this API will change in ICU 3.6 and will use an ulocdata object.
  *
  * @param localeID      The id of the locale for which the paper size information to be retrieved.
- * @param height        A pointer to int to recieve the height information.
- * @param width         A pointer to int to recieve the width information.
+ * @param height        A pointer to int to receive the height information.
+ * @param width         A pointer to int to receive the width information.
  * @param status        Must be a valid pointer to an error code value,
  *                      which must not indicate a failure before the function call.
  * @stable ICU 2.8
@@ -247,7 +247,7 @@ ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UEr
 
 /**
  * Return the current CLDR version used by the library.
- * @param versionArray fillin that will recieve the version number
+ * @param versionArray fill-in that will receive the version number
  * @param status error code - could be U_MISSING_RESOURCE_ERROR if the version was not found.
  * @stable ICU 4.2
  */
index db660dbe7e8e4a041953395f03c139761569180a..c955dc18ac4d4ab092d9e908f37b696b3120015f 100644 (file)
@@ -393,7 +393,7 @@ typedef void* UMessageFormat;
  * @param patternLength Length of the pattern to use
  * @param locale        The locale for which the messages are formatted.
  * @param parseError    A pointer to UParseError struct to receive any errors 
- *                      occured during parsing. Can be NULL.
+ *                      occurred during parsing. Can be NULL.
  * @param status        A pointer to an UErrorCode to receive any errors.
  * @return              A pointer to a UMessageFormat to use for formatting 
  *                      messages, or 0 if an error occurred. 
index 1d5a3f86c980df3af4ca8d9b60df1ffd7b23a504..5c002f4147e6abc80e98058059a24082edd0f2fa 100644 (file)
@@ -75,7 +75,7 @@ struct U_I18N_API Factor {
     // Apply SI or binary prefix to the Factor.
     void applyPrefix(UMeasurePrefix unitPrefix);
 
-    // Does an in-place substition of the "symbolic constants" based on
+    // Does an in-place substitution of the "symbolic constants" based on
     // constantExponents (resetting the exponents).
     //
     // In ICU4J, see UnitConverter.Factor.getConversionRate().
index c6e4e4f52883639c9ff11004ca11c6a01d8c8615..b3300f7e27737aa26b0d966fb3feb865da4b26af 100644 (file)
@@ -109,7 +109,7 @@ namespace units {
  *
  * NOTE:
  *    the output units  and their limits will be extracted from the units preferences database by knowing
- *    the followings:
+ *    the following:
  *        - input unit
  *        - locale
  *        - usage
index 7f41918cff93a458f220ecf7d1332b35f61aa79a..514159e8b7af35d233f517f4c63659cf928316fa 100644 (file)
@@ -1169,7 +1169,7 @@ uregex_replaceAll(URegularExpression    *regexp2,
 
     uregex_reset(regexp2, 0, status);
 
-    // Note: Seperate error code variables for findNext() and appendReplacement()
+    // Note: Separate error code variables for findNext() and appendReplacement()
     //       are used so that destination buffer overflow errors
     //       in appendReplacement won't stop findNext() from working.
     //       appendReplacement() and appendTail() special case incoming buffer
@@ -1353,7 +1353,7 @@ int32_t RegexCImpl::appendReplacement(RegularExpression    *regexp,
     }
 
     //
-    // Validate all paramters
+    // Validate all parameters
     //
     if (validateRE(regexp, TRUE, status) == FALSE) {
         return 0;
index 8372fdaa60d51fe946752a0ab54ecbf708237370..1bc02e77b7bd91cb1fc528aadcb90133763df39d 100644 (file)
@@ -3107,7 +3107,7 @@ usearch_getPattern(const UStringSearch *strsrch,
     return NULL;
 }
 
-// miscellanous methods --------------------------------------------------
+// miscellaneous methods --------------------------------------------------
 
 U_CAPI int32_t U_EXPORT2 usearch_first(UStringSearch *strsrch,
                                            UErrorCode    *status)
@@ -3262,7 +3262,7 @@ U_CAPI int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch,
                 }
                 else {
                     // for boundary check purposes. this will ensure that the
-                    // next match will not preceed the current offset
+                    // next match will not precede the current offset
                     // note search->matchedIndex will always be set to something
                     // in the code
                     search->matchedIndex = offset - 1;
@@ -3900,7 +3900,7 @@ U_CAPI UBool U_EXPORT2 usearch_search(UStringSearch  *strsrch,
     // 2. An int64_t CE weight is determined for each resulting unit (high 16 bits are primary strength, next
     //    16 bits are secondary, next 16 (the high 16 bits of the low 32-bit half) are tertiary. Any of these
     //    fields that are for strengths below that of the collator are set to 0. If this makes the int64_t
-    //    CE weight 0 (as for a combining diacritic with secondary weight when the collator strentgh is primary),
+    //    CE weight 0 (as for a combining diacritic with secondary weight when the collator strength is primary),
     //    then the CE is deleted, so the following code sees only CEs that are relevant.
     // For each CE, the lowIndex and highIndex correspond to where this CE begins and ends in the original text.
     // If lowIndex==highIndex, either the CE resulted from an expansion/decomposition of one of the original text
@@ -4162,7 +4162,7 @@ U_CAPI UBool U_EXPORT2 usearch_searchBackwards(UStringSearch  *strsrch,
 
 #endif
     // Input parameter sanity check.
-    //  TODO:  should input indicies clip to the text length
+    //  TODO:  should input indices clip to the text length
     //         in the same way that UText does.
     if(strsrch->pattern.cesLength == 0         ||
        startIdx < 0                           ||
index dbb025447fee6ad16b7e689eccb0e5e2d424eede..8d42aadb9483fc7c73690e7f3bdff3f87e835192 100644 (file)
@@ -486,7 +486,7 @@ uspoof_areConfusableUnicodeString(const USpoofChecker *sc,
     //   and for definitions of the types (single, whole, mixed-script) of confusables.
     
     // We only care about a few of the check flags.  Ignore the others.
-    // If no tests relavant to this function have been specified, return an error.
+    // If no tests relevant to this function have been specified, return an error.
     // TODO:  is this really the right thing to do?  It's probably an error on the caller's part,
     //        but logically we would just return 0 (no error).
     if ((This->fChecks & USPOOF_CONFUSABLE) == 0) {
@@ -606,7 +606,7 @@ int32_t checkImpl(const SpoofImpl* This, const UnicodeString& id, CheckResult* c
         gNfdNormalizer->normalize(id, nfdText, *status);
         int32_t nfdLength = nfdText.length();
 
-        // scan for more than one occurence of the same non-spacing mark
+        // scan for more than one occurrence of the same non-spacing mark
         // in a sequence of non-spacing marks.
         int32_t     i;
         UChar32     c;
index cfa80e7ca768f00126038ca74578d047575f3c89..600d7ea42a430d8e4d0308b92504cd210db23141 100644 (file)
@@ -110,7 +110,7 @@ class ConfusabledataBuilder : public UMemory {
 
     // Add an entry to the key and value tables being built
     //   input:  data from SLTable, MATable, etc.
-    //   outut:  entry added to fKeyVec and fValueVec
+    //   output:  entry added to fKeyVec and fValueVec
     void addKeyEntry(UChar32     keyChar,     // The key character
                      UHashtable *table,       // The table, one of SATable, MATable, etc.
                      int32_t     tableFlag,   // One of USPOOF_SA_TABLE_FLAG, etc.
index cbfe4d937a2e43030c17f01cfc28c8cc07907e4b..7002c945d1ddfbb49dc74945aa36bab049813fce 100644 (file)
@@ -31,7 +31,7 @@
 
 U_NAMESPACE_BEGIN
 
-// The maximium length (in UTF-16 UChars) of the skeleton replacement string resulting from
+// The maximum length (in UTF-16 UChars) of the skeleton replacement string resulting from
 //   a single input code point.  This is function of the unicode.org data.
 #define USPOOF_MAX_SKELETON_EXPANSION 20
 
@@ -248,7 +248,7 @@ class SpoofData: public UMemory {
     // Get the confusable skeleton transform for a single code point.
     // The result is a string with a length between 1 and 18 as of Unicode 9.
     // This is the main public endpoint for this class.
-    // @return   The length in UTF-16 code units of the substition string.
+    // @return   The length in UTF-16 code units of the substitution string.
     int32_t confusableLookup(UChar32 inChar, UnicodeString &dest) const;
 
     // Get the number of confusable entries in this SpoofData.
index f11816785f6db6dae02fd69da4b7500985f5537a..560e0e5ea66c8c4d449bbfb325fd5d786fe5d642 100644 (file)
@@ -43,7 +43,7 @@
 #define isContinuation(CE) (((CE) & UCOL_CONTINUATION_MARKER) == UCOL_CONTINUATION_MARKER)
 
 /**
- * This indicates an error has occured during processing or there are no more CEs 
+ * This indicates an error has occurred during processing or there are no more CEs 
  * to be returned.
  */
 #define UCOL_PROCESSED_NULLORDER        ((int64_t)U_INT64_MAX)
@@ -101,7 +101,7 @@ public:
      * @param ixHigh a pointer to an int32_t to receive the iterator index after fetching the CE.
      * @param status A pointer to an UErrorCode to receive any errors.
      * @return The next collation elements ordering, otherwise returns UCOL_PROCESSED_NULLORDER 
-     *         if an error has occured or if the end of string has been reached
+     *         if an error has occurred or if the end of string has been reached
      */
     int64_t nextProcessed(int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
     /**
@@ -110,11 +110,11 @@ public:
      *
      * @param ixLow A pointer to an int32_t to receive the iterator index after fetching the CE
      * @param ixHigh A pointer to an int32_t to receiver the iterator index before fetching the CE
-     * @param status A pointer to an UErrorCode to receive any errors. Noteably 
+     * @param status A pointer to an UErrorCode to receive any errors. Notably 
      *               a U_BUFFER_OVERFLOW_ERROR is returned if the internal stack
      *               buffer has been exhausted.
      * @return The previous collation elements ordering, otherwise returns 
-     *         UCOL_PROCESSED_NULLORDER if an error has occured or if the start of
+     *         UCOL_PROCESSED_NULLORDER if an error has occurred or if the start of
      *         string has been reached.
      */
     int64_t previousProcessed(int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
index 83a7c1e466c159ecf83d95a8f370549d02164aee..f2431f374df9047d0c0765e07bb625411f780fd2 100644 (file)
@@ -240,7 +240,7 @@ static UDate parseDateTimeString(const UnicodeString& str, int32_t offset, UErro
             break;
         }
         if (str.charAt(8) != 0x0054) {
-            // charcter "T" must be used for separating date and time
+            // character "T" must be used for separating date and time
             break;
         }
         if (length == 16) {
@@ -663,7 +663,7 @@ static TimeZoneRule* createRuleByRRULE(const UnicodeString& zonename, int rawOff
                     goto unsupportedRRule;
                 }
             }
-            // If ealier month, go through days to find the earliest day
+            // If earlier month, go through days to find the earliest day
             if (tmp_month == earliestMonth) {
                 for (j = 0; j < tmp_daysCount; j++) {
                     tmp_days[j] = tmp_days[j] > 0 ? tmp_days[j] : MONTHLENGTH[tmp_month] + tmp_days[j] + 1;
@@ -881,7 +881,7 @@ static DateTimeRule *toWallTimeRule(const DateTimeRule *rule, int32_t rawOffset,
 }
 
 /*
- * Minumum implementations of stream writer/reader, writing/reading
+ * Minimum implementations of stream writer/reader, writing/reading
  * UnicodeString.  For now, we do not want to introduce the dependency
  * on the ICU I/O stream in this module.  But we want to keep the code
  * equivalent to the ICU4J implementation, which utilizes java.io.Writer/
@@ -1609,7 +1609,7 @@ VTimeZone::parse(UErrorCode& status) {
                     if (startAvail && actualStart < firstStart) {
                         // save from offset information for the earliest rule
                         firstStart = actualStart;
-                        // If this is STD, assume the time before this transtion
+                        // If this is STD, assume the time before this transition
                         // is DST when the difference is 1 hour.  This might not be
                         // accurate, but VTIMEZONE data does not have such info.
                         if (dstSavings > 0) {
@@ -2521,7 +2521,7 @@ VTimeZone::writeZonePropsByDOW_LEQ_DOM(VTZWriter& writer, UBool isDst, const Uni
         writeZonePropsByDOW(writer, isDst, zonename, fromOffset, toOffset,
                 month, -1*((MONTHLENGTH[month] - dayOfMonth)/7 + 1), dayOfWeek, startTime, untilTime, status);
     } else if (month == UCAL_FEBRUARY && dayOfMonth == 29) {
-        // Specical case for February
+        // Special case for February
         writeZonePropsByDOW(writer, isDst, zonename, fromOffset, toOffset,
                 UCAL_FEBRUARY, -1, dayOfWeek, startTime, untilTime, status);
     } else {
index 24bd97a4dcdc5845a01f65bc67e2cf4c0f1a2b60..2c358167a837cb671d5a2d87aae30595a81b17d1 100644 (file)
@@ -240,7 +240,7 @@ LIBDIR=$(top_builddir)/lib
 # Location of the executables before "make install" is used
 BINDIR=$(top_builddir)/bin
 
-# Defined here so that it can be overriden by mh-mingw*.
+# Defined here so that it can be overridden by mh-mingw*.
 # For MinGW/MSYS2 we want the DLLs to go into the bin location.
 MINGW_MOVEDLLSTOBINDIR = NO
 
index 23bbea6d72588d48400a78f35a8db7182eae4655..5aad6b9bbead5ac88d2de01a51ca3bba4c2d5fba 100644 (file)
  * <p>This API provides an stdio-like API wrapper around ICU's other
  * formatting and parsing APIs. It is meant to ease the transition of adding
  * Unicode support to a preexisting applications using stdio. The following
- * is a small list of noticable differences between stdio and ICU I/O's
+ * is a small list of noticeable differences between stdio and ICU I/O's
  * ustdio implementation.</p>
  *
  * <ul>
@@ -237,7 +237,7 @@ typedef enum {
  * and parse output. If this parameter is NULL, the default locale will 
  * be used.
  * @param codepage The codepage in which data will be written to and
- * read from the file. If this paramter is NULL the system default codepage
+ * read from the file. If this parameter is NULL the system default codepage
  * will be used.
  * @return A new UFILE, or NULL if an error occurred.
  * @stable ICU 3.0
@@ -260,7 +260,7 @@ u_fopen(const char    *filename,
  * and parse output. If this parameter is NULL, the default locale will
  * be used.
  * @param codepage The codepage in which data will be written to and
- * read from the file. If this paramter is NULL the system default codepage
+ * read from the file. If this parameter is NULL the system default codepage
  * will be used.
  * @return A new UFILE, or NULL if an error occurred.
  * @stable ICU 54
@@ -281,7 +281,7 @@ u_fopen_u(const UChar    *filename,
  * and parse output. If this parameter is NULL, the default locale will 
  * be used.
  * @param codepage The codepage in which data will be written to and
- * read from the file. If this paramter is NULL, data will be written and
+ * read from the file. If this parameter is NULL, data will be written and
  * read using the default codepage for <TT>locale</TT>, unless <TT>locale</TT>
  * is NULL, in which case the system default codepage will be used.
  * @return A new UFILE, or NULL if an error occurred.
@@ -301,7 +301,7 @@ u_finit(FILE        *f,
  * and parse output. If this parameter is NULL, the default locale will
  * be used.
  * @param codepage The codepage in which data will be written to and
- * read from the file. If this paramter is NULL, data will be written and
+ * read from the file. If this parameter is NULL, data will be written and
  * read using the default codepage for <TT>locale</TT>, unless <TT>locale</TT>
  * is NULL, in which case the system default codepage will be used.
  * @return A new UFILE, or NULL if an error occurred. If an error occurs
@@ -725,7 +725,7 @@ u_fgetcx(UFILE  *f);
  * Unget a UChar from a UFILE.
  * If this function is not the first to operate on <TT>f</TT> after a call
  * to <TT>u_fgetc</TT>, the results are undefined.
- * If this function is passed a character that was not recieved from the
+ * If this function is passed a character that was not received from the
  * previous <TT>u_fgetc</TT> or <TT>u_fgetcx</TT> call, the results are undefined.
  * @param c The UChar to put back on the stream.
  * @param f The UFILE to receive <TT>c</TT>.
index 518f96fb327debe187bb8210d3052fe4cf501515..b8a7aa3c17d9b0aa5c9a06b1d1e5e8675b15f376 100644 (file)
@@ -369,7 +369,7 @@ public:
      * @param fontRuns a pointer to a <code>FontRuns</code> object representing the font runs.
      *
      * @param levelRuns is a pointer to a <code>ValueRuns</code> object representing the directional levels.
-     *        If this pointer in <code>NULL</code> the levels will be determined by running the Unicde
+     *        If this pointer in <code>NULL</code> the levels will be determined by running the Unicode
      *        Bidi algorithm.
      *
      * @param scriptRuns is a pointer to a <code>ValueRuns</code> object representing script runs.
@@ -403,7 +403,7 @@ public:
 
     /**
      * The destructor. Virtual so that it works correctly with
-     * sublcasses.
+     * subclasses.
      *
      * @stable ICU 3.2
      */
index cf24ce537e79f80b016383677119561ae1304397..455f44a0e6c0178eb85cd73b9d55056457abb6e3 100644 (file)
@@ -69,7 +69,7 @@ typedef void pl_visualRun;
  * @param fontRuns a pointer to a <code>pl_fontRuns</code> object representing the font runs.
  *
  * @param levelRuns is a pointer to a <code>pl_valueRuns</code> object representing the directional levels.
- *        If this pointer in <code>NULL</code> the levels will be determined by running the Unicde
+ *        If this pointer in <code>NULL</code> the levels will be determined by running the Unicode
  *        Bidi algorithm.
  *
  * @param scriptRuns is a pointer to a <code>pl_valueRuns</code> object representing script runs.
index acfee82360cbca396166ee9e8a02a0f477629b84..75c1c013ffd6d0405792ea9148077abb22d9b0da 100644 (file)
@@ -144,7 +144,7 @@ le_int32 FontMap::getFontIndex(const char *fontName)
         // The font name table is full. Since there can
         // only be scriptCodeCount fonts in use at once,
         // there should be at least one that's not being
-        // referenced; find it and resue it's index.
+        // referenced; find it and reuse it's index.
 
         for (index = 0; index < fFontCount; index += 1) {
             le_int32 script;
index 06f2c1af01387f66fd3cbf093e45f5f4d4efd777..5b287a12afdbb24956d6a76b07a1f7e2bab4ab7c 100644 (file)
@@ -79,7 +79,7 @@ public:
 
     /**
      * This method maps a single character to a glyph index, using the
-     * font's charcter to glyph map.
+     * font's character to glyph map.
      *
      * @param ch - the character
      *
index edfe65002a63ad8d842bb501985ca92c94f87493..00551c30eef9b12e815d61536db98a911e572cb8 100644 (file)
@@ -273,7 +273,7 @@ bocu1Prev(int32_t c) {
  * Encode a difference -0x10ffff..0x10ffff in 1..4 bytes
  * and return a packed integer with them.
  *
- * The encoding favors small absolut differences with short encodings
+ * The encoding favors small absolute differences with short encodings
  * to compress runs of same-script characters.
  *
  * @param diff difference value -0x10ffff..0x10ffff
index 07b072e2b0d4758b52b9f057d731616720299e05..32cccf5f52049f1b5ea1ba845e8abd038125b565 100644 (file)
@@ -657,7 +657,7 @@ void TestSafeClone() {
     UCollator * someClonedCollators [CLONETEST_COLLATOR_COUNT];
     UCollator * col;
     UErrorCode err = U_ZERO_ERROR;
-    int8_t idx = 6;    /* Leave this here to test buffer alingment in memory*/
+    int8_t idx = 6;    /* Leave this here to test buffer alignment in memory*/
     uint8_t buffer [CLONETEST_COLLATOR_COUNT] [U_COL_SAFECLONE_BUFFERSIZE];
     int32_t bufferSize = U_COL_SAFECLONE_BUFFERSIZE;
     const char sampleRuleChars[] = "&Z < CH";
@@ -1376,7 +1376,7 @@ doAssert( (ucol_tertiaryOrder(order1) != ucol_tertiaryOrder(order3)), "The terti
         return;
     }
     /* this here, my friends, is either pure lunacy or something so obsolete that even it's mother
-     * doesn't care about it. Essentialy, this test complains if secondary values for 'I' and '_'
+     * doesn't care about it. Essentially, this test complains if secondary values for 'I' and '_'
      * are the same. According to the UCA, this is not true. Therefore, remove the test.
      * Besides, if primary strengths for two code points are different, it doesn't matter one bit
      * what is the relation between secondary or any other strengths.
@@ -2313,13 +2313,13 @@ TestOpenBinary(void)
     int32_t imageSize;
 
     if((coll==NULL)||(U_FAILURE(status))) {
-        log_data_err("could not load collators or error occured: %s\n",
+        log_data_err("could not load collators or error occurred: %s\n",
             u_errorName(status));
         return;
     }
     UCA = ucol_open("root", &status);
     if((UCA==NULL)||(U_FAILURE(status))) {
-        log_data_err("could not load UCA collator or error occured: %s\n",
+        log_data_err("could not load UCA collator or error occurred: %s\n",
             u_errorName(status));
         return;
     }
index 40272c8ff73fc0305131274abb0cff0aed21a9ae..51cc8c43e3c6dd31980f39e63fea0986f9dba814 100644 (file)
@@ -229,16 +229,16 @@ static void TestBreakIteratorCAPI()
     status=U_ZERO_ERROR;
 
 
-/* ======= Test ubrk_countAvialable() and ubrk_getAvialable() */
+/* ======= Test ubrk_countAvailable() and ubrk_getAvailable() */
 
     log_verbose("\nTesting ubrk_countAvailable() and ubrk_getAvailable()\n");
     count=ubrk_countAvailable();
     /* use something sensible w/o hardcoding the count */
     if(count < 0){
-        log_err("FAIL: Error in ubrk_countAvialable() returned %d\n", count);
+        log_err("FAIL: Error in ubrk_countAvailable() returned %d\n", count);
     }
     else{
-        log_verbose("PASS: ubrk_countAvialable() successful returned %d\n", count);
+        log_verbose("PASS: ubrk_countAvailable() successful returned %d\n", count);
     }
     for(i=0;i<count;i++)
     {
@@ -378,7 +378,7 @@ static void TestBreakIteratorCAPI()
 static void TestBreakIteratorSafeClone(void)
 {
     UChar text[51];     /* Keep this odd to test for 64-bit memory alignment */
-                        /*  NOTE:  This doesn't reliably force mis-alignment of following items. */
+                        /*  NOTE:  This doesn't reliably force misalignment of following items. */
     uint8_t buffer [CLONETEST_ITERATOR_COUNT] [U_BRK_SAFECLONE_BUFFERSIZE];
     int32_t bufferSize = U_BRK_SAFECLONE_BUFFERSIZE;
 
@@ -702,7 +702,7 @@ static void TestBreakIteratorRules() {
                     pos = ubrk_first(bi);
                     do {
                         if (pos2 != pos) {
-                            log_err("FAIL: interator from ubrk_openBinaryRules does not match original, get pos = %d instead of %d", pos2, pos);
+                            log_err("FAIL: iterator from ubrk_openBinaryRules does not match original, get pos = %d instead of %d", pos2, pos);
                         }
                         pos2 = ubrk_next(bi2);
                         pos = ubrk_next(bi);
@@ -751,7 +751,7 @@ static void TestBreakIteratorRuleError() {
 
 
 /*
-*   TestsBreakIteratorStatusVals()   Test the ubrk_getRuleStatusVec() funciton
+*   TestsBreakIteratorStatusVals()   Test the ubrk_getRuleStatusVec() function
 */
 static void TestBreakIteratorStatusVec() {
     #define RULE_STRING_LENGTH 200
index f0161617e3757db1eca393cb4cb8cd2c90eda592..6d233130fe019d75f7a6ca35495a65f214d90478 100644 (file)
@@ -2224,7 +2224,7 @@ testInverse(void) {
 
     ubidi_close(pBiDi);
 
-    log_verbose("inverse Bidi: rountrips: %5u\nnon-roundtrips: %5u\n", countRoundtrips, countNonRoundtrips);
+    log_verbose("inverse Bidi: roundtrips: %5u\nnon-roundtrips: %5u\n", countRoundtrips, countNonRoundtrips);
 
     _testWriteReverse();
 
index 13bede20a717840507a7fb0e9b314c4cc1273a44..7a0248dee6313b3e5a810dafb4db042a5faa61de 100644 (file)
@@ -332,7 +332,7 @@ static void TestCalendar()
     /* use something sensible w/o hardcoding the count */
     if(count > 0) {
         log_verbose("PASS: ucal_countAvailable() works fine\n");
-        log_verbose("The no: of locales for which calendars are avilable are %d\n", count);
+        log_verbose("The no: of locales for which calendars are available are %d\n", count);
     } else {
         log_data_err("FAIL: Error in countAvailable()\n");
     }
@@ -434,7 +434,7 @@ static void TestCalendar()
         log_err("FAIL: there is an error in getAttributes or setAttributes\n");
     else
         log_verbose("PASS: attribute set and got successfully\n");
-        /*set it back to orginal value */
+        /*set it back to original value */
     log_verbose("Setting it back to normal\n");
     ucal_setAttribute(calit, UCAL_LENIENT, count);
     if(ucal_getAttribute(calit, UCAL_LENIENT)!=count)
@@ -1881,7 +1881,7 @@ static const UChar tzUSPacific[] = { 0x55,0x53,0x2F,0x50,0x61,0x63,0x69,0x66,0x6
 static const UChar tzGMT[] = { 0x47,0x4D,0x54,0 }; /* "GMT" */
 
 static const TFDItem tfdItems[] = {
-    /* timezone    locale          start              target           progres  yDf  MDf    dDf     HDf       mDf         sDf */
+    /* timezone    locale          start              target           progress yDf  MDf    dDf     HDf       mDf         sDf */
     /* For these we compute the progressive difference for each field - not resetting the calendar after each call */
     { tzUSPacific, "en_US",        1267459800000.0,   1277772600000.0,  TRUE,     0,   3,    27,      9,       40,          0 }, /* 2010-Mar-01 08:10 -> 2010-Jun-28 17:50 */
     { tzUSPacific, "en_US",        1267459800000.0,   1299089280000.0,  TRUE,     1,   0,     1,      1,       58,          0 }, /* 2010-Mar-01 08:10 -> 2011-Mar-02 10:08 */
index aae16f98f44f88677c8ba09e3b4916c05f7f96a7..5075013790887d55b531c1ad0a341b77d4945a52 100644 (file)
@@ -163,7 +163,7 @@ static void ListNames(void) {
     uenum_close(allNamesEnum);
     err = U_ZERO_ERROR;
 
-    /*Tests ucnv_getAvailableName(), getAvialableCount()*/
+    /*Tests ucnv_getAvailableName(), getAvailableCount()*/
 
     log_verbose("Testing ucnv_countAvailable()...");
 
@@ -3262,7 +3262,7 @@ static void TestFromUCountPending(){
             continue;
         }
         if(len != fromUnicodeTests[i].exp){
-            log_err("Did not get the expeced output for ucnv_fromUInputConsumed.\n");
+            log_err("Did not get the expected output for ucnv_fromUInputConsumed.\n");
         }
     }
     status = U_ZERO_ERROR;
@@ -3368,7 +3368,7 @@ TestToUCountPending(){
             continue;
         }
         if(len != toUnicodeTests[i].exp){
-            log_err("Did not get the expeced output for ucnv_toUInputConsumed.\n");
+            log_err("Did not get the expected output for ucnv_toUInputConsumed.\n");
         }
     }
     status = U_ZERO_ERROR;    
index cded31edd5b0bddf5c325981a95c8ee133cf5b32..8c638bd0d0621a8e1c0bc07b83e7ffb2adca1e89 100644 (file)
@@ -242,7 +242,7 @@ static void TestDateFormat()
         log_err("FAIL: Error in parsing using udat_parse(.....) %s\n", myErrorName(status) );
     }
     else
-        log_verbose("PASS: parsing succesful\n");
+        log_verbose("PASS: parsing successful\n");
     /*format it back and check for equality */
 
 
@@ -260,7 +260,7 @@ static void TestDateFormat()
         log_err("FAIL: udat_parse(\"bad string\") passed when it should have failed\n");
     }
     else
-        log_verbose("PASS: parsing succesful\n");
+        log_verbose("PASS: parsing successful\n");
 
 
 
@@ -275,7 +275,7 @@ static void TestDateFormat()
             myErrorName(status) );
     }
     else
-        log_verbose("PASS: creating dateformat using udat_openPattern() succesful\n");
+        log_verbose("PASS: creating dateformat using udat_openPattern() successful\n");
 
 
         /*Testing applyPattern and toPattern */
@@ -353,7 +353,7 @@ static void TestDateFormat()
     if(u_strcmp(myNumformat(numformat1, num), myNumformat(numformat2, num)) !=0)
         log_err("FAIL: error in setNumberFormat or getNumberFormat()\n");
     else
-        log_verbose("PASS:setNumberFormat and getNumberFormat succesful\n");
+        log_verbose("PASS:setNumberFormat and getNumberFormat successful\n");
 
     /*Test getNumberFormat() and adoptNumberFormat() */
     log_verbose("\nTesting the get and adopt NumberFormat properties of date format\n");
@@ -363,7 +363,7 @@ static void TestDateFormat()
     if(u_strcmp(myNumformat(adoptNF, num), myNumformat(numformat2, num)) !=0)
         log_err("FAIL: error in adoptNumberFormat or getNumberFormat()\n");
     else
-        log_verbose("PASS:adoptNumberFormat and getNumberFormat succesful\n");
+        log_verbose("PASS:adoptNumberFormat and getNumberFormat successful\n");
 
     /*try setting the number format to another format */
     numformat1=udat_getNumberFormat(def);
@@ -372,7 +372,7 @@ static void TestDateFormat()
     if(u_strcmp(myNumformat(numformat1, num), myNumformat(numformat2, num)) !=0)
         log_err("FAIL: error in setNumberFormat or getNumberFormat()\n");
     else
-        log_verbose("PASS: setNumberFormat and getNumberFormat succesful\n");
+        log_verbose("PASS: setNumberFormat and getNumberFormat successful\n");
 
 
 
@@ -658,7 +658,7 @@ static void TestSymbols()
         log_err("FAIL: Error in udat_getSymbols().... %s\n", myErrorName(status) );
     }
     else
-        log_verbose("PASS: getSymbols succesful\n");
+        log_verbose("PASS: getSymbols successful\n");
 
     if(u_strcmp(result, pattern)==0)
         log_verbose("PASS: getSymbols retrieved the right value\n");
@@ -780,7 +780,7 @@ free(pattern);
         log_err("FAIL: error in retrieving the value using getSymbols i.e roundtrip\n");
 
     if(u_strcmp(result, value)!=0)
-        log_data_err("FAIL: Error in settting and getting symbols\n");
+        log_data_err("FAIL: Error in setting and getting symbols\n");
     else
         log_verbose("PASS: setSymbols successful\n");
 
index d7126eca616b7d892e9315e3657423eb9b2bfba2..bd8e94c0624a9a81e922e53721afe9969392d442 100644 (file)
@@ -67,7 +67,7 @@ void TestTwoDigitYearDSTParse()
             myErrorName(status) );
     }
     else {
-        log_verbose("PASS: creating dateformat using udat_openPattern() succesful\n");
+        log_verbose("PASS: creating dateformat using udat_openPattern() successful\n");
     
         u_uastrcpy(pattern, "dd-MMM-yy h:mm:ss 'o''clock' a z");
         fmt= udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US", NULL, 0,pattern, u_strlen(pattern), &status);
index 6c771111618007fa6eb8db86d4a9b0adbf937ffa..06ab2e1be3e494768fee7991598f005d3f00e270 100644 (file)
@@ -1004,7 +1004,7 @@ static void TestSmallBuffer()
 }
 
 /**
-* Testing the discontigous contractions
+* Testing the discontiguous contractions
 */
 static void TestDiscontiguos() {
     const char               *rulestr    =
index df9cebed9fb0206b79c9d77db7e8cb9b0adf2991..16adf9a81a4a3289c0d7ccab0372273234dfb41c 100644 (file)
@@ -853,14 +853,14 @@ static void TestGetDisplayScriptPreFlighting21160()
     free(result);
 }
 
-/* test for uloc_getAvialable()  and uloc_countAvilable()*/
+/* test for uloc_getAvailable()  and uloc_countAvailable()*/
 static void TestGetAvailableLocales()
 {
 
     const char *locList;
     int32_t locCount,i;
 
-    log_verbose("Testing the no of avialable locales\n");
+    log_verbose("Testing the no of available locales\n");
     locCount=uloc_countAvailable();
     if (locCount == 0)
         log_data_err("countAvailable() returned an empty list!\n");
@@ -6891,7 +6891,7 @@ static void TestBadLocaleIDs() {
 }
 
 // Test case for ICU-20370.
-// The issue shows as an Addresss Sanitizer failure.
+// The issue shows as an Address Sanitizer failure.
 static void TestBug20370() {
     const char *localeID = "x-privatebutreallylongtagfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar";
     uint32_t lcid = uloc_getLCID(localeID);
index 69f4e6f1b626ea92c076b0faa3df65cdddda0f1b..e6597e0ce422c9ad23cb89809b26b7ffd9a437c1 100644 (file)
@@ -100,7 +100,7 @@ static void TestTrailingNull(void);
 static void TestGetLocale(void);
 
 /**
- * additional intialization for datatables storing expected values
+ * additional initialization for datatables storing expected values
  */
 static void setUpDataTable(void);
 static void cleanUpDataTable(void);
index 6fdaaebc39441270c2d23f148fb304cc0f1ea360..206daa20a3d6028724f7b8099b8a67bd78f7e42f 100644 (file)
@@ -1043,7 +1043,7 @@ static void TestIncrementalNormalize(void) {
         doTest(coll, strA, strB, UCOL_GREATER);
     }
 
-    /*  Test 4:  Imbedded nulls do not terminate a string when length is specified.*/
+    /*  Test 4:  Embedded nulls do not terminate a string when length is specified.*/
 
     {
         static const UChar strA[] = {0x41, 0x00, 0x42, 0x00};
@@ -1790,7 +1790,7 @@ static void TestVariableTopSetting(void) {
     ucol_setVariableTop(coll, first, -1, &status);
 
     if(U_SUCCESS(status)) {
-      log_err("Invalid contraction succeded in setting variable top!\n");
+      log_err("Invalid contraction succeeded in setting variable top!\n");
     }
 
   }
@@ -2049,7 +2049,7 @@ static void TestPrefix(void) {
   }
 }
 
-/* This test uses data suplied by Masashiko Maedera to test the implementation */
+/* This test uses data supplied by Masashiko Maedera to test the implementation */
 /* JIS X 4061 collation order implementation                                   */
 static void TestNewJapanese(void) {
 
@@ -4361,7 +4361,7 @@ static void TestSameStrengthListQwerty(void)
     /* Quoted characters also will work if two quoted characters are not consecutive.  */
     "&\\u0071<*'\\u0077'\\u0065\\u0072 &\\u0077<<*\\u0074'\\u0079'\\u0075 &\\u0074<<<*\\u0069\\u006f'\\u0070' &'\\u006f'=*\\u0061\\u0073\\u0064",
 
-    /* Consecutive quoted charactes do not work, because a '' will be treated as a quote character. */
+    /* Consecutive quoted characters do not work, because a '' will be treated as a quote character. */
     /* "&\\u0071<*'\\u0077''\\u0065''\\u0072' &\\u0077<<*'\\u0074''\\u0079''\\u0075' &\\u0074<<<*'\\u0069''\\u006f''\\u0070' &'\\u006f'=*\\u0061\\u0073\\u0064",*/
 
  };
@@ -4597,7 +4597,7 @@ static void TestBeforeRuleWithScriptReordering(void)
     ucol_getSortKey(myCollation, base, baseLen, baseKey, 256);
     ucol_getSortKey(myCollation, before, beforeLen, beforeKey, 256);
     if (baseKey[0] != beforeKey[0]) {
-        log_err("Different lead byte for sort keys using before fule and after script reordering. base character lead byte = %02x, before character lead byte = %02x\n", baseKey[0], beforeKey[0]);
+        log_err("Different lead byte for sort keys using before rule and after script reordering. base character lead byte = %02x, before character lead byte = %02x\n", baseKey[0], beforeKey[0]);
     }
 
     ucol_close(myCollation);
index 57484ea3d2edf9e40da5e2d9ec3c5b78d424c3e3..a64ef96325dd604f71c230dc04ee881d3e032168 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "cintltst.h"
 
-/* The function used to test differnet format patterns*/
+/* The function used to test different format patterns*/
 static void TestPatterns(void);
 
 /*  Test the handling of quotes*/
index a71a3f3a0e9ee38a99a5e419a08278e0d861dbd7..c16f8a62846a71d4685bd3f6f0299bd8c673b35c 100644 (file)
@@ -646,7 +646,7 @@ void TestCheckFCD()
   {
     UBool fcdresult = unorm_quickCheck(datastr[count], 4, UNORM_FCD, &status);
     if (U_FAILURE(status)) {
-      log_data_err("unorm_quickCheck(FCD) failed: exception occured at data set %d - (Are you missing data?)\n", count);
+      log_data_err("unorm_quickCheck(FCD) failed: exception occurred at data set %d - (Are you missing data?)\n", count);
       break;
     }
     else {
@@ -678,7 +678,7 @@ void TestCheckFCD()
       normsize += unorm_normalize(data + size, 1, UNORM_NFD, 0,
                                   norm + normsize, 100 - normsize, &status);
       if (U_FAILURE(status)) {
-        log_data_err("unorm_quickCheck(FCD) failed: exception occured at data generation - (Are you missing data?)\n");
+        log_data_err("unorm_quickCheck(FCD) failed: exception occurred at data generation - (Are you missing data?)\n");
         break;
       }
       size ++;
@@ -688,7 +688,7 @@ void TestCheckFCD()
     nfdsize = unorm_normalize(data, size, UNORM_NFD, 0,
                               nfd, 100, &status);
     if (U_FAILURE(status)) {
-      log_data_err("unorm_quickCheck(FCD) failed: exception occured at normalized data generation - (Are you missing data?)\n");
+      log_data_err("unorm_quickCheck(FCD) failed: exception occurred at normalized data generation - (Are you missing data?)\n");
     }
 
     if (nfdsize != normsize || u_memcmp(nfd, norm, nfdsize) != 0) {
index 357aca560791355875f72bf3bebb00f2e6772279..42fca481462c9be089d1374a250dea93c3b8f096 100644 (file)
@@ -264,8 +264,8 @@ static void TestNumberFormat()
     if(numlocales < 0)
         log_err("error in countAvailable");
     else{
-        log_verbose("unum_countAvialable() successful\n");
-        log_verbose("The no: of locales where number formattting is applicable is %d\n", numlocales);
+        log_verbose("unum_countAvailable() successful\n");
+        log_verbose("The no: of locales where number formatting is applicable is %d\n", numlocales);
     }
     for(i=0;i<numlocales;i++)
     {
@@ -673,17 +673,17 @@ free(result);
     unum_getTextAttribute(cur_fr, UNUM_NEGATIVE_SUFFIX, temp, resultlength, &status);
     if(U_FAILURE(status))
     {
-        log_err("Failure in gettting the Text attributes of number format: %s\n", myErrorName(status));
+        log_err("Failure in getting the Text attributes of number format: %s\n", myErrorName(status));
     }
     unum_setTextAttribute(cur_def, UNUM_NEGATIVE_SUFFIX, temp, u_strlen(temp), &status);
     if(U_FAILURE(status))
     {
-        log_err("Failure in gettting the Text attributes of number format: %s\n", myErrorName(status));
+        log_err("Failure in getting the Text attributes of number format: %s\n", myErrorName(status));
     }
     unum_getTextAttribute(cur_def, UNUM_NEGATIVE_SUFFIX, suffix, resultlength, &status);
     if(U_FAILURE(status))
     {
-        log_err("Failure in gettting the Text attributes of number format: %s\n", myErrorName(status));
+        log_err("Failure in getting the Text attributes of number format: %s\n", myErrorName(status));
     }
     if(u_strcmp(suffix,temp)!=0)
         log_err("Fail:Error in setTextAttribute or getTextAttribute in setting and getting suffix\n");
@@ -884,7 +884,7 @@ free(result);
         }
         u_austrncpy(desta, dest, DESTCAPACITY);
         if (strcmp(numFormatted, desta) != 0) {
-            log_err("File %s, Line %d, (expected, acutal) =  (\"%s\", \"%s\")\n",
+            log_err("File %s, Line %d, (expected, actual) =  (\"%s\", \"%s\")\n",
                     __FILE__, __LINE__, numFormatted, desta);
         }
         if ((int32_t)strlen(numFormatted) != resultSize) {
@@ -901,15 +901,15 @@ free(result);
         }
         u_austrncpy(desta, dest, DESTCAPACITY);
         if (strcmp(numFormatted, desta) != 0) {
-            log_err("File %s, Line %d, (expected, acutal) =  (\"%s\", \"%s\")\n",
+            log_err("File %s, Line %d, (expected, actual) =  (\"%s\", \"%s\")\n",
                     __FILE__, __LINE__, numFormatted, desta);
         }
         if (fieldPos.beginIndex != 26) {  /* index of "." in formatted number */
-            log_err("File %s, Line %d, (expected, acutal) =  (%d, %d)\n",
+            log_err("File %s, Line %d, (expected, actual) =  (%d, %d)\n",
                     __FILE__, __LINE__, 0, fieldPos.beginIndex);
         }
         if (fieldPos.endIndex != 27) {
-            log_err("File %s, Line %d, (expected, acutal) =  (%d, %d)\n",
+            log_err("File %s, Line %d, (expected, actual) =  (%d, %d)\n",
                     __FILE__, __LINE__, 0, fieldPos.endIndex);
         }
 
@@ -3549,28 +3549,28 @@ static void TestMinIntMinFracZero(void) {
             status = U_ZERO_ERROR;
             ulen = unum_formatDouble(unum, 10.0, ubuf, kUBufMax, NULL, &status);
             if ( U_FAILURE(status) ) {
-                log_err("unum_formatDouble (CURRRENCY) 10.0 ulen %d fails with %s\n", ulen, u_errorName(status));
+                log_err("unum_formatDouble (CURRENCY) 10.0 ulen %d fails with %s\n", ulen, u_errorName(status));
             } else if (u_strcmp(ubuf, u"$10") != 0) {
                 u_austrncpy(bbuf, ubuf, kUBufMax);
-                log_err("unum_formatDouble (CURRRENCY) 10.0 expected \"$10\", got \"%s\"\n", bbuf);
+                log_err("unum_formatDouble (CURRENCY) 10.0 expected \"$10\", got \"%s\"\n", bbuf);
             }
 
             status = U_ZERO_ERROR;
             ulen = unum_formatDouble(unum, 0.9, ubuf, kUBufMax, NULL, &status);
             if ( U_FAILURE(status) ) {
-                log_err("unum_formatDouble (CURRRENCY) 0.9 ulen %d fails with %s\n", ulen, u_errorName(status));
+                log_err("unum_formatDouble (CURRENCY) 0.9 ulen %d fails with %s\n", ulen, u_errorName(status));
             } else if (u_strcmp(ubuf, u"$.9") != 0) {
                 u_austrncpy(bbuf, ubuf, kUBufMax);
-                log_err("unum_formatDouble (CURRRENCY) 0.9 expected \"$.9\", got \"%s\"\n", bbuf);
+                log_err("unum_formatDouble (CURRENCY) 0.9 expected \"$.9\", got \"%s\"\n", bbuf);
             }
 
             status = U_ZERO_ERROR;
             ulen = unum_formatDouble(unum, 0.0, ubuf, kUBufMax, NULL, &status);
             if ( U_FAILURE(status) ) {
-                log_err("unum_formatDouble (CURRRENCY) 0.0 ulen %d fails with %s\n", ulen, u_errorName(status));
+                log_err("unum_formatDouble (CURRENCY) 0.0 ulen %d fails with %s\n", ulen, u_errorName(status));
             } else if (u_strcmp(ubuf, u"$0") != 0) {
                 u_austrncpy(bbuf, ubuf, kUBufMax);
-                log_err("unum_formatDouble (CURRRENCY) 0.0 expected \"$0\", got \"%s\"\n", bbuf);
+                log_err("unum_formatDouble (CURRENCY) 0.0 expected \"$0\", got \"%s\"\n", bbuf);
             }
 
             unum_close(unum);
index 2a3cb19030cac5cb1b0d27c5229b3e686093808b..31eebc49481f5ddf223ba0d82deffa8be524a5d3 100644 (file)
@@ -75,7 +75,7 @@ const static UCollationResult results[] = {
     UCOL_GREATER,
     /* test priamry > 8 */
     UCOL_LESS,
-    UCOL_LESS, /*Turkish translator made a primary differnce between dotted and dotless I */
+    UCOL_LESS, /*Turkish translator made a primary difference between dotted and dotless I */
     UCOL_GREATER
 };
 
index acb01960ce20b759b08f9b4a01bbb68d89bbaf30..dd9c6b84a4d670d436a3406a2fb7cda348f66513 100644 (file)
@@ -2322,7 +2322,7 @@ TestUScriptRunAPI()
         uscript_closeRun(scriptRun);
     
         /* 
-         * Now open an interator over the testString
+         * Now open an iterator over the testString
          * using uscript_openRun and make sure that it works
          */
         scriptRun = uscript_openRun(testString, stringLimit, &err);
index a1fc7b9c81549c2454072b21c74fc5da108792c4..db503ff113d3c6459511ea2633efb2bd4874daff 100644 (file)
@@ -129,13 +129,13 @@ static void TestStringFunctions()
             u_memcpy(temp,dataTable[i][j], 7);
 
             if(temp[7] != 0xA4)
-                log_err("an error occured in u_memcpy()\n");
+                log_err("an error occurred in u_memcpy()\n");
             if(u_memcmp(temp, dataTable[i][j], 7)!=0)
-                log_err("an error occured in u_memcpy() or u_memcmp()\n");
+                log_err("an error occurred in u_memcpy() or u_memcmp()\n");
         }
     }
     if(u_memcmp(dataTable[0][0], dataTable[1][1], 7)==0)
-        log_err("an error occured in u_memcmp()\n");
+        log_err("an error occurred in u_memcmp()\n");
 
     log_verbose("Testing u_memset()\n");
     nullTemp[0] = 0;
@@ -143,7 +143,7 @@ static void TestStringFunctions()
     u_memset(nullTemp, 0xa4, 7);
     for (i = 0; i < 7; i++) {
         if(nullTemp[i] != 0xa4) {
-            log_err("an error occured in u_memset()\n");
+            log_err("an error occurred in u_memset()\n");
         }
     }
     if(nullTemp[7] != 0) {
@@ -155,7 +155,7 @@ static void TestStringFunctions()
     temp[7] = 0;
     u_memcpy(temp,nullTemp, 7);
     if(u_memcmp(temp, nullTemp, 7)!=0 || temp[7]!=0)
-        log_err("an error occured in u_memcpy() or u_memcmp()\n");
+        log_err("an error occurred in u_memcpy() or u_memcmp()\n");
 
 
     log_verbose("Testing u_memmove()\n");
@@ -164,11 +164,11 @@ static void TestStringFunctions()
     }
     u_memmove(temp + 1, temp, 7);
     if(temp[0] != 0) {
-        log_err("an error occured in u_memmove()\n");
+        log_err("an error occurred in u_memmove()\n");
     }
     for (i = 1; i <= 7; i++) {
         if(temp[i] != (i - 1)) {
-            log_err("an error occured in u_memmove()\n");
+            log_err("an error occurred in u_memmove()\n");
         }
     }
 
@@ -187,7 +187,7 @@ static void TestStringFunctions()
         }
     }
     if(u_strcmp(dataTable[0][0], dataTable[1][1])==0)
-        log_err("an error occured in u_memcmp()\n");
+        log_err("an error occurred in u_memcmp()\n");
 
     log_verbose("testing u_strcat()\n");
     i=0;
@@ -208,7 +208,7 @@ static void TestStringFunctions()
             log_err("Something threw an error in u_strncmp\n");
     }
     if(u_strncmp(dataTable[0][0], dataTable[1][1], 7)==0)
-        log_err("an error occured in u_memcmp()\n");
+        log_err("an error occurred in u_memcmp()\n");
 
 
     log_verbose("Testing u_strncat\n");
@@ -406,7 +406,7 @@ static void TestStringFunctions()
         u_uastrcpy(delimBuf, "q");  /* Give it a delimiter that it can't find. */
         ptr = u_strtok_r(currTokenBuf, delimBuf, &state);
         if (ptr == NULL || u_strcmp(ptr, temp) != 0) {
-            log_err("Should have recieved the same string when there are no delimiters\n");
+            log_err("Should have received the same string when there are no delimiters\n");
         }
         if (u_strtok_r(NULL, delimBuf, &state) != NULL) {
             log_err("Should not have found another token in a one token string\n");
index 05f24700faf8fe32499371c8fa7d5f77058c5b1d..19633c03486331f0dba7fe7208826bb983402776 100644 (file)
@@ -27,7 +27,7 @@ void addTestEuroRegression(TestNode** root)
  *
  * After updating all ibm-*.ucm files with precise fallback indicators (|0, |1, |3),
  * some of these codepages failed the Euro regression test.
- * This means that the actuall mappings changed when only the preciseness of fallback
+ * This means that the actual mappings changed when only the preciseness of fallback
  * mappings should have changed.
  * My (Markus) suspicion is that some files got Euro sign mappings added manually,
  * changing their contents compared to the NLTC (IBM Toronto codepage database) definition.
@@ -156,7 +156,7 @@ UBool isEuroAware(UConverter* myConv)
             &err);
     if (U_FAILURE(err))
     {
-      log_err("Failure Occured in ucnv_fromUChars euro roundtrip test\n");
+      log_err("Failure occurred in ucnv_fromUChars euro roundtrip test\n");
       return FALSE;
     }
     euroBackSize = ucnv_toUChars(myConv,
@@ -168,17 +168,17 @@ UBool isEuroAware(UConverter* myConv)
     (void)euroBackSize;    /* Suppress set but not used warning. */
     if (U_FAILURE(err))
     {
-        log_err("Failure Occured in ucnv_toUChars euro roundtrip test\n");
+        log_err("Failure occurred in ucnv_toUChars euro roundtrip test\n");
         return FALSE;
     }
     if (u_strcmp(euroString, euroBack)) 
     {
-        /*      log_err("%s FAILED Euro rountrip\n", myName);*/
+        /*      log_err("%s FAILED Euro roundtrip\n", myName);*/
         return FALSE;
     }
     else 
     {
-        /*      log_verbose("%s PASSED Euro rountrip\n", myName);*/
+        /*      log_verbose("%s PASSED Euro roundtrip\n", myName);*/
         return TRUE;
     }
 
index 15ee5b4120c5fa9bfc27bb1c8646a3164cb01517..558120de3d2ffb8c8b0ba6d7c4b1e49f7d4ac0d2 100644 (file)
@@ -77,7 +77,7 @@ static char *safeGetICUDataDirectory() {
 /*
  *  Test Heap Functions.
  *    Implemented on top of the standard malloc heap.
- *    All blocks increased in size by 8 to 16 bytes, and the poiner returned to ICU is
+ *    All blocks increased in size by 8 to 16 bytes, and the pointer returned to ICU is
  *       offset up by 8 to 16, which should cause a good heap corruption if one of our "blocks"
  *       ends up being freed directly, without coming through us.
  *    Allocations are counted, to check that ICU actually does call back to us.
@@ -134,7 +134,7 @@ static void TestHeapFunctions() {
 
     /* Verify that ICU can be cleaned up and reinitialized successfully.
      *  Failure here usually means that some ICU service didn't clean up successfully,
-     *  probably because some earlier test accidently left something open. */
+     *  probably because some earlier test accidentally left something open. */
     ctest_resetICU();
 
     /* Un-initialize ICU */
index e42aedea0c120839878f3091c39c6d04ce13c2ba..3025e85416ef01993b749f4d1cf89572cadde7fc 100644 (file)
@@ -417,7 +417,7 @@ static const char * const domainNames[] = {
     /*"www.\\u0021.com",*/
     /*"www.\\u0024.com",*/
     /*"\\u003f",*/
-    /* These yeild U_IDNA_PROHIBITED_ERROR*/
+    /* These yield U_IDNA_PROHIBITED_ERROR*/
     /*"\\u00CF\\u0082.com",*/
     /*"\\u00CE\\u00B2\\u00C3\\u009Fss.com",*/
     /*"\\u00E2\\u0098\\u00BA.com",*/
index d1e8453b03b1ce5fe85113d4a230acfe05305374..dc91aa5e0ea224792e637bac39826a3d901dd4d4 100644 (file)
@@ -44,7 +44,7 @@ static void TestLegalAndOthers(int32_t inputsize, int32_t outputsize);
 static void TestSingleByte(int32_t inputsize, int32_t outputsize);
 static void TestEBCDIC_STATEFUL_Sub(int32_t inputsize, int32_t outputsize);
 
-/* Following will return FALSE *only* on a mismach. They will return TRUE on any other error OR success, because
+/* Following will return FALSE *only* on a mismatch. They will return TRUE on any other error OR success, because
  * the error would have been emitted to log_err separately. */
 
 UBool testConvertFromUnicode(const UChar *source, int sourceLen,  const uint8_t *expect, int expectLen, 
index 407e4fcbf41ba8320596a70f5abc1ceb960c4408..d7e5efa2a8fc69ac1f054c7fca82275593d1d0d4 100644 (file)
@@ -11,7 +11,7 @@
 *
 * Modification History:
 *      Name              Date                  Description            
-* Madhu Katragadda    06/23/2000     Tests for Conveter FallBack API and Functionality
+* Madhu Katragadda    06/23/2000     Tests for Converter FallBack API and Functionality
 ******************************************************************************
 */
 #include <stdio.h>
@@ -376,7 +376,7 @@ static UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const U
                 (const char **)&src,
                 (const char *)srcLimit,
                 checkOffsets ? offs : NULL,
-                (UBool)(srcLimit == realSourceEnd), /* flush if we're at the end of hte source data */
+                (UBool)(srcLimit == realSourceEnd), /* flush if we're at the end of the source data */
                 &status);
     } while ( (status == U_BUFFER_OVERFLOW_ERROR) || (srcLimit < realSourceEnd) ); /* while we just need another buffer */
 
@@ -574,7 +574,7 @@ static void TestConvertFallBackWithBufferSizes(int32_t outsize, int32_t insize )
         retrievedMBCSText, UPRV_LENGTHOF(retrievedMBCSText),"ibm-950", TRUE, fromIBM950offs ))
         log_err("ibm-950->u(MBCS) with Fallback did not match.\n");
     
-   /*commented untill data table is available*/
+   /*commented until data table is available*/
     log_verbose("toUnicode fallback with fallback data for MBCS\n");
     {
         const uint8_t IBM950input[] =   {  
index 77f7fbc9669932a782ada30762be5ffe3644b871..7f56e6444207051ff77010ee7bd68e1b77664b1b 100644 (file)
@@ -1436,7 +1436,7 @@ static UBool testConvertToU( const uint8_t *source, int sourcelen, const UChar *
                 (const char **)&src,
                 (const char *)srcLimit,
                 offs,
-                doFlush, /* flush if we're at the end of hte source data */
+                doFlush, /* flush if we're at the end of the source data */
                 &status);
         if(testReset) 
             ucnv_resetFromUnicode(conv);
index 73e0fded9a42d0d8253ba4ec1343fb42f5436e83..ce37bab84634799c367e182ddddfbef676a505f9 100644 (file)
@@ -592,7 +592,7 @@ static ETestConvertResult testConvertToU( const uint8_t *source, int sourcelen,
                 &src,
                 srcLimit,
                 checkOffsets ? offs : NULL,
-                (UBool)(srcLimit == realSourceEnd), /* flush if we're at the end of hte source data */
+                (UBool)(srcLimit == realSourceEnd), /* flush if we're at the end of the source data */
                 &status);
 
         /*        offs += (targ-oldTarg); */
@@ -698,7 +698,7 @@ static void TestNewConvertWithBufferSizes(int32_t outsize, int32_t insize )
      { 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0007, 0x000a, 0x000d, 0x000e, 0x000e };
 
 #ifdef U_ENABLE_GENERIC_ISO_2022
-    /* Same as UTF8, but with ^[%B preceeding */
+    /* Same as UTF8, but with ^[%B preceding */
     static const const uint8_t expectedISO2022[] =
      { 0x1b, 0x25, 0x42, 0x31, 0x32, 0x33, 0x00, 0xe4, 0xb8, 0x80, 0xe4, 0xba, 0x8c, 0xe4, 0xb8, 0x89, 0x2E };
     static const int32_t toISO2022Offs[]     =
@@ -4707,7 +4707,7 @@ TestEBCDIC_STATEFUL() {
      /* Test the condition when source >= sourceLimit */
     TestNextUCharError(cnv, source, source, U_INDEX_OUTOFBOUNDS_ERROR, "sourceLimit <= source");
     ucnv_reset(cnv);
-    /*Test for the condition where source > sourcelimit after consuming the shift chracter */
+    /*Test for the condition where source > sourcelimit after consuming the shift character */
     {
         static const uint8_t source1[]={0x0f};
         TestNextUCharError(cnv, (const char*)source1, (const char*)source1+sizeof(source1), U_INDEX_OUTOFBOUNDS_ERROR, "a character is truncated");
@@ -5487,7 +5487,7 @@ static void TestJitterbug1293(){
         numNeeded = bytes_needed;
     } while (status == U_BUFFER_OVERFLOW_ERROR);
     if(U_FAILURE(status)){
-      log_err("An error occured in ucnv_fromUChars. Error: %s", u_errorName(status));
+      log_err("An error occurred in ucnv_fromUChars. Error: %s", u_errorName(status));
       return;
     }
     ucnv_close(conv);
index 73bc59a00f8cc0d5a0f9725a04f50207d4f80ffa..db96148014707dfc0f2b899ee4d057da1d875f67 100644 (file)
@@ -2236,7 +2236,7 @@ static void TestRefreshInput(void) {
 
 
 static void TestBug8421(void) {
-    /* Bug 8421:  setTimeLimit on a regular expresssion before setting text to be matched
+    /* Bug 8421:  setTimeLimit on a regular expression before setting text to be matched
      *             was failing. 
      */
     URegularExpression *re;
index c6ddbe09542d3a1adabfb803e6c132cbf57c8e39..131d4c3d759e35b43bbe49557e412b0546ced01b 100644 (file)
@@ -10,7 +10,7 @@
 * File spooftest.c
 *
 *********************************************************************************/
-/*C API TEST for the uspoof Unicode Indentifier Spoofing and Security API */
+/*C API TEST for the uspoof Unicode Identifier Spoofing and Security API */
 /**
 *   This is an API test for ICU spoof detection in plain C.  It doesn't test very many cases, and doesn't
 *   try to test the full functionality.  It just calls each function and verifies that it
@@ -111,7 +111,7 @@ const UChar lll_Latin_b[] = {(UChar)0xff29, (UChar)0x217c, (UChar)0x196, 0};
 
 const UChar lll_Cyrl[]    = {(UChar)0x0406, (UChar)0x04C0, (UChar)0x31, 0};
 
-/* The skeleton transform for all of thes 'lll' lookalikes is all lower case l. */
+/* The skeleton transform for all of these 'lll' lookalikes is all lower case l. */
 const UChar lll_Skel[]    = {(UChar)0x6c, (UChar)0x6c, (UChar)0x6c, 0};  
 
 const UChar han_Hiragana[] = {(UChar)0x3086, (UChar)0x308A, (UChar)0x0020, (UChar)0x77F3, (UChar)0x7530, 0};
index 929bf48c80c15909e1e0c24465b61ac4fb29323f..818478107abeeb3bdddd1d2fcf6b959fd9aa779a 100644 (file)
@@ -184,7 +184,7 @@ static UBool doTestNames(const char *name, const char *standard, const char **ex
         return 0;
     }
     if (size < 0 && myEnum) {
-        log_err("FAIL: size < 0, but recieved an actual object\n");
+        log_err("FAIL: size < 0, but received an actual object\n");
         return 0;
     }
     log_verbose("\n%s %s\n", name, standard);
@@ -236,7 +236,7 @@ static UBool doTestUCharNames(const char *name, const char *standard, const char
         return 0;
     }
     if (size < 0 && myEnum) {
-        log_err("FAIL: size < 0, but recieved an actual object\n");
+        log_err("FAIL: size < 0, but received an actual object\n");
         return 0;
     }
     log_verbose("\n%s %s\n", name, standard);
index b70bf539d50293e11b123428d9fb4ca2713f4655..f1cf243208d1b11732112fb97a96678e74053707 100644 (file)
@@ -448,7 +448,7 @@ testTrieRanges(const char *testName,
                const CheckRange checkRanges[], int32_t countCheckRanges,
                UBool dataIs32, UBool latin1Linear) {
     union{
-        double bogus; /* needed for aligining the storage */
+        double bogus; /* needed for aligning the storage */
         uint8_t storage[32768];
     } storageHolder;
     UTrieGetFoldingOffset *getFoldingOffset;
index e39c46aaa7a4f8bcde04a32e9ee84b25627166a1..f65f8d79aa4fa63eb686f8cb371c78b7b8a0770a 100644 (file)
@@ -208,7 +208,7 @@ try_le:
 
 
     if (strcmp(name, "UTF-16LE") != 0) {
-        log_err("Enconding detection failure for UTF-16LE: got %s\n", name);
+        log_err("Encoding detection failure for UTF-16LE: got %s\n", name);
     }
 
     if (conf != 100) {
index a52078d0477ed305465015f982284212758fc376..109503db4d337b35b6bb733914cf1a83b3f70b15 100644 (file)
@@ -569,10 +569,10 @@ isAcceptable1(void *context,
         pInfo->dataFormat[3]==0x6c &&
         pInfo->formatVersion[0]==3 )
     {
-        log_verbose("The data from \"%s.%s\" IS acceptable using the verifing function isAcceptable1()\n", name, type);
+        log_verbose("The data from \"%s.%s\" IS acceptable using the verifying function isAcceptable1()\n", name, type);
         return TRUE;
     } else {
-        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifing function isAcceptable1():-\n"
+        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifying function isAcceptable1():-\n"
             "\tsize              = %d\n"
             "\tisBigEndian       = %d\n"
             "\tcharsetFamily     = %d\n"
@@ -582,7 +582,7 @@ isAcceptable1(void *context,
             name, type, pInfo->size,  pInfo->isBigEndian, pInfo->charsetFamily, pInfo->formatVersion[0], 
             pInfo->dataVersion[0], pInfo->dataFormat[0], pInfo->dataFormat[1], pInfo->dataFormat[2], 
             pInfo->dataFormat[3]);  
-        log_verbose("Call another verifing function to accept the data\n");
+        log_verbose("Call another verifying function to accept the data\n");
         return FALSE;
     }
 }
@@ -606,10 +606,10 @@ isAcceptable2(void *context,
         pInfo->formatVersion[0]==1 &&
         pInfo->dataVersion[0]==unicodeVersion[0] )
     {
-        log_verbose("The data from \"%s.%s\" IS acceptable using the verifing function isAcceptable2()\n", name, type);
+        log_verbose("The data from \"%s.%s\" IS acceptable using the verifying function isAcceptable2()\n", name, type);
         return TRUE;
     } else {
-        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifing function isAcceptable2()\n", name, type);
+        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifying function isAcceptable2()\n", name, type);
 
         return FALSE;
     }
@@ -631,11 +631,11 @@ isAcceptable3(void *context,
         pInfo->dataFormat[3]==0x74 &&
         pInfo->formatVersion[0]==1 &&
         pInfo->dataVersion[0]==1   ) {
-        log_verbose("The data from \"%s.%s\" IS acceptable using the verifing function isAcceptable3()\n", name, type);
+        log_verbose("The data from \"%s.%s\" IS acceptable using the verifying function isAcceptable3()\n", name, type);
 
         return TRUE;
     } else {
-        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifing function isAcceptable3()\n", name, type);
+        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifying function isAcceptable3()\n", name, type);
         return FALSE;
     }
 
@@ -731,11 +731,11 @@ isAcceptable(void *context,
         pInfo->formatVersion[0]==1 &&
         pInfo->dataVersion[0]==1   &&
         *((int*)context) == 2 ) {
-        log_verbose("The data from\"%s.%s\" IS acceptable using the verifing function isAcceptable()\n", name, type);
+        log_verbose("The data from\"%s.%s\" IS acceptable using the verifying function isAcceptable()\n", name, type);
 
         return TRUE;
     } else {
-        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifing function isAcceptable()\n", name, type);
+        log_verbose("The data from \"%s.%s\" IS NOT acceptable using the verifying function isAcceptable()\n", name, type);
         return FALSE;
     }
 }
@@ -1857,7 +1857,7 @@ static void TestTZDataDir(void) {
     //     whatever/.../testdata/out/testdata
     // The test data puts an old (2014a) version of the time zone data there.
 
-    // Switch ICU to the testdata version of zoneinfo64.res, which is verison 2014a.
+    // Switch ICU to the testdata version of zoneinfo64.res, which is version 2014a.
     ctest_resetICU();
     u_setTimeZoneFilesDirectory(testDataPath, &status);
     tzDataVersion = ucal_getTZDataVersion(&status);
index 87f8fc2b38b5af2e185f3165841f6cc619eda984..a444ce5c937e97eb9f9eeaa42863b47685148a1e 100644 (file)
@@ -185,7 +185,7 @@ static void TestAPI() {
     uset_addAllCodePoints(set, STR_ab, STR_ab_LEN);
     expect(set, "ab", "def{ab}", NULL);
     if (uset_containsAllCodePoints(set, STR_bc, STR_bc_LEN)){
-        log_err("set should not conatin all characters of \"bc\" \n");
+        log_err("set should not contain all characters of \"bc\" \n");
     }
 
     /* [] */
index 7a683a063d0f87900f6d378d5bcc437c48b686ef..9e224c1270dbc43ee68989e2c0d86fee854053fe 100644 (file)
@@ -1562,7 +1562,7 @@ static void TestSetMatch(void)
                                                search.size[offsetIndex + 1] + 1, 
                                       &status) != search.offset[offsetIndex + 1] ||
                     U_FAILURE(status)) {
-                    log_err("Error getting preceeding match at index %d\n", 
+                    log_err("Error getting preceding match at index %d\n", 
                             search.offset[offsetIndex + 1] + 1);
                 }
             }
@@ -2648,7 +2648,7 @@ static void TestStrengthIdentical(void)
         len = usearch_getMatchedLength(search);
 
         if(pos != -1) {
-            log_err("Expected failure for strentgh = UCOL_IDENTICAL: got %d instead.\n", pos);
+            log_err("Expected failure for strength = UCOL_IDENTICAL: got %d instead.\n", pos);
         }
     }
 
index cac40e392ec7a5251ea9e6f1f65e13ff24ad7ac1..45ba01631b572ac3bf7fb065dad37b04b1a849ba 100644 (file)
@@ -443,7 +443,7 @@ static void TestSimpleRules() {
     /* Example: rules 1. ab>x|y
      *                2. yc>z
      *
-     * []|eabcd  start - no match, copy e to tranlated buffer
+     * []|eabcd  start - no match, copy e to translated buffer
      * [e]|abcd  match rule 1 - copy output & adjust cursor
      * [ex|y]cd  match rule 2 - copy output & adjust cursor
      * [exz]|d   no match, copy d to transliterated buffer
index 83dbfc063cab22634467c60f8b042cff6c8a15ca..27d48b6b84150034101418c7d7d32821c29c00da 100755 (executable)
@@ -124,7 +124,7 @@ def _Resolve(name, parents):
   # Check if already cached.
   exports = item.get("exports")
   if exports != None: return item
-  # Calculcate recursively.
+  # Calculate recursively.
   parents.append(name)
   imports = set()
   exports = set()
index 9bffb93649bd52b174ae45b77fcaa781daab3bf2..9361d606a00f420b5129450b1f6c3b875838047a 100644 (file)
@@ -32,7 +32,7 @@ int main(int argc, char* argv[])
                   << " CXXFLAGS=\"-fsanitize=$SANITIZE\""
                   << " ./runConfigureICU ... " << std::endl
                   << "  where $SANITIZE is 'address' or 'memory'" << std::endl
-                  << "Plesae run the above step and make tests to rebuild" << std::endl;
+                  << "Please run the above step and make tests to rebuild" << std::endl;
         // Do not return -1 here so we will pass the unit test.
     }
     if (argc < 2) {
index 2130d40b1fc94d1dd6c997e26c69d8de8ee0fcb0..fa6475ef2ec8a8473d02197545ea11813ed6de38 100644 (file)
@@ -914,7 +914,7 @@ CollationAPITest::TestDuplicate(/* char* par */)
         return;
     }
     Collator *col2 = col1->clone();
-    doAssert((*col1 == *col2), "Cloned object is not equal to the orginal");
+    doAssert((*col1 == *col2), "Cloned object is not equal to the original");
     UnicodeString ruleset("&9 < a, A < b, B < c, C < d, D, e, E");
     RuleBasedCollator *col3 = new RuleBasedCollator(ruleset, status);
     if (U_FAILURE(status)) {
@@ -923,7 +923,7 @@ CollationAPITest::TestDuplicate(/* char* par */)
     }
     doAssert((*col1 != *col3), "Cloned object is equal to some dummy");
     *col3 = *((RuleBasedCollator*)col1);
-    doAssert((*col1 == *col3), "Copied object is not equal to the orginal");
+    doAssert((*col1 == *col3), "Copied object is not equal to the original");
 
     UCollationResult res;
     UnicodeString first((UChar)0x0061);
index 52aef26001374db853db53b4ccd18558ff552467..a27e4b351009f1a3279186bfa5c1a08cd8b2f68e 100644 (file)
@@ -102,7 +102,7 @@ public:
      * - creation of a CollationElementIterator object
      * - == and != operators
      * - iterating forward
-     * - reseting the iterator index
+     * - resetting the iterator index
      * - requesting the order properties(primary, secondary or tertiary)
      */
     void TestElemIter(/* char* par */);
index 7208a08bb472c0443fe30706490ba5ad721ceede..70913213e30eb3ead2106d726a666e004f726ccf 100644 (file)
@@ -479,7 +479,7 @@ CalendarLimitTest::doLimitsTest(Calendar& cal,
         buf.remove();
         buf.append((UnicodeString)"[" + cal.getType() + "] " + FIELD_NAME[f]);
 
-        // Minumum
+        // Minimum
         rangeLow = cal.getMinimum(f);
         rangeHigh = cal.getGreatestMinimum(f);
         if (limits[j][0] != rangeLow || limits[j][1] != rangeHigh) {
index b3ac46e25eb5d11c82841da2b95c99610ce94906..459623be6ac7c19c78f0d9d15ed25db69d829444 100644 (file)
@@ -1740,7 +1740,7 @@ CalendarRegressionTest::Test4149677()
     for (int32_t i=0; i < 3; ++i) {
         GregorianCalendar *calendar = new GregorianCalendar(zones[i], status);
         if(U_FAILURE(status)) {
-            dataerrln("Couldnt' create calendar.: %s", u_errorName(status));
+            dataerrln("Couldn't create calendar.: %s", u_errorName(status));
             return;
         }
 
index 25f5f72ce2b9c9e7a90562d95a04d0313e5135dd..2d68af678f60720d24eed02c56c7831fbb9983a4 100644 (file)
@@ -866,7 +866,7 @@ CalendarTest::TestDisambiguation765()
      * desired.  Using YEAR in combination with WOY is ambiguous, and
      * results in the first WOY/DOW day of the year satisfying the
      * given fields (there may be up to two such days). In this case,
-     * it propertly resolves to Tue Dec 30 1997, which has a WOY value
+     * it properly resolves to Tue Dec 30 1997, which has a WOY value
      * of 1 (for YEAR_WOY 1998) and a DOW of Tuesday, and falls in the
      * _calendar_ year 1997, as specified. - aliu */
     c->clear();
index c3a6d8a7f8dd20f3cba8672aa1a57382b6620f6c..a06f871b1bb34b46b57126a0171e270637c916ef 100644 (file)
@@ -321,7 +321,7 @@ CollData::CollData(UCollator *collator, UErrorCode &status)
     USet *charsToTest = uset_openPattern(test_pattern, 20, &status);
 
     // Han ext. A, Han, Jamo, Hangul, Han Ext. B
-    // i.e. all the characers we handle implicitly
+    // i.e. all the characters we handle implicitly
     U_STRING_DECL(remove_pattern, "[[\\u3400-\\u9FFF][\\u1100-\\u11F9][\\uAC00-\\uD7AF][\\U00020000-\\U0002A6DF]]", 70);
     U_STRING_INIT(remove_pattern, "[[\\u3400-\\u9FFF][\\u1100-\\u11F9][\\uAC00-\\uD7AF][\\U00020000-\\U0002A6DF]]", 70);
     USet *charsToRemove = uset_openPattern(remove_pattern, 70, &status);
index 7400d2b3ca35e6c192c9a7b9de8f242feee6b821..d78425c70ec1fbadebed5526a5abcda0b6e223a9 100644 (file)
  */
 
 /*
- * Note: This module was incldued in ICU 4.0.1 as @internal technology preview for supporting
- * Boyer-Moore string search API. For now, only SSearchTest depends on this module. I temporaly
- * moved the module from i18n directory to intltest, because we have no plan to publish this
- * as public API. (2012-12-18 yoshito)
+ * Note: This module was included in ICU 4.0.1 as @internal technology preview for supporting
+ * Boyer-Moore string search API. For now, only SSearchTest depends on this module.
+ * I temporarily moved the module from i18n directory to intltest, because we have no plan to
+ * publish this as public API. (2012-12-18 yoshito)
  */
 
 #ifndef COLL_DATA_H
@@ -171,7 +171,7 @@ public:
     const UnicodeString *get(int32_t index) const;
 
     /**
-     * Get the number of stings in the list.
+     * Get the number of strings in the list.
      *
      * @return the number of strings in the list.
      */
@@ -195,7 +195,7 @@ class CEToStringsMap;
  *
  * This class holds the Collator-specific data needed to
  * compute the length of the shortest string that can
- * generate a partcular list of CEs.
+ * generate a particular list of CEs.
  *
  * <code>CollData</code> objects are quite expensive to compute. Because
  * of this, they are cached. When you call <code>CollData::open</code> it
@@ -236,17 +236,17 @@ public:
      * @param ce - the CE
      *
      * return a <code>StringList</code> object containing all
-     *        the stirngs, or <code>NULL</code> if there are
+     *        the strings, or <code>NULL</code> if there are
      *        no such strings.
      */
     const StringList *getStringList(int32_t ce) const;
 
     /**
-     * Get a list of the CEs generated by a partcular stirng.
+     * Get a list of the CEs generated by a particular string.
      *
      * @param string - the string
      *
-     * @return a <code>CEList</code> object containt the CEs. You
+     * @return a <code>CEList</code> object containing the CEs. You
      *         must call <code>freeCEList</code> when you are finished
      *         using the <code>CEList</code>/
      */
index 69e12de2f7e1342d2a6e0e8ba665bcfaaf5fc8b7..66f9340b83a2342eb0ca0c91c20baec3653767dd 100644 (file)
@@ -218,7 +218,7 @@ void CharsetDetectionTest::checkEncoding(const UnicodeString &testString, const
     dLength = ucsdet_getUChars(matches[0], decoded, testLength, &status);
 
     if (testString.compare(decoded, dLength) != 0) {
-        errln("Round-trip error for " + id + ", " + eSplit[0] + ": getUChars() didn't yeild the original string.");
+        errln("Round-trip error for " + id + ", " + eSplit[0] + ": getUChars() didn't yield the original string.");
 
 #ifdef DEBUG_DETECT
         for(int32_t i = 0; i < testLength; i += 1) {
index 45c284687272abed5e80478030693cad389d72f4..623ddad1a9e1e26bc18ade0171bf6cf7aa19523a 100644 (file)
@@ -82,7 +82,7 @@ class DataDrivenNumberFormatTestSuite : public IntlTest {
             UnicodeString &appendErrorMessage,
             UErrorCode &status);
     /**
-     * If subclass is testing formatting with copy and assignmet, it
+     * If subclass is testing formatting with copy and assignment, it
      * needs to override this method to return a newly allocated formatter.
      */
     virtual UObject *newFormatter(UErrorCode &status);
index 13994701620214e653675b1f98265b3a6752cf10..0734a44822feb928224bbf2a12efb4b7e95fe216 100644 (file)
@@ -371,7 +371,7 @@ void DecimalFormatTest::execParseTest(int32_t lineNum,
       case 'i': expectType = Formattable::kLong;   break;
       case 'l': expectType = Formattable::kInt64;  break;
       default:
-          errln("file dcfmtest.tx, line %d: unrecongized expected type \"%s\"",
+          errln("file dcfmtest.tx, line %d: unrecognized expected type \"%s\"",
               lineNum, InvariantStringPiece(expectedType).data());
           return;
     }
index 3bd51368569f60bbadab927f561fd641e456299b..366ef57520692906ad1189015a3dbdb4d893d614 100644 (file)
@@ -1342,12 +1342,12 @@ DateFormatTest::TestLocaleDateFormat() // Bug 495
     }
 
     dfFrench->format(testDate, out);
-    logln((UnicodeString)"Date Formated with French Locale " + out);
+    logln((UnicodeString)"Date Formatted with French Locale " + out);
     if (!(out == expectedFRENCH))
         errln((UnicodeString)"FAIL: Expected " + expectedFRENCH);
     out.truncate(0);
     dfUS->format(testDate, out);
-    logln((UnicodeString)"Date Formated with US Locale " + out);
+    logln((UnicodeString)"Date Formatted with US Locale " + out);
     if (!(out == expectedUS))
         errln((UnicodeString)"FAIL: Expected " + expectedUS);
     delete dfUS;
@@ -4744,7 +4744,7 @@ void DateFormatTest::TestParseLeniencyAPIs() {
     // Set calendar to strict
     fmt->setCalendarLenient(FALSE);
 
-    assertFalse("isLeninent after setCalendarLenient(FALSE)", fmt->isLenient());
+    assertFalse("isLenient after setCalendarLenient(FALSE)", fmt->isLenient());
     assertFalse("isCalendarLenient after setCalendarLenient(FALSE)", fmt->isCalendarLenient());
     assertTrue("ALLOW_WHITESPACE after setCalendarLenient(FALSE)", fmt->getBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, status));
     assertTrue("ALLOW_NUMERIC  after setCalendarLenient(FALSE)", fmt->getBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, status));
@@ -4752,7 +4752,7 @@ void DateFormatTest::TestParseLeniencyAPIs() {
     // Set to strict
     fmt->setLenient(FALSE);
 
-    assertFalse("isLeninent after setLenient(FALSE)", fmt->isLenient());
+    assertFalse("isLenient after setLenient(FALSE)", fmt->isLenient());
     assertFalse("isCalendarLenient after setLenient(FALSE)", fmt->isCalendarLenient());
     assertFalse("ALLOW_WHITESPACE after setLenient(FALSE)", fmt->getBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, status));
     assertFalse("ALLOW_NUMERIC  after setLenient(FALSE)", fmt->getBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, status));
@@ -4763,7 +4763,7 @@ void DateFormatTest::TestParseLeniencyAPIs() {
     // Allow white space leniency
     fmt->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, TRUE, status);
 
-    assertFalse("isLeninent after ALLOW_WHITESPACE/TRUE", fmt->isLenient());
+    assertFalse("isLenient after ALLOW_WHITESPACE/TRUE", fmt->isLenient());
     assertFalse("isCalendarLenient after ALLOW_WHITESPACE/TRUE", fmt->isCalendarLenient());
     assertTrue("ALLOW_WHITESPACE after ALLOW_WHITESPACE/TRUE", fmt->getBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, status));
     assertFalse("ALLOW_NUMERIC  after ALLOW_WHITESPACE/TRUE", fmt->getBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, status));
@@ -4836,7 +4836,7 @@ void DateFormatTest::TestNumberFormatOverride() {
             assertSuccess("adoptNumberFormat singleOverrideNF", status);
 
             fmt->adoptNumberFormat(overrideNF);
-        } else if (fields == (UnicodeString) "Mo"){ // o is invlid field
+        } else if (fields == (UnicodeString) "Mo"){ // o is invalid field
             fmt->adoptNumberFormat(fields, overrideNF, status);
             if(status == U_INVALID_FORMAT_ERROR) {
                 status = U_ZERO_ERROR;
index eef0d22493118200168893ccab1f451bb0d69dbf..dc196d76df404f202defda3a11ecc2a138fa700d 100644 (file)
@@ -44,7 +44,7 @@ public:
     virtual void TestTwoDigitYearDSTParse(void);
 
 public: // package
-    // internal utility routine (genrates escape sequences for characters)
+    // internal utility routine (generates escape sequences for characters)
     static UnicodeString& escape(UnicodeString& s);
 
 public:
index e6e6ee0c6d0ea2009f6e87b12910dabca7d97a90..8ed608cb7b79c105b37ea5326afa5529cc461266 100644 (file)
@@ -48,7 +48,7 @@ class FieldsSet {
     public:
     
       /**
-       * Compare two sets. In typical test usage, 'this' is the resul of 
+       * Compare two sets. In typical test usage, 'this' is the result of 
        * a tested operation, and 'other' is the predefined expected value.
        * 
        * @param other the set to compare against.
index 5b74ff21592f2b3272b3c864af53fcb6d35ce52d..7c940a9d88b98cb728bc9dc1d214afd001e0fd09 100644 (file)
  *                          If TRUE unassigned values are treated as normal Unicode code points.
  *                          If FALSE the operation fails with U_UNASSIGNED_CODE_POINT_FOUND error code.
  *  - idnaref_USE_STD3_RULES    Use STD3 ASCII rules for host name syntax restrictions
- *                          If TRUE and the input does not statisfy STD3 rules, the operation 
+ *                          If TRUE and the input does not satisfy STD3 rules, the operation 
  *                          will fail with U_IDNA_STD3_ASCII_RULES_ERROR
  *
- * @param parseError        Pointer to UParseError struct to recieve information on position 
+ * @param parseError        Pointer to UParseError struct to receive information on position 
  *                          of error if an error is encountered. Can be NULL.
  * @param status            ICU in/out error code parameter.
  *                          U_INVALID_CHAR_FOUND if src contains
@@ -85,10 +85,10 @@ idnaref_toASCII(const UChar* src, int32_t srcLength,
  *                          If TRUE unassigned values are treated as normal Unicode code points.
  *                          If FALSE the operation fails with U_UNASSIGNED_CODE_POINT_FOUND error code.
  *  - idnaref_USE_STD3_RULES    Use STD3 ASCII rules for host name syntax restrictions
- *                          If TRUE and the input does not statisfy STD3 rules, the operation 
+ *                          If TRUE and the input does not satisfy STD3 rules, the operation 
  *                          will fail with U_IDNA_STD3_ASCII_RULES_ERROR
  *
- * @param parseError        Pointer to UParseError struct to recieve information on position 
+ * @param parseError        Pointer to UParseError struct to receive information on position 
  *                          of error if an error is encountered. Can be NULL.
  * @param status            ICU in/out error code parameter.
  *                          U_INVALID_CHAR_FOUND if src contains
@@ -128,10 +128,10 @@ idnaref_toUnicode(const UChar* src, int32_t srcLength,
  *                          If TRUE unassigned values are treated as normal Unicode code points.
  *                          If FALSE the operation fails with U_UNASSIGNED_CODE_POINT_FOUND error code.
  *  - idnaref_USE_STD3_RULES    Use STD3 ASCII rules for host name syntax restrictions
- *                          If TRUE and the input does not statisfy STD3 rules, the operation 
+ *                          If TRUE and the input does not satisfy STD3 rules, the operation 
  *                          will fail with U_IDNA_STD3_ASCII_RULES_ERROR
  * 
- * @param parseError        Pointer to UParseError struct to recieve information on position 
+ * @param parseError        Pointer to UParseError struct to receive information on position 
  *                          of error if an error is encountered. Can be NULL.
  * @param status            ICU in/out error code parameter.
  *                          U_INVALID_CHAR_FOUND if src contains
@@ -167,10 +167,10 @@ idnaref_IDNToASCII(  const UChar* src, int32_t srcLength,
  *                          If TRUE unassigned values are treated as normal Unicode code points.
  *                          If FALSE the operation fails with U_UNASSIGNED_CODE_POINT_FOUND error code.
  *  - idnaref_USE_STD3_RULES    Use STD3 ASCII rules for host name syntax restrictions
- *                          If TRUE and the input does not statisfy STD3 rules, the operation 
+ *                          If TRUE and the input does not satisfy STD3 rules, the operation 
  *                          will fail with U_IDNA_STD3_ASCII_RULES_ERROR
  *
- * @param parseError        Pointer to UParseError struct to recieve information on position 
+ * @param parseError        Pointer to UParseError struct to receive information on position 
  *                          of error if an error is encountered. Can be NULL.
  * @param status            ICU in/out error code parameter.
  *                          U_INVALID_CHAR_FOUND if src contains
@@ -207,7 +207,7 @@ idnaref_IDNToUnicode(  const UChar* src, int32_t srcLength,
  *                          If TRUE unassigned values are treated as normal Unicode code points.
  *                          If FALSE the operation fails with U_UNASSIGNED_CODE_POINT_FOUND error code.
  *  - idnaref_USE_STD3_RULES    Use STD3 ASCII rules for host name syntax restrictions
- *                          If TRUE and the input does not statisfy STD3 rules, the operation 
+ *                          If TRUE and the input does not satisfy STD3 rules, the operation 
  *                          will fail with U_IDNA_STD3_ASCII_RULES_ERROR
  *
  * @param status            ICU error code in/out parameter.
index ebc22cf128dba8c2b900e4296ab31f9a59e93c39..ad75f185f632cae9e70f0ab116639710575b0448 100644 (file)
@@ -932,7 +932,7 @@ void IntlCalendarTest::TestPersianFormat() {
         logln("Parsed OK: " + expected);
     }
 
-    CHECK(status, "Error occured testing Persian Calendar in English "); 
+    CHECK(status, "Error occurred testing Persian Calendar in English "); 
 }
 
 void IntlCalendarTest::TestConsistencyGregorian() {
index 02521972fc610f68ffdd9101ac42b610c53b5c46..2f672609c0d501a87fa47d94e3c87b33cb52d029 100644 (file)
@@ -1323,7 +1323,7 @@ main(int argc, char* argv[])
                 "### IntlTest [-option1 -option2 ...] [testname1 testname2 ...] \n"
                 "### \n"
                 "### Options are: verbose (v), all (a), noerrormsg (n), \n"
-                "### exhaustive (e), leaks (l), -x xmlfile.xml, prop:<propery>=<value>, \n"
+                "### exhaustive (e), leaks (l), -x xmlfile.xml, prop:<property>=<value>, \n"
                 "### notime (T), \n"
                 "### threads:<threadCount>\n"
                 "###     (The default thread count is 12.),\n"
index 4c485fe8d1a24e51695401cb480bb79edf87c1b3..418f618bfdae99e4c8a2ff6381839c25042b7499 100644 (file)
@@ -142,7 +142,7 @@ public:
     IntlTest();
     // TestLog has a virtual destructor.
 
-    virtual UBool runTest( char* name = NULL, char* par = NULL, char *baseName = NULL); // not to be overidden
+    virtual UBool runTest( char* name = NULL, char* par = NULL, char *baseName = NULL); // not to be overridden
 
     virtual UBool setVerbose( UBool verbose = TRUE );
     virtual UBool setNoErrMsg( UBool no_err_msg = TRUE );
@@ -357,7 +357,7 @@ public:
         const std::vector<std::string>& expected, const std::vector<std::string>& actual);
     UBool assertNotEquals(const UnicodeString& message, int32_t expectedNot, int32_t actual);
 
-    virtual void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); // overide !
+    virtual void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); // override !
 
     virtual UBool runTestLoop( char* testname, char* par, char *baseName );
 
index e78a6c5f472f76a02dcfcfcd5801a155722b57d1..207be63ac2795ef9e652cb8d24288657a7ecb326 100644 (file)
@@ -313,7 +313,7 @@ void CollationIteratorTest::TestSetText(/* char* par */)
         assertEqual(*iter1, *iter2);
     }
     iter1->reset();
-    //now use the overloaded setText(ChracterIterator&, UErrorCode) function to set the text
+    //now use the overloaded setText(CharacterIterator&, UErrorCode) function to set the text
     CharacterIterator* chariter = new StringCharacterIterator(test1);
     iter2->setText(*chariter, status);
     if (U_FAILURE(status))
index 73f553256347c31e69d665e54894060a7f55e612..847b84128400ec1b44c4cf7753f0698efd191784 100644 (file)
@@ -1862,7 +1862,7 @@ IntlTestRBNF::TestLocalizations(void)
                 "<<''>>", // empty string
                 "  x<<%main>>", // first non space char not open angle bracket
                 "<%main>", // missing inner array
-                "<<%main %other>>", // elements missing separating commma (spaces must be quoted)
+                "<<%main %other>>", // elements missing separating comma (spaces must be quoted)
                 "<<%main><en, Main>>", // arrays missing separating comma
                 "<<%main>,<en, main, foo>>", // too many elements in locale data
                 "<<%main>,<en>>", // too few elements in locale data
index 9c2cb23b44a09236b3b62b75819eb6a12e23dd83..70271211ab076a1bf91d9e75fd5742110ff15907 100644 (file)
@@ -286,7 +286,7 @@ void LocaleBuilderTest::TestLocaleBuilder() {
                 }
                 break;
             } else {
-                // Unknow test method
+                // Unknown test method
                 errln("Unknown test case method: There is an error in the test case data.");
                 break;
             }
index 2c91520dd17389f37add0417a0b33dc87d582294..59577a2224c6af07d36e840c4875fa472d29044f 100644 (file)
@@ -174,7 +174,7 @@ private:
      **/
     void doTestDisplayNames(Locale& inLocale, int32_t compareIndex);
     /**
-     * additional intialization for datatables storing expected values
+     * additional initialization for datatables storing expected values
      **/
     void setUpDataTable(void);
 
index 8a6de0271155af8f3f5a2c3264b1334e9625b7e9..50c9e8a3d72286df57ff627a02a43b5a405ec6b8 100644 (file)
@@ -163,7 +163,7 @@ void LSTMBETest::runTestFromFile(const char* filename) {
                     ss << actual.elementAti(i) << ", ";
                 }
                 ss << value.length();
-                // Turn the break points into a string for easy comparions
+                // Turn the break points into a string for easy comparison
                 // output.
                 actual_sep_str = "{" + ss.str() + "}";
             } else if (key == "Output:" && !actual_sep_str.empty()) {
@@ -183,7 +183,7 @@ void LSTMBETest::runTestFromFile(const char* filename) {
                     }
                     start = sep + 1;
                 }
-                // Turn the break points into a string for easy comparions
+                // Turn the break points into a string for easy comparison
                 // output.
                 std::string expected = "{" + ss.str() + "}";
                 std::string utf8;
index 1b83b10876d2d809f0343ded30eeb03e17f97454..d7c8573b94441084b1d18cc7fd61bb0b654840fc 100644 (file)
@@ -131,7 +131,7 @@ void MessageFormatRegressionTest::Test4074764() {
         tempBuffer.remove();
         tempBuffer = messageFormatter->format(params, 2, tempBuffer, pos, status);
          if (tempBuffer != "Message without param" || failure(status, "messageFormat->format"))
-            errln("Formatted with arguments > subsitution failed. result = " + tempBuffer);
+            errln("Formatted with arguments > substitution failed. result = " + tempBuffer);
          logln("Formatted with extra params : " + tempBuffer);
         //This statement gives an exception while formatting...
         //If we use pattern[1] for the message with param,
index f30de79deb5e4fcd252e775bdf315796f0f687f1..a2ad2f7e746e1c6f793e81daab79bdd1dec09ba3 100644 (file)
@@ -77,7 +77,7 @@ enum ENumberFormatTestTupleField {
  * field means and how the data drive tests work, please see
  * https://docs.google.com/document/d/1T2P0p953_Lh1pRwo-5CuPVrHlIBa_wcXElG-Hhg_WHM/edit?usp=sharing
  * Each field is optional. That is, a certain field may be unset for a given
- * test. The UBool fields ending in "Flag" indicate whether the corrresponding
+ * test. The UBool fields ending in "Flag" indicate whether the corresponding
  * field is set or not. TRUE means set; FALSE means unset. An unset field
  * generally means that the corresponding setter method is not called on
  * the NumberFormat object.
index 350ef1383cd414f77e7d86a23ba8207f15adf385..e5db029c9657e4c2275da78cb90be593ce7cbd1d 100644 (file)
@@ -1759,7 +1759,7 @@ void NumberFormatTest::TestPad(void) {
     expectPad(fmt, "*P##.##", DecimalFormat::kPadBeforePrefix, 5, padString);
     fmt.setPadCharacter((UnicodeString)"^");
     expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, (UnicodeString)"^");
-    //commented untill implementation is complete
+    //commented until implementation is complete
   /*  fmt.setPadCharacter((UnicodeString)"^^^");
     expectPad(fmt, "*^^^#", DecimalFormat::kPadBeforePrefix, 3, (UnicodeString)"^^^");
     padString.remove();
index b9c4f661373262cc292791187d24781c9cb141d5..48d465c863cecc71a94cc9280003c02c93e0c4c1 100644 (file)
@@ -729,7 +729,7 @@ void NumberFormatRegressionTest::Test4090504 (void)
             //sb = new StringBuffer("");
             fp.setField(0);
             logln(UnicodeString("  getMaximumFractionDigits() = ") + i);
-            logln(UnicodeString("  formated: ") + df->format(d, sb, fp));
+            logln(UnicodeString("  formatted: ") + df->format(d, sb, fp));
         }
     /*} catch (Exception foo) {
         errln("Bug 4090504 regression test failed. Message : " + foo.getMessage());
@@ -1268,7 +1268,7 @@ void NumberFormatRegressionTest::Test4074454(void)
  * Tests all different comments.
  * Response to some comments :
  * [1] DecimalFormat.parse API documentation is more than just one line.
- * This is not a reproducable doc error in 116 source code.
+ * This is not a reproducible doc error in 116 source code.
  * [2] See updated javadoc.
  * [3] Fixed.
  * [4] NumberFormat.parse(String, ParsePosition) : If parsing fails,
@@ -1571,7 +1571,7 @@ void NumberFormatRegressionTest::Test4106664(void)
     df->setGroupingUsed(FALSE);
     UnicodeString temp;
     FieldPosition pos(FieldPosition::DONT_CARE);
-    logln("formated: " +
+    logln("formatted: " +
         df->format(n, temp, pos));
     
     char buf [128];
index a3334f5a43938e5661474642c3d4b89f2745828b..dc3964ba44acf17a1d070077fa3e2c9ab8d987b4 100644 (file)
@@ -308,7 +308,7 @@ void RBBIAPITest::TestGetSetAdoptText()
     if(rb->getText() != *text2)
         errln((UnicodeString)"ERROR:2 error in adoptText ");
 
-    // Adopt where iterator range is less than the entire orignal source string.
+    // Adopt where iterator range is less than the entire original source string.
     //   (With the change of the break engine to working with UText internally,
     //    CharacterIterators starting at positions other than zero are not supported)
     rb->adoptText(text3);
@@ -683,7 +683,7 @@ void RBBIAPITest::TestRuleStatus() {
          int32_t pos, tag;
          for (pos = bi->first(); pos != BreakIterator::DONE; pos = bi->next(), i++) {
              if (pos != bounds1[i]) {
-                 errln("%s:%d FAIL: unexpected word break at postion %d", __FILE__, __LINE__, pos);
+                 errln("%s:%d FAIL: unexpected word break at position %d", __FILE__, __LINE__, pos);
                  break;
              }
              tag = bi->getRuleStatus();
index ebc0a415eb10b35246c987645bd689d25cc7aa0c..4ec830f6eabdf76bec7920ab55d1c8983fe6d269 100644 (file)
@@ -1311,7 +1311,7 @@ void RBBITest::runUnicodeTestData(const char *fileName, RuleBasedBreakIterator *
     //  Each kind of token is recognized in its own capture group; what type of item was scanned
     //     is identified by which group had a match.
     //
-    //    Caputure Group #                  1          2            3            4           5
+    //    Capture Group  #                  1          2            3            4           5
     //    Parses this item:               divide       x      hex digits   comment \n  unrecognized \n
     //
     UnicodeString tokenExpr("[ \t]*(?:(\\u00F7)|(\\u00D7)|([0-9a-fA-F]+)|((?:#.*?)?$.)|(.*?$.))", -1, US_INV);
@@ -1331,7 +1331,7 @@ void RBBITest::runUnicodeTestData(const char *fileName, RuleBasedBreakIterator *
     int spin = 0;
     while (tokenMatcher.find()) {
         if(tokenMatcher.hitEnd()) {
-          /* Shouldnt Happen(TM).  This means we didn't find the symbols we were looking for.
+          /* Shouldn't Happen(TM).  This means we didn't find the symbols we were looking for.
              This occurred when the text file was corrupt (wasn't marked as UTF-8)
              and caused an infinite loop here on EBCDIC systems!
           */
@@ -1455,7 +1455,7 @@ void RBBITest::checkUnicodeTestCase(const char *testFileName, int lineNumber,
 #if !UCONFIG_NO_REGULAR_EXPRESSIONS
 //---------------------------------------------------------------------------------------
 //
-//   classs RBBIMonkeyKind
+//   class RBBIMonkeyKind
 //
 //      Monkey Test for Break Iteration
 //      Abstract interface class.   Concrete derived classes independently
@@ -1474,7 +1474,7 @@ public:
     // Set the test text on which subsequent calls to next() will operate
     virtual  void      setText(const UnicodeString &s) = 0;
 
-    // Find the next break postion, starting from the prev break position, or from zero.
+    // Find the next break position, starting from the prev break position, or from zero.
     // Return -1 after reaching end of string.
     virtual  int32_t   next(int32_t i) = 0;
 
@@ -3939,8 +3939,8 @@ void RBBITest::RunMonkey(BreakIterator *bi, RBBIMonkeyKind &mk, const char *name
     numCharClasses = mk.charClasses()->size();
     chClasses      = mk.charClasses();
 
-    // Check for errors that occured during the construction of the MonkeyKind object.
-    //  Can't report them where they occured because errln() is a method coming from intlTest,
+    // Check for errors that occurred during the construction of the MonkeyKind object.
+    //  Can't report them where they occurred because errln() is a method coming from intlTest,
     //  and is not visible outside of RBBITest :-(
     if (U_FAILURE(mk.deferredStatus)) {
         errln("status of \"%s\" in creation of RBBIMonkeyKind.", u_errorName(mk.deferredStatus));
@@ -4953,7 +4953,7 @@ void RBBITest::TestTable_8_16_Bits() {
         int32_t result = bi.preceding(ruleLen);
         assertEquals(WHERE, 0, result);
 
-        // Verify that the range of rule lengths being tested cover the transations
+        // Verify that the range of rule lengths being tested cover the translations
         // from 8 to 16 bit data.
         bool has8BitRowData = bi.fData->fForwardTable->fFlags & RBBI_8BITS_ROWS;
         bool has8BitsTrie = ucptrie_getValueWidth(bi.fData->fTrie) == UCPTRIE_VALUE_BITS_8;
@@ -5348,7 +5348,7 @@ void RBBITest::runLSTMTestFromFile(const char* filename, UScriptCode script) {
                 }
 
                 utext_close(&ut);
-                // Turn the break points into a string for easy comparions
+                // Turn the break points into a string for easy comparison
                 // output.
                 actual_sep_str = "{" + ss.str() + "}";
             } else if (key == "Output:" && !actual_sep_str.empty()) {
@@ -5359,7 +5359,7 @@ void RBBITest::runLSTMTestFromFile(const char* filename, UScriptCode script) {
                 int32_t start = 0;
                 int32_t curr = 0;
                 std::stringstream ss;
-                // Incude 0 as the break point.
+                // Include 0 as the break point.
                 ss << "0, ";
                 while ((sep = input.indexOf(u'|', start)) >= 0) {
                     int32_t len = sep - start;
@@ -5374,7 +5374,7 @@ void RBBITest::runLSTMTestFromFile(const char* filename, UScriptCode script) {
                 }
                 // Include end of the string as break point.
                 ss << ", " << curr + input.length() - start;
-                // Turn the break points into a string for easy comparions
+                // Turn the break points into a string for easy comparison
                 // output.
                 std::string expected = "{" + ss.str() + "}";
                 std::string utf8;
index bf6922bfa38e96a4b3e54aebb708ba381e9492c2..25623b1e82f21121d9a549b7552e1db4d98fc7f4 100644 (file)
@@ -654,7 +654,7 @@ void RegexTest::Basic() {
     REGEX_TESTLM("a[0-9]*b", "a123b", TRUE, TRUE);
     REGEX_TESTLM("a[0-9]*b", "abc", TRUE, FALSE);
     REGEX_TESTLM("[\\p{Nd}]*", "123456", TRUE, TRUE);
-    REGEX_TESTLM("[\\p{Nd}]*", "a123456", TRUE, FALSE);   // note that * matches 0 occurences.
+    REGEX_TESTLM("[\\p{Nd}]*", "a123456", TRUE, FALSE);   // note that * matches 0 occurrences.
     REGEX_TESTLM("[a][b][[:Zs:]]*", "ab   ", TRUE, TRUE);
 
     //
@@ -1231,7 +1231,7 @@ void RegexTest::API_Match() {
     {
         UErrorCode status = U_ZERO_ERROR;
         //    Enough 'a's in the string to cause the match to time out.
-        //       (Each on additonal 'a' doubles the time)
+        //       (Each on additional 'a' doubles the time)
         UnicodeString testString("aaaaaaaaaaaaaaaaaaaaa");
         RegexMatcher matcher("(a+)+b", testString, 0, status);
         REGEX_CHECK_STATUS;
@@ -1460,7 +1460,7 @@ void RegexTest::API_Replace() {
         REGEX_CHECK_STATUS;
         UnicodeString result;
 
-        // Multiple finds do NOT bump up the previous appendReplacement postion.
+        // Multiple finds do NOT bump up the previous appendReplacement position.
         m.reset(s);
         m.find();
         m.find();
@@ -2728,7 +2728,7 @@ const char str_ooh[] = { 0x6f, 0x6f, 0x68, 0x00 }; /* ooh */
         UText resultText = UTEXT_INITIALIZER;
         utext_openUnicodeString(&resultText, &result, &status);
 
-        // Multiple finds do NOT bump up the previous appendReplacement postion.
+        // Multiple finds do NOT bump up the previous appendReplacement position.
         m.reset(&dataText);
         m.find();
         m.find();
@@ -4128,7 +4128,7 @@ void RegexTest::PerlTests() {
 
         while (perlExpr.length() > 0) {
 #if !SUPPORT_MUTATING_INPUT_STRING
-            //  Perferred usage.  Reset after any modification to input string.
+            //  Preferred usage.  Reset after any modification to input string.
             groupsMat->reset(perlExpr);
             cgMat->reset(perlExpr);
 #endif
@@ -5466,7 +5466,7 @@ void RegexTest::Bug7029() {
 //
 //   At the time of this writing there are none. If any should appear in a subsequent release
 //   of Unicode, the code in regular expressions compilation that determines the longest
-//   posssible match for a literal string  will need to be enhanced.
+//   possible match for a literal string  will need to be enhanced.
 //
 //   See file regexcmp.cpp, case URX_STRING_I in RegexCompile::maxMatchLength()
 //   for details on what to do in case of a failure of this test.
@@ -5748,7 +5748,7 @@ void RegexTest::TestBug12884() {
 
 // Bug 13631. A find() of a pattern with a zero length look-behind assertions
 //            can cause a read past the end of the input text.
-//            The failure is seen when running this test with Clang's Addresss Sanitizer.
+//            The failure is seen when running this test with Clang's Address Sanitizer.
 
 void RegexTest::TestBug13631() {
     const UChar *pats[] = { u"(?<!^)",
index 22f245a5a9224b82412bfc12cd8ebd3a049acd7d..62d40b2cefe9b833b41541eb43d14c3994ee06dd 100644 (file)
@@ -25,7 +25,7 @@ class SimpleThread
   public:
     SimpleThread();
     virtual  ~SimpleThread();
-    int32_t   start();            // start the thread. Return 0 if successfull.
+    int32_t   start();            // start the thread. Return 0 if successful.
     void      join();             // A thread must be joined before deleting its SimpleThread.
 
     virtual void run() = 0;       // Override this to provide the code to run
index 573158a3cd875896bf426fb64782aca72bbf6a2c..be2abb05db5ba19979c54ca80b3ebd642721650f 100644 (file)
@@ -37,7 +37,7 @@
         }                             \
         break;
 
-// public contructors and destructors --------------------------------------
+// public constructors and destructors --------------------------------------
 
 StringSearchTest::StringSearchTest() 
 #if !UCONFIG_NO_BREAK_ITERATION
@@ -1527,7 +1527,7 @@ void StringSearchTest::TestSetMatch()
                                                 search.size[index + 1] + 1, 
                                        status) != search.offset[index + 1] ||
                     U_FAILURE(status)) {
-                    errln("Error getting preceeding match at index %d", 
+                    errln("Error getting preceding match at index %d", 
                           search.offset[index + 1] + 1);
                 }
             }
index 41483f5ceeaf139537c73a88ae62d67e82a3cce4..2ef9200e05480ac669065aa262674fd0f972d158 100644 (file)
@@ -293,7 +293,7 @@ void SSearchTest::searchTest()
         if ((foundMatch && expectedMatchStart<0) ||
             (foundStart != expectedMatchStart)   ||
             (foundLimit != expectedMatchLimit)) {
-                TEST_ASSERT(FALSE);   //  ouput generic error position
+                TEST_ASSERT(FALSE);   //  output generic error position
                 infoln("Found, expected match start = %d, %d \n"
                        "Found, expected match limit = %d, %d",
                 foundStart, expectedMatchStart, foundLimit, expectedMatchLimit);
@@ -322,7 +322,7 @@ void SSearchTest::searchTest()
         if ((foundMatch && expectedMatchStart<0) ||
             (foundStart != expectedMatchStart)   ||
             (foundLimit != expectedMatchLimit)) {
-                TEST_ASSERT(FALSE);   //  ouput generic error position
+                TEST_ASSERT(FALSE);   //  output generic error position
                 infoln("Found, expected backwards match start = %d, %d \n"
                        "Found, expected backwards match limit = %d, %d",
                 foundStart, expectedMatchStart, foundLimit, expectedMatchLimit);
index 0548d9ad928dfb0c246994c159c31f942378f8aa..78c4ba01b931877045000d9d9bd92a83a2fbe6ae 100644 (file)
@@ -82,7 +82,7 @@ void StringSegmentTest::testGetCodePoint() {
     StringSegment segment(sampleString, false);
     assertEquals("Double-width code point", 0x1F4FB, segment.getCodePoint());
     segment.setLength(1);
-    assertEquals("Inalid A", -1, segment.getCodePoint());
+    assertEquals("Invalid A", -1, segment.getCodePoint());
     segment.resetLength();
     segment.adjustOffset(1);
     assertEquals("Invalid B", -1, segment.getCodePoint());
index 89526b92461fdbada2e85975a4f3d1a24454e570..764ff65d763be86c7ab11d622a01a1551e77f33f 100644 (file)
@@ -339,7 +339,7 @@ TestChoiceFormat::TestComplexExample( void )
 
     const char* testPattern = "0#none|1#one|2#many";
     ChoiceFormat form_pat( testPattern, status );
-    if (!chkstatus( status, "***  ChoiceFormat contructor( newPattern, status)" )) {
+    if (!chkstatus( status, "***  ChoiceFormat constructor( newPattern, status)" )) {
         delete fileform;
         delete filenumform;
         delete pattform;
@@ -348,9 +348,9 @@ TestChoiceFormat::TestComplexExample( void )
 
     form_pat.toPattern( res1 );
     if (res1 == "0#none|1#one|2#many") {
-        it_logln("ChoiceFormat contructor( newPattern, status) tested");
+        it_logln("ChoiceFormat constructor( newPattern, status) tested");
     }else{
-        it_errln("***  ChoiceFormat contructor( newPattern, status) or toPattern result!");
+        it_errln("***  ChoiceFormat constructor( newPattern, status) or toPattern result!");
     }
 
     double d_a2[] = { 3.0, 4.0 };
index 29ac0b2aae3df7f71a8bd313db82e95e5d62e898..bd4f9e8585a710a44653f1a8d6dc830570616a0f 100644 (file)
@@ -316,7 +316,7 @@ testAllCodepoints(TestIDNA& test){
         }
     }
 
-    test.logln("Number of Unassinged code points : %i \n",unassigned);
+    test.logln("Number of Unassigned code points : %i \n",unassigned);
     test.logln("Number of Prohibited code points : %i \n",prohibited);
     test.logln("Number of Mapped code points : %i \n",mapped);
     test.logln("Number of Mapped with NFKC code points : %i \n",mappedWithNorm);
index 4b4b2d410b8d641456b381fda5aa16a2ffd854ea..e1490b1e8ebdc27a575187c5543e351f7404f1ce 100644 (file)
@@ -228,7 +228,7 @@ static const char *domainNames[] = {
     //"www.\\u0021.com",
     //"www.\\u0024.com",
     //"\\u003f",
-    // These yeild U_IDNA_PROHIBITED_ERROR
+    // These yield U_IDNA_PROHIBITED_ERROR
     //"\\u00CF\\u0082.com",
     //"\\u00CE\\u00B2\\u00C3\\u009Fss.com",
     //"\\u00E2\\u0098\\u00BA.com",
index c058c951a4a7e6adc35a09076af2bf6e8b418a0e..6ff5b453597c08556e0c7df5fd78102ce301745f 100644 (file)
@@ -18,7 +18,7 @@
 class TestFormatSmallClasses: public IntlTest {
     /**
      * runs tests in 4 local routines,
-     * performs test for API and funtionalty of 3 smaller format classes:
+     * performs test for API and functionality of 3 smaller format classes:
      *    ParsePosition in test_ParsePosition(),
      *    FieldPosition in test_FieldPosition(),
      *    Formattable in test_Formattable().
index 077487aed17648d720023ccc22f4fe968853da3e..46cc90574e498333b4a7b1862fd5ce0629c14daf 100644 (file)
@@ -222,7 +222,7 @@ void CollationThaiTest::TestCornerCases(void) {
         "\\u0e01\\u0e32",                        "=",    "\\u0e01\\u0e32-",
         "\\u0e01\\u0e32-",                       "<",    "\\u0e01\\u0e32\\u0e01\\u0e32",
 
-        // Doubler follows an indentical word without the doubler
+        // Doubler follows an identical word without the doubler
         "\\u0e01\\u0e32",                        "=",    "\\u0e01\\u0e32\\u0e46",
         "\\u0e01\\u0e32\\u0e46",                 "<",    "\\u0e01\\u0e32\\u0e01\\u0e32",
 
index fb887c746935ebde8f918a317b6105512b0aa664..fa00e1ac480415acd9d5e16bb12f56b6aff0da85 100644 (file)
@@ -305,7 +305,7 @@ void TransliteratorTest::TestSimpleRules(void) {
     /* Example: rules 1. ab>x|y
      *                2. yc>z
      *
-     * []|eabcd  start - no match, copy e to tranlated buffer
+     * []|eabcd  start - no match, copy e to translated buffer
      * [e]|abcd  match rule 1 - copy output & adjust cursor
      * [ex|y]cd  match rule 2 - copy output & adjust cursor
      * [exz]|d   no match, copy d to transliterated buffer
@@ -1688,7 +1688,7 @@ void TransliteratorTest::TestCompoundRBT(void) {
 }
 
 /**
- * Compound filter semantics were orginially not implemented
+ * Compound filter semantics were originally not implemented
  * correctly.  Originally, each component filter f(i) is replaced by
  * f'(i) = f(i) && g, where g is the filter for the compound
  * transliterator.
index 18a1ae863c1927afbe9e7f15e38bf2398ce2a6e0..526d88a3a7941ceb87b985e4d20cfb4cd3cc13f2 100644 (file)
@@ -281,7 +281,7 @@ void IntlTestDecimalFormatSymbols::testDigitSymbols() {
         symbols.setSymbol(key, UnicodeString(osmanyaDigitStrings[i]), FALSE);
     }
     // NOTE: in ICU4J, the calculation of codePointZero is smarter;
-    // in ICU4C, it is more conservative and is only set if propogateDigits is true.
+    // in ICU4C, it is more conservative and is only set if propagateDigits is true.
     if (-1 != symbols.getCodePointZero()) {
         errln("ERROR: Code point zero be invalid");
     }
index 98e04869d8593344bcfb9ac6ae88565d926a004f..5b70389c4a847fb52519a49b840ab6d8d4c40615 100644 (file)
@@ -1108,7 +1108,7 @@ const UCTMultiThreadItem *LocaleCacheKey<UCTMultiThreadItem>::createObject(
             // until other have completed. Verifies that cache doesn't
             // deadlock when a creation is slow.
 
-            // Note that gObjectsCreated needs to be incremeneted from 0 to 1
+            // Note that gObjectsCreated needs to be incremented from 0 to 1
             // early, to keep subsequent threads from entering this path.
             gObjectsCreated = 1;
             while (gObjectsCreated < 3) {
index 3a0d7b65f878ce723866937d4daed60480bd287c..4f35d764ca28d9f108f23cfe60371d6fc26f2383 100644 (file)
@@ -60,10 +60,10 @@ public:
      * Performs tests for Greek
      * This tests that if the plural count listed in time unit format does not
      * match those in the plural rules for the locale, those plural count in
-     * time unit format will be ingored and subsequently, fall back will kick in
+     * time unit format will be ignored and subsequently, fall back will kick in
      * which is tested above.
      * Without data sanitization, setNumberFormat() would crash.
-     * As of CLDR shiped in ICU4.8, Greek is one such language.
+     * As of CLDR shipped in ICU4.8, Greek is one such language.
      */
     void testGreekWithSanitization();
 
index 882125f1c3fe42705aeccdebf9530803aacc70ab..0daa45c5a4d850aad29b44072b12228761264d31 100644 (file)
@@ -233,7 +233,7 @@ TimeZoneFormatTest::TestTimeZoneRoundTrip(void) {
                         UnicodeString canonicalID;
                         TimeZone::getCanonicalID(*tzid, canonicalID, status);
                         if (U_FAILURE(status)) {
-                            // Uknown ID - we should not get here
+                            // Unknown ID - we should not get here
                             errln((UnicodeString)"Unknown ID " + *tzid);
                             status = U_ZERO_ERROR;
                         } else if (outtzid != canonicalID) {
@@ -266,7 +266,7 @@ TimeZoneFormatTest::TestTimeZoneRoundTrip(void) {
                         UnicodeString canonical;
                         TimeZone::getCanonicalID(*tzid, canonical, status);
                         if (U_FAILURE(status)) {
-                            // Uknown ID - we should not get here
+                            // Unknown ID - we should not get here
                             errln((UnicodeString)"Unknown ID " + *tzid);
                             status = U_ZERO_ERROR;
                         } else if (outtzid != canonical) {
index dc644329e9424aeb075cafe36f7c1cd9cd079383..f683d8ee1b2b766ccda5f37a7530b3ce470b352a 100644 (file)
@@ -1530,7 +1530,7 @@ TimeZoneRuleTest::TestSimpleTimeZoneCoverage(void) {
 
     avail1 = stz1->getNextTransition(time1, FALSE, tzt1);
     if (avail1) {
-        errln("FAIL: No transition must be returned by getNextTranstion for SimpleTimeZone with no DST rule");
+        errln("FAIL: No transition must be returned by getNextTransition for SimpleTimeZone with no DST rule");
     }
     avail1 = stz1->getPreviousTransition(time1, FALSE, tzt1);
     if (avail1) {
@@ -1565,7 +1565,7 @@ TimeZoneRuleTest::TestSimpleTimeZoneCoverage(void) {
 
     avail1 = stz1->getNextTransition(time1, FALSE, tzt1);
     if (!avail1) {
-        errln("FAIL: Non-null transition must be returned by getNextTranstion for SimpleTimeZone with a DST rule");
+        errln("FAIL: Non-null transition must be returned by getNextTransition for SimpleTimeZone with a DST rule");
     }
     avail1 = stz1->getPreviousTransition(time1, FALSE, tzt1);
     if (!avail1) {
@@ -1759,7 +1759,7 @@ TimeZoneRuleTest::TestVTimeZoneCoverage(void) {
         dataerrln("FAIL: hasEquivalentTransitions failed for vtz/otz: %s", u_errorName(status));
     }
     if (!equiv) {
-        dataerrln("FAIL: hasEquivalentTransitons returned false for the same time zone");
+        dataerrln("FAIL: hasEquivalentTransitions returned false for the same time zone");
     }
 
     // operator=/operator==/operator!=
@@ -2114,7 +2114,7 @@ TimeZoneRuleTest::TestT6216(void) {
     TimeZone *utc = TimeZone::createTimeZone("Etc/GMT");
     GregorianCalendar cal(utc, status);
     if (U_FAILURE(status)) {
-        dataerrln("FAIL: Failed to creat a GregorianCalendar: %s", u_errorName(status));
+        dataerrln("FAIL: Failed to create a GregorianCalendar: %s", u_errorName(status));
         return;
     }
     for (i = 0; TestDates[i][2] != 0; i++) {
@@ -2156,7 +2156,7 @@ TimeZoneRuleTest::TestT6669(void) {
     UErrorCode status = U_ZERO_ERROR;
     SimpleTimeZone stz(0, "CustomID", UCAL_JANUARY, 1, UCAL_SUNDAY, 0, UCAL_JULY, 1, UCAL_SUNDAY, 0, status);
     if (U_FAILURE(status)) {
-        errln("FAIL: Failed to creat a SimpleTimeZone");
+        errln("FAIL: Failed to create a SimpleTimeZone");
         return;
     }
 
@@ -2364,7 +2364,7 @@ TimeZoneRuleTest::verifyTransitions(BasicTimeZone& icutz, UDate start, UDate end
         if (!first &&
                 (tzt0.getTo()->getRawOffset() != tzt.getFrom()->getRawOffset()
                 || tzt0.getTo()->getDSTSavings() != tzt.getFrom()->getDSTSavings())) {
-            errln((UnicodeString)"FAIL: TO rule of the previous transition does not match FROM rule of this transtion at "
+            errln((UnicodeString)"FAIL: TO rule of the previous transition does not match FROM rule of this transition at "
                     + dateToString(time) + " for " + icutz.getID(tzid));                
         }
         tzt0 = tzt;
@@ -2398,7 +2398,7 @@ TimeZoneRuleTest::verifyTransitions(BasicTimeZone& icutz, UDate start, UDate end
         if (!first &&
                 (tzt0.getFrom()->getRawOffset() != tzt.getTo()->getRawOffset()
                 || tzt0.getFrom()->getDSTSavings() != tzt.getTo()->getDSTSavings())) {
-            errln((UnicodeString)"FAIL: TO rule of the next transition does not match FROM rule in this transtion at "
+            errln((UnicodeString)"FAIL: TO rule of the next transition does not match FROM rule in this transition at "
                     + dateToString(time) + " for " + icutz.getID(tzid));                
         }
         tzt0 = tzt;
index 0525d475c0a12e05ae89be3b8e883f0d06c76758..c11d71fecb10b425ba3dd963a22fe42bf6cf2b00 100644 (file)
@@ -122,7 +122,7 @@ void UnifiedCacheTest::TestEvictionPolicy() {
     UnifiedCache cache(status);
     assertSuccess("", status);
 
-    // Don't allow unused entries to exeed more than 100% of in use entries.
+    // Don't allow unused entries to exceed more than 100% of in use entries.
     cache.setEvictionPolicy(0, 100, status);
 
     static const char *locales[] = {
@@ -152,7 +152,7 @@ void UnifiedCacheTest::TestEvictionPolicy() {
     }
     unusedReference->removeRef();
 
-    // unused count not to exeed in use count
+    // unused count not to exceed in use count
     assertEquals("T1", UPRV_LENGTHOF(usedReferences), cache.unusedCount());
     assertEquals("T2", 2*UPRV_LENGTHOF(usedReferences), cache.keyCount());
 
index ad38bdf53a3eb7746c98e3ff3ed08adb4f00b256..560f72a7ffcd681ed56726be090dbc2b0825960e 100644 (file)
@@ -301,7 +301,7 @@ UnicodeStringTest::TestCompare()
         test3.compare(0, 14, test2) != 0 ||
         test4.compare(12, 14, test2) != 0 ||
         test3.compare(0, 18, test1) <=0  )
-        errln("compare(offset, length, UnicodeString) failes");
+        errln("compare(offset, length, UnicodeString) fails");
 
     // test compare(UChar*)
     if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0)
index dc343189880abbbc96689f895ba67ca91dab0e54..942c94dc9f1b98fa3a2ab27cc8a9a5b19470111f 100644 (file)
@@ -6,7 +6,7 @@
  * others. All Rights Reserved.
  ********************************************************************/
 /************************************************************************
-*   Tests for the UText and UTextIterator text abstraction classses
+*   Tests for the UText and UTextIterator text abstraction classes
 *
 ************************************************************************/
 
@@ -83,7 +83,7 @@ static uint32_t m_rand()
 //   TextTest()
 //
 //       Top Level function for UText testing.
-//       Specifies the strings to be tested, with the acutal testing itself
+//       Specifies the strings to be tested, with the actual testing itself
 //       being carried out in another function, TestString().
 //
 void  UTextTest::TextTest() {
@@ -296,13 +296,13 @@ void UTextTest::TestString(const UnicodeString &s) {
 //              nativeMap  Mapping from code points to native indexes for the UText.
 //              u16Map     Mapping from code points to UTF-16 indexes, for use with the UnicodeString.
 //
-//     This function runs a whole series of opertions on each incoming UText.
+//     This function runs a whole series of operations on each incoming UText.
 //     The UText is deep-cloned prior to each operation, so that the original UText remains unchanged.
 //
 void UTextTest::TestCMR(const UnicodeString &us, UText *ut, int cpCount, m *nativeMap, m *u16Map) {
     TEST_ASSERT(utext_isWritable(ut) == TRUE);
 
-    int  srcLengthType;       // Loop variables for selecting the postion and length
+    int  srcLengthType;       // Loop variables for selecting the position and length
     int  srcPosType;          //   of the block to operate on within the source text.
     int  destPosType;
 
@@ -443,7 +443,7 @@ void UTextTest::TestCopyMove(const UnicodeString &us, UText *ut, UBool move,
         TEST_SUCCESS(status);
 
         // Compare the results of the two parallel tests
-        int32_t  usi = 0;    // UnicodeString postion, utf-16 index.
+        int32_t  usi = 0;    // UnicodeString position, utf-16 index.
         int64_t  uti = 0;    // UText position, native index.
         int32_t  cpi;        // char32 position (code point index)
         UChar32  usc;        // code point from Unicode String
@@ -519,7 +519,7 @@ void UTextTest::TestReplace(
     //
     // Compare the results
     //
-    int32_t  usi = 0;    // UnicodeString postion, utf-16 index.
+    int32_t  usi = 0;    // UnicodeString position, utf-16 index.
     int64_t  uti = 0;    // UText position, native index.
     int32_t  cpi;        // char32 position (code point index)
     UChar32  usc;        // code point from Unicode String
@@ -716,7 +716,7 @@ void UTextTest::TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCoun
     }
 
     //
-    //  next32From(), prevous32From(), Iterate in a somewhat random order.
+    //  next32From(), previous32From(), Iterate in a somewhat random order.
     //
     int  cpIndex = 0;
     for (i=0; i<cpCount; i++) {
@@ -846,7 +846,7 @@ void UTextTest::TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCoun
 //
 void UTextTest::ErrorTest()
 {
-    // Close of an unitialized UText.  Shouldn't blow up.
+    // Close of an uninitialized UText.  Shouldn't blow up.
     {
         UText  ut;
         memset(&ut, 0, sizeof(UText));
@@ -967,7 +967,7 @@ void UTextTest::ErrorTest()
 
 
     //
-    //  isLengthExpensive - does it make the exptected transitions after
+    //  isLengthExpensive - does it make the expected transitions after
     //                      getting the length of a nul terminated string?
     //
     {
index 4ed39861160fd3074813cd3c41973f5cc8b3d25d..fa98ea14d0861e3b729e725850f09dcbf56f01c1 100644 (file)
@@ -6,7 +6,7 @@
  * others. All Rights Reserved.
  ********************************************************************/
 /************************************************************************
-*   Tests for the UText and UTextIterator text abstraction classses
+*   Tests for the UText and UTextIterator text abstraction classes
 *
 ************************************************************************/
 
index 7215c7d2e7949edb06b00fab84f8d640f050aceb..3a00c88cd80049961a9093a23c88a26c64db7745 100644 (file)
@@ -874,7 +874,7 @@ static void TestCodepage(void) {
     myFile = u_fopen(STANDARD_TEST_FILE, "w", NULL, "absurd converter that can't be opened");
 
     if (myFile) {
-        log_err("Recieved a UFILE * with an invalid codepage parameter\n");
+        log_err("Received a UFILE * with an invalid codepage parameter\n");
         u_fclose(myFile);
     }
 
@@ -916,7 +916,7 @@ static void TestCodepage(void) {
     }
     retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile);
     if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) {
-        log_err("The test data wasn't subsituted as expected\n");
+        log_err("The test data wasn't substituted as expected\n");
     }
     u_fclose(myFile);
 
index 1e7716aa85b5792f8e15db71fd279d78dd6408a0..e13fa5148a3709ef707895303e8d4453d08e0714 100644 (file)
@@ -828,7 +828,7 @@ static void ctest_setICU_DATA() {
 U_CDECL_BEGIN
 /*
  * Note: this assumes that context is a pointer to STANDARD_TEST_FILE. It would be
- * cleaner to define an acutal context with a string pointer in it and set STANDARD_TEST_FILE
+ * cleaner to define an actual context with a string pointer in it and set STANDARD_TEST_FILE
  * after the call to initArgs()...
  */
 static int U_CALLCONV argHandler(int arg, int /*argc*/, const char * const argv[], void *context)
index fc86588690645dca0f66e7c7834e8748875ba24d..c176576e536cacac57ed9f9f05f55fea7e9d4ee9 100644 (file)
@@ -291,7 +291,7 @@ static le_bool compareResults(const char *testID, TestResult *expected, TestResu
 
     /* NOTE: we'll stop on the first failure 'cause once there's one error, it may cascade... */
     if (actual->glyphCount != expected->glyphCount) {
-        log_err("Test %s: incorrect glyph count: exptected %d, got %d\n",
+        log_err("Test %s: incorrect glyph count: expected %d, got %d\n",
             testID, expected->glyphCount, actual->glyphCount);
         return false;
     }
index ff15c938cf65edb9f06fd48203d6876b97cc92c7..d8b780ea55a6e7119c88533894c8eb7e4615a505 100644 (file)
@@ -331,7 +331,7 @@ le_bool compareResults(const char *testID, TestResult *expected, TestResult *act
 {
     /* NOTE: we'll stop on the first failure 'cause once there's one error, it may cascade... */
     if (actual->glyphCount != expected->glyphCount) {
-        log_err("Test %s: incorrect glyph count: exptected %d, got %d\n",
+        log_err("Test %s: incorrect glyph count: expected %d, got %d\n",
             testID, expected->glyphCount, actual->glyphCount);
         return false;
     }
index 75c5cda302eb560df355ebf14682921d8d346d54..21af8cdc75f250c198a808b7806f26fcd55ad473 100644 (file)
@@ -49,7 +49,7 @@ Running Performance Test:
    (e.g. convperf (Conversion tests)). Go to each directory and execute the perl script for each test
    you want to run. (e.g. CharPerf_r.pl in CharPerf directory)
    * You only need to run the perl script from the latest ICU version.  The corresponding perl script 
-     in the previous versions of ICU do not need to be run seperately.
+     in the previous versions of ICU do not need to be run separately.
 
 
 Note: When running on Windows, cygwin is preferred.
index 0478b6d6bf2dd3a1b5283704c7eceeb37f563a14..331f946eecbd59b1eb85d7c5324f2b5a019cfd6a 100644 (file)
@@ -165,7 +165,7 @@ U_CAPI double uprv_getMeanTime(double *times, uint32_t *timeCount, double *margi
   }
   meanTime /= n;
 
-  /* caculate standard deviation */
+  /* calculate standard deviation */
   double sd = 0;
   for(int i=0;i<n;i++) {
 #if U_DEBUG
index b29a7bc99c1e628b7eda716d2747349c5d33065b..8b384bfebeb167c3cf7ed32e25a78d2625b92037 100644 (file)
@@ -236,7 +236,7 @@ public:
     UPerfFunction* TestQC_FCD_NFC_Text();
     UPerfFunction* TestQC_FCD_Orig_Text();
 
-    /* IsNormalized performnace */
+    /* IsNormalized performance */
     UPerfFunction* TestIsNormalized_NFC_NFD_Text();
     UPerfFunction* TestIsNormalized_NFC_NFC_Text();
     UPerfFunction* TestIsNormalized_NFC_Orig_Text();
index 82acd2d99ea4d78926be84bedd08fce0db1885c1..b00afb94613ff287f9fa1b5b042f350c6271bf86 100644 (file)
@@ -64,7 +64,7 @@ sub getMean {
 }
 
 # Return a 99% error based on the t distribution.  The dataset
-# is desribed as getMean() +/- getError().
+# is described as getMean() +/- getError().
 sub getError {
     my $self = shift;
     return $self->{_error} * $self->{_scale};
index c57a898fbf67bd8164e037822577b2e48021291e..d5776f33c206ad07e6041d5d6c8b8b0160191c45 100644 (file)
@@ -33,7 +33,7 @@ T                  = [\p{Grapheme_Cluster_Break = T}];
 LV                 = [\p{Grapheme_Cluster_Break = LV}];
 LVT                = [\p{Grapheme_Cluster_Break = LVT}];
 
-# Emoji defintions
+# Emoji definitions
 
 Extended_Pict      = [:ExtPict:];
 
index 2235305cce0a5f7a70a8c2f71f10fa9b11af5db8..f1e711e4219b0f6b7ec683a08b2782bcf9620ef8 100644 (file)
@@ -15,7 +15,7 @@
 #       The Output amount and Unit are repeated for mixed units. In such a case, only the smallest unit will have
 #       both a rational and decimal amount; the others will have a single integer value, such as:
 #         length; person-height; CA; 3429 / 12500; 0.27432; meter; 2; foot; 54 / 5; 10.8; inch
-#       The input and output units are unit identifers; in particular, the output does not have further processing:
+#       The input and output units are unit identifiers; in particular, the output does not have further processing:
 #               â€¢ no localization
 #               â€¢ no adjustment for pluralization
 #               â€¢ no formatted with the skeleton
index 8f2650dc94d540ea22718197219a00b9857ceb49..46a122331f52eef660f19632068b147f60d6fcc1 100644 (file)
@@ -1233,7 +1233,7 @@ passfail: pass
 type: toascii
 
 =====
-desc: 5-1-2 Unassinged outside BMP; zone editors should reject
+desc: 5-1-2 Unassigned outside BMP; zone editors should reject
 namebase: <10205><00ED>dn
 nameutf8: í €í¸…ídn
 namezone: xn--dn-mja7734x
index f59433fe86c1a1a079b71b379223b5868f3adc9c..7c42b5e39889b6938d88eafcb089f15d3710eb09 100644 (file)
@@ -16,8 +16,8 @@
 #   <char>    any following data is for char break testing
 #   <title>   any following data is for title break testing
 #   <rules> rules ... </rules>  following data is tested against these rules.
-#                               Applies until a following occurence of <word>, <sent>, etc. or another <rules>
-#   <locale locale_name>  Switch to the named locale at the next occurence of <word>, <sent>, etc.
+#                               Applies until a following occurrence of <word>, <sent>, etc. or another <rules>
+#   <locale locale_name>  Switch to the named locale at the next occurrence of <word>, <sent>, etc.
 #   <data> ... </data>   test data.  May span multiple lines.
 #      <>        Break position, status == 0
 #      â€¢         Break position, status == 0   (Bullet, \u2022)
@@ -1163,7 +1163,7 @@ Calls to xxx will return an implementor of this interface.  \u2029•</data>
 <data>•Parlez-•vous â€¢français ?•</data>
 
 #
-#  Old Line Break Test data.  Orginally located in RBBITest::TestDefaultRuleBasedLineIteration()
+#  Old Line Break Test data.  Originally located in RBBITest::TestDefaultRuleBasedLineIteration()
 #
 
 <line>
@@ -1345,7 +1345,7 @@ part â€¢of â€¢the â€¢Luang â€¢Prabang â€¢Range â€¢(ทิว•เขา•ห
 #  the end of the word and not treated as an independent punctuation mark.
 #
 #  the one time where the paiyannoi occurs somewhere other than at the end
-#  of a word is in the Thai abbrevation for "etc.", which both begins and
+#  of a word is in the Thai abbreviation for "etc.", which both begins and
 #  ends with a paiyannoi
 #
 <line>
index 6fb90ef81436007c27edd2fac1df30b04072ace5..0909dc77e2857840949f68eab6f1ec85cb02abc4 100644 (file)
 "(a?)*"                        "<0><1></1></0>xyz"
 "(a?)+"                        "<0><1></1></0>xyz"
 "^(?:a?b?)*$"                 "a--"
-"(x?)*xyz"                     "<0>xx<1></1>xyz</0>"    # Sligthly wierd, but correct.  The "last" time through (x?),
+"(x?)*xyz"                     "<0>xx<1></1>xyz</0>"    # Sligthtly weird, but correct.  The "last" time through (x?),
                                                         #   it matches the empty string.
 
 # Set expressions, basic operators and escapes work
 "(abcd) \1"                Z   "<0><1>abcd</1> abcd</0>"
 "(abcd) \1"                Z   "<0><1>abcd</1> abcd</0> "
 
-# Case Insensitve back references that hit/don't hit end.
+# Case Insensitive back references that hit/don't hit end.
 "(abcd) \1"                zi  "abcd abc"
 "(abcd) \1"                Zi  "<0><1>abcd</1> ABCD</0>"
 "(abcd) \1"                Zi  "<0><1>abcd</1> ABCD</0> "
 #
 #    These tests are only to verify that the names are recognized and the
 #    implementation isn't dead.  They are not intended to verify that the
-#    function defintions are 100% correct.
+#    function definitions are 100% correct.
 #
 "[:InBasic Latin:]+"               "ΓΔΕΖΗΘ<0>hello, world.</0>ニヌãƒãƒŽãƒãƒãƒ‘"
 "[:^InBasic Latin:]+"              "<0>ΓΔΕΖΗΘ</0>hello, world.ニヌãƒãƒŽãƒãƒãƒ‘"
 "((a|b){2})|c"              s     "C"
 
 #
-# bug 5617  ZWJ \u200d shoudn't cause word boundaries
+# bug 5617  ZWJ \u200d shouldn't cause word boundaries
 #
 ".+?\b"                           "<0> </0>\u0935\u0915\u094D\u200D\u0924\u0947 "
 ".+?\b"                       2   " <0>\u0935\u0915\u094D\u200D\u0924\u0947</0> "
 "/\*[\d\D]*?\*/"   G "<0>/* my multiline comment */</0>"
 "/\*[\d\D]*?\*/"   G "<0>/* my nested comment */</0>"
 "/\*[\d\D]*?\*/"     "*/ anything here /*"
-"/\*[\d\D]*?\*/"     "anything between 2 seperate comments"
+"/\*[\d\D]*?\*/"     "anything between 2 separate comments"
 "/\*[\d\D]*?\*/"     "\* *\"
 "/\*[\p{N}\P{N}]*?\*/"   G "<0>/* my comment */</0>"
 "/\*[\p{N}\P{N}]*?\*/"   G "<0>/* my multiline comment */</0>"
 "/\*[\p{N}\P{N}]*?\*/"   G "<0>/* my nested comment */</0>"
 "/\*[\p{N}\P{N}]*?\*/"     "*/ anything here /*"
-"/\*[\p{N}\P{N}]*?\*/"     "anything between 2 seperate comments"
+"/\*[\p{N}\P{N}]*?\*/"     "anything between 2 separate comments"
 "/\*[\p{N}\P{N}]*?\*/"     "\* *\"
 "((0?[13578]|10|12)(-|\/)((0[0-9])|([12])([0-9]?)|(3[01]?))(-|\/)((\d{4})|(\d{2}))|(0?[2469]|11)(-|\/)((0[0-9])|([12])([0-9]?)|(3[0]?))(-|\/)((\d{4}|\d{2})))"   G "<0>1/31/2002</0>"
 "((0?[13578]|10|12)(-|\/)((0[0-9])|([12])([0-9]?)|(3[01]?))(-|\/)((\d{4})|(\d{2}))|(0?[2469]|11)(-|\/)((0[0-9])|([12])([0-9]?)|(3[0]?))(-|\/)((\d{4}|\d{2})))"   G "<0>04-30-02</0>"
 "^((((31\/(0?[13578]|1[02]))|((29|30)\/(0?[1,3-9]|1[0-2])))\/(1[6-9]|[2-9]\d)?\d{2})|(29\/0?2\/(((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))|(0?[1-9]|1\d|2[0-8])\/((0?[1-9])|(1[0-2]))\/((1[6-9]|[2-9]\d)?\d{2})) (20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d$"     "29/02/2003 20:15:15"
 "^((((31\/(0?[13578]|1[02]))|((29|30)\/(0?[1,3-9]|1[0-2])))\/(1[6-9]|[2-9]\d)?\d{2})|(29\/0?2\/(((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))|(0?[1-9]|1\d|2[0-8])\/((0?[1-9])|(1[0-2]))\/((1[6-9]|[2-9]\d)?\d{2})) (20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d$"     "2/29/04 20:15:15"
 "^((((31\/(0?[13578]|1[02]))|((29|30)\/(0?[1,3-9]|1[0-2])))\/(1[6-9]|[2-9]\d)?\d{2})|(29\/0?2\/(((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))|(0?[1-9]|1\d|2[0-8])\/((0?[1-9])|(1[0-2]))\/((1[6-9]|[2-9]\d)?\d{2})) (20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d$"     "31/3/4 9:20:17"
-"^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"   G "<0>somthing@someserver.com</0>"
+"^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"   G "<0>something@someserver.com</0>"
 "^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"   G "<0>firstname.lastname@mailserver.domain.com</0>"
 "^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"   G "<0>username-something@some-server.nl</0>"
 "^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"     "username@someserver.domain.c"
 #'<[^>]*name[\s]*=[\s]*"?[^\w_]*"?[^>]*>'   G '<0><form></0>'    #TODO:  Debug
 '<[^>]*name[\s]*=[\s]*"?[^\w_]*"?[^>]*>'     "<input type = submit>"   # TODO:  \w in pattern
 '<[^>]*name[\s]*=[\s]*"?[^\w_]*"?[^>]*>'     '<font face = "arial">'   # TODO:  \w in pattern
-'<[^>]*name[\s]*=[\s]*"?[^\w_]*"?[^>]*>'      "The drity brown fox stank like"
+'<[^>]*name[\s]*=[\s]*"?[^\w_]*"?[^>]*>'      "The dirty brown fox stank like"
 "^(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12{1,2}):(([0-5]{1}[0-9]{1}\s{0,1})([AM|PM|am|pm]{2,2}))\W{0}$"   G "<0>1:00 AM</0>"
 "^(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12{1,2}):(([0-5]{1}[0-9]{1}\s{0,1})([AM|PM|am|pm]{2,2}))\W{0}$"   G "<0>12:00 PM</0>"
 "^(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12{1,2}):(([0-5]{1}[0-9]{1}\s{0,1})([AM|PM|am|pm]{2,2}))\W{0}$"   G "<0>1:00am</0>"
index b781bac2aebd2ba20c35078eaa6eb0946d8ceb99..c9fc6d37960ceb69acef213c6d2b6ea7ec64cd80 100644 (file)
                 -->
     <test-case id="test24a" strength="IDENTICAL" locale="en">
       <pattern>A\u0300</pattern>
-      <pre>At IDENTICAL, shoud this match?  </pre><m>\u00c0</m><post></post>
+      <pre>At IDENTICAL, should this match?  </pre><m>\u00c0</m><post></post>
     </test-case>
 
   <test-case id="test24b" strength="IDENTICAL" alternate_handling="SHIFTED" locale="en">
     <pattern>A\u0300</pattern>
-    <pre>At IDENTICAL, shoud this match?  </pre>
+    <pre>At IDENTICAL, should this match?  </pre>
     <m>\u00c0</m>
     <post></post>
   </test-case>
     </test-case>
 
     <!-- TODO:  this gives an U_ILLEGAL_ARGUMENT error when opening
-                the UStringSearch.  How did the orignal test run? -->
+                the UStringSearch.  How did the original test run? -->
     <!--
     <test-case id="test29" strength="PRIMARY" locale="en">
       <pattern>  </pattern>
 
 
     <!-- COMPOSITEBOUNDARIES from usrchdat.c
-         Boundaries are not identical to orignal test data because
+         Boundaries are not identical to original test data because
          of matching only full combining sequences
     -->
     <test-case id="test40" strength="TERTIARY">
index d05ef97ca7d445296c221b4e909dd494c34a08ff..9ac91a4af0cc56b117ad3dea17e3bcae9aa02ebb 100644 (file)
@@ -28,7 +28,7 @@
  * breaks.
  *
  * NOTE: by it's very nature, Thai word breaking is not exact, so it is
- * exptected that this program will always report some differences.
+ * expected that this program will always report some differences.
  */
 
 /*
@@ -208,7 +208,7 @@ inline int32_t ThaiWordbreakTest::getWordCount()
 }
 
 /*
- * This method does the acutal break comparison and reports the results.
+ * This method does the actual break comparison and reports the results.
  * It uses a SpaceBreakIterator to iterate over the text with spaces,
  * and a word instance of a Thai BreakIterator to iterate over the text
  * without spaces.
index b6de691833b5b8159656efbfce73171eb63ad132..4562959ec697eaf95b09e4c57932ffdc05a01af2 100644 (file)
@@ -436,7 +436,7 @@ static void iterateTestsWithLevel ( const TestNode* root,
 
     INDENT_LEVEL = depth-1; /* root */
 
-    /* we want these messages to be at 0 indent. so just push the indent level breifly. */
+    /* we want these messages to be at 0 indent. so just push the indent level briefly. */
     if(mode==SHOWTESTS) {
        log_testinfo("---%s%c\n",pathToFunction, nodeList[i]->test?' ':TEST_SEPARATOR );
     }
index 50e3fdb8166461de12ecb274db16429d46ebedaf..3debcf680548b9ed40f839724904acb54de15235 100644 (file)
@@ -174,7 +174,7 @@ T_CTEST_API void T_CTEST_EXPORT2
 cleanUpTestTree(TestNode *tn);
 
 /**
- * Retreive a specific subtest. (subtree).
+ * Retrieve a specific subtest. (subtree).
  *
  * @param root Pointer to the root.
  * @param path Path relative to the root, Ex. '/a/b'
index cbee692bcaf6ccc1d87d878942da96e2603c7977..69fa6644f339e4ae5f4160ceb34ac5c2db00ded2 100644 (file)
@@ -24,7 +24,7 @@
   *  each setting. Each call to nextSettings resets the cases iterator.
   *  Individual test cases have to have the same number of fields as the
   *  number of entries in headers. Default headers can be specified in 
-  *  the TestDataModule info section. The default headers will be overriden
+  *  the TestDataModule info section. The default headers will be overridden
   *  by per-test headers. 
   *  Example:                                             
   *  DataMap *settings = NULL;                            
index d1e0d6e7ccf4ee4b3774aab23e77a3f1a71e77b2..ea9ec1f255bee8e8fb798d596c22a01e28986e3a 100644 (file)
@@ -133,7 +133,7 @@ public:
 class T_CTEST_EXPORT_API UPerfTest {
 public:
     UBool run();
-    UBool runTest( char* name = NULL, char* par = NULL ); // not to be overidden
+    UBool runTest( char* name = NULL, char* par = NULL ); // not to be overridden
         
     virtual void usage( void ) ;
     
@@ -158,7 +158,7 @@ protected:
     void init(UOption addOptions[], int32_t addOptionsCount,
               UErrorCode& status);
 
-    virtual UPerfFunction* runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); // overide !
+    virtual UPerfFunction* runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); // override !
 
     virtual UBool runTestLoop( char* testname, char* par );
 
index 7b0d7538d74c9645fd7a2f0661e09af7a90e97be..e12485d9d375adb12269227a365a19916c2f54c5 100644 (file)
@@ -82,7 +82,7 @@
  *          // Initialize cache and ensure the data is loaded.
  *          // This loop checks for errors in Normalization. Once we pass the initialization
  *          // without errors we can safelly assume that there are no errors while timing the 
- *          // funtion
+ *          // function
  *          for (loops=0; loops<10; loops++) {
  *              for (line=0; line < gNumFileLines; line++) {
  *                  if (opt_uselen) {
 
 typedef struct UTimer UTimer;
 
-typedef void FuntionToBeTimed(void* param);
+typedef void FunctionToBeTimed(void* param);
 
 
 #if U_PLATFORM_USES_ONLY_WIN32_API
@@ -212,9 +212,9 @@ static    UBool uprv_compareFrequency(UTimer* /*timer1*/, UTimer* /*timer2*/){
 
 #endif
 /**
- * Intializes the timer with the current time
+ * Initializes the timer with the current time
  *
- * @param timer A pointer to UTimer struct to recieve the current time
+ * @param timer A pointer to UTimer struct to receive the current time
  */
 static inline void U_EXPORT2
 utimer_getTime(UTimer* timer){
@@ -256,15 +256,15 @@ utimer_getElapsedSeconds(UTimer* timer){
  * Executes the function pointed to for a given time and returns exact time
  * taken and number of iterations of the loop
  * @param thresholTimeVal 
- * @param loopCount output param to recieve the number of iterations
- * @param fn    The funtion to be executed
+ * @param loopCount output param to receive the number of iterations
+ * @param fn    The function to be executed
  * @param param Parameters to be passed to the fn
  * @return the time elapsed in seconds
  */
 static inline double U_EXPORT2
 utimer_loopUntilDone(double thresholdTimeVal,
                      int32_t* loopCount, 
-                     FuntionToBeTimed fn, 
+                     FunctionToBeTimed fn, 
                      void* param){
     UTimer timer;
     double currentVal=0;
index a9b60b935a4f1f1d464329c0256729bb4e3397f8..a739b91143cd859a4bac1d018e2669156b3e3e6d 100644 (file)
@@ -616,7 +616,7 @@ processFile(const char *filename, const char *cp,
         if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) {
             /*
              * append the input dir to openFileName if the first char in
-             * filename is not file seperation char and the last char input directory is  not '.'.
+             * filename is not file separation char and the last char input directory is  not '.'.
              * This is to support :
              * genrb -s. /home/icu/data
              * genrb -s. icu/data
index 34d2a26043c950d26fd9c7a6644e4715d3839964..cb835cb8c33ddc7f29b5ec5e92944f19b689a4d4 100644 (file)
@@ -71,7 +71,7 @@ U_CFUNC int32_t
 trim(UChar *src, int32_t srcLen, UErrorCode *status){
      srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // remove leading new lines
      srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove leading spaces
-     srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe trailing spcaes
+     srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remove trailing spcaes
      return srcLen;
 }
 
index 1ee2f5fca61f48de596eb7e5966691341bbe794a..3ad0a94cf3d957c42cb51d6c5fbeb26036e6423f 100644 (file)
@@ -627,7 +627,7 @@ bundle_write_java(struct SRBRoot *bundle, const char *outputDir,const char* outp
     /*UBool j1 =FALSE;*/
     /*outDir = outputDir;*/
 
-    start = TRUE;                        /* Reset the start indictor*/
+    start = TRUE;                        /* Reset the start indicator*/
 
     bName = (bundleName==NULL) ? "LocaleElements" : bundleName;
     pName = (packageName==NULL)? "com.ibm.icu.impl.data" : packageName;
index 58e055d5718c03f5d146d0f6b4a509f0e0fb4514..e65cd768d7c6b440fdec8953a259927d5eaf627e 100644 (file)
@@ -135,7 +135,7 @@ static char* getID(const char* id, const char* curKey, char* result) {
 
 /* ICU is not endian portable, because ICU data generated on big endian machines can be
  * ported to big endian machines but not to little endian machines and vice versa. The
- * conversion is not portable across platforms with different endianess.
+ * conversion is not portable across platforms with different endianness.
  */
 
 uint32_t computeCRC(const char *ptr, uint32_t len, uint32_t lastcrc){
@@ -522,7 +522,7 @@ printComments(struct UString *src, const char *resName, UBool printTranslate, UE
                 write_utf8_file(out,UnicodeString(">\n"));
             }
         }else if(getShowWarning()){
-            fprintf(stderr, "Warning: Tranlate attribute for resource %s cannot be set. XLIFF prohibits it.\n", resName);
+            fprintf(stderr, "Warning: Translate attribute for resource %s cannot be set. XLIFF prohibits it.\n", resName);
             /* no translate attribute .. just close the tag */
             write_utf8_file(out,UnicodeString(">\n"));
         }
index d9fbcdb461c6256271c6f7267316be8d79f0aa97..dadd4a87650ee1cf1d64abbc940ee236c21f96f3 100644 (file)
@@ -64,7 +64,7 @@
  *
  * UTrie stringPrepTrie;                        -- size in bytes=indexes[_SPREP_INDEX_TRIE_SIZE]
  *
- * uint16_t mappingTable[];                     -- Contains the sequecence of code units that the code point maps to
+ * uint16_t mappingTable[];                     -- Contains the sequence of code units that the code point maps to
  *                                                 size in bytes = indexes[_SPREP_INDEX_MAPPING_DATA_SIZE]
  *
  * The indexes array contains the following values:
index d205159056374a1c88ab6e1f44a007b481e833cd..c8e906f2d55324b060c9c16930fff7b4b195fbb2 100644 (file)
@@ -437,7 +437,7 @@ ucbuf_getcx32(UCHARBUF* buf,UErrorCode* error) {
         /* unescaping failed so we just return
          * c1 and not consume the buffer
          * this is useful for rules with escapes
-         * in resouce bundles
+         * in resource bundles
          * eg: \' \\ \"
          */
         return c1;
@@ -664,7 +664,7 @@ ucbuf_resolveFileName(const char* inputDir, const char* fileName, char* target,
         target[0] = '\0';
         /*
          * append the input dir to openFileName if the first char in 
-         * filename is not file seperation char and the last char input directory is  not '.'.
+         * filename is not file separation char and the last char input directory is  not '.'.
          * This is to support :
          * genrb -s. /home/icu/data
          * genrb -s. icu/data
@@ -696,7 +696,7 @@ ucbuf_resolveFileName(const char* inputDir, const char* fileName, char* target,
  * Unicode TR 13 says any of the below chars is
  * a new line char in a readline function in addition
  * to CR+LF combination which needs to be 
- * handled seperately
+ * handled separately
  */
 static UBool ucbuf_isCharNewLine(UChar c){
     switch(c){
index e6d5cbf9d4536f31ecabccb1ad960548186b7dba..d00e3da924ac66a8efd6978e0d9a8519a134fb31 100644 (file)
@@ -57,7 +57,7 @@ struct UOption {
     void *context;          /* parameter for the function */
     char shortName;         /* 'f' for -f */
     char hasArg;            /* enum value: option takes no/requires/may have argument */
-    char doesOccur;         /* boolean for "this one occured" */
+    char doesOccur;         /* boolean for "this one occurred" */
 };
 
 /* macro for an entry in a declaration of UOption[] */
index 918b06193d15a4b72a781c8facdcded8e4eac871..a6569903bcdf976b1ac58f81e03474fe5c122eac 100644 (file)
@@ -80,7 +80,7 @@ UXMLParser::UXMLParser(UErrorCode &status) :
       //    TODO:  we don't actually parse the DOCTYPE or internal subsets.
       //           Some internal dtd subsets could confuse this simple-minded
       //           attempt at skipping over them, specifically, occurrences
-      //           of closeing square brackets.  These could appear in comments, 
+      //           of closing square brackets.  These could appear in comments, 
       //           or in parameter entity declarations, for example.
       mXMLDoctype(UnicodeString(
            "(?s)<!DOCTYPE.*?(>|\\[.*?\\].*?>)", -1, US_INV
@@ -124,7 +124,7 @@ UXMLParser::UXMLParser(UErrorCode &status) :
       //
       //   Note that attributes are scanned twice.  The first time is with
       //        the regex for an entire element start.  There, the attributes
-      //        are checked syntactically, but not separted out one by one.
+      //        are checked syntactically, but not separated out one by one.
       //        Here, we match a single attribute, and make its name and
       //        attribute value available to the parser code.
       mAttrValue(UnicodeString(XML_SPACES "+("  XML_NAME ")"  XML_SPACES "*=" XML_SPACES "*"
@@ -502,7 +502,7 @@ UXMLParser::createElement(RegexMatcher  &mEl, UErrorCode &status) {
         attValue.remove(0,1);                    // one char from the beginning
         attValue.truncate(attValue.length()-1);  // and one from the end.
         
-        // XML Attribue value normalization. 
+        // XML Attribute value normalization. 
         // This is one of the really screwy parts of the XML spec.
         // See http://www.w3.org/TR/2004/REC-xml11-20040204/#AVNormalize
         // Note that non-validating parsers must treat all entities as type CDATA
index ff07c70925d3f0f7db780cd5e472cb58b2858793..0d33856647efb7c9fa8327a7655178c06f9ecad1 100644 (file)
@@ -564,7 +564,7 @@ tzload(register const char *name, register struct state *const sp,
                }
        }
        /*
-       ** If type 0 is is unused in transitions,
+       ** If type 0 is unused in transitions,
        ** it's the type to use for early times.
        */
        for (i = 0; i < sp->typecnt; ++i)
index dcdbf65ceab00f2c5539c3c2ee1797eefe7ad050..b3c9f99c30e508f5de1fae51d7e56e3294636237 100644 (file)
@@ -373,7 +373,7 @@ void readzoneinfo(ifstream& file, ZoneInfo& info, bool is64bitData) {
                     }
                 } else if (transitionTimes[i] > HIGHEST_TIME32) {
                     // Skipping the rest of the transition data.  We cannot put such
-                    // transitions into zoneinfo.res, because data is limited to singed
+                    // transitions into zoneinfo.res, because data is limited to signed
                     // 32bit int by the ICU resource bundle.
                     break;
                 } else {
@@ -1047,7 +1047,7 @@ void ZoneInfo::print(ostream& os, const string& id) const {
             os << " }" << endl;
         }
 
-        // 32bit transtions
+        // 32bit transitions
         if (trn != transitions.end() && trn->time < HIGHEST_TIME32) {
             os << "    trans:intvector { ";
             for (first = true; trn != transitions.end() && trn->time < HIGHEST_TIME32; ++trn) {
@@ -1060,7 +1060,7 @@ void ZoneInfo::print(ostream& os, const string& id) const {
             os << " }" << endl;
         }
 
-        // post 32bit transitons
+        // post 32bit transitions
         if (trn != transitions.end()) {
             os << "    transPost32:intvector { ";
             for (first = true; trn != transitions.end(); ++trn) {