From 73eca0a9c927045a3b5eafdbec9c17d2fcacd5da Mon Sep 17 00:00:00 2001 From: luz paz Date: Wed, 14 Jul 2021 18:45:49 -0400 Subject: [PATCH] ICU-21580 Fix typos in icu4c/ 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 --- icu4c/LICENSE | 2 +- icu4c/packaging/PACKAGES | 8 ++--- icu4c/source/aclocal.m4 | 2 +- ...WarningSettings.ProjectConfiguration.props | 2 +- icu4c/source/common/caniter.cpp | 2 +- icu4c/source/common/cstr.h | 2 +- icu4c/source/common/dictbe.cpp | 6 ++-- icu4c/source/common/icuplug.cpp | 2 +- icu4c/source/common/locid.cpp | 6 ++-- icu4c/source/common/loclikely.cpp | 2 +- icu4c/source/common/lstmbe.cpp | 10 +++---- icu4c/source/common/pluralmap.h | 2 +- icu4c/source/common/putil.cpp | 2 +- icu4c/source/common/rbbi.cpp | 4 +-- icu4c/source/common/rbbicst.pl | 6 ++-- icu4c/source/common/rbbidata.cpp | 2 +- icu4c/source/common/rbbinode.cpp | 2 +- icu4c/source/common/rbbinode.h | 4 +-- icu4c/source/common/rbbirpt.txt | 4 +-- icu4c/source/common/rbbiscan.cpp | 10 +++---- icu4c/source/common/rbbitblb.cpp | 8 ++--- icu4c/source/common/rbbitblb.h | 4 +-- icu4c/source/common/resbund.cpp | 2 +- icu4c/source/common/serv.cpp | 2 +- icu4c/source/common/serv.h | 2 +- icu4c/source/common/ucnv2022.cpp | 8 ++--- icu4c/source/common/ucnv_cnv.h | 2 +- icu4c/source/common/ucnv_imp.h | 2 +- icu4c/source/common/ucnv_lmb.cpp | 4 +-- icu4c/source/common/ucnv_u32.cpp | 6 ++-- icu4c/source/common/ucnvisci.cpp | 14 ++++----- icu4c/source/common/ucnvmbcs.cpp | 2 +- icu4c/source/common/ucurr.cpp | 4 +-- icu4c/source/common/uhash.cpp | 2 +- icu4c/source/common/uloc_tag.cpp | 2 +- icu4c/source/common/unicode/caniter.h | 2 +- icu4c/source/common/unicode/resbund.h | 2 +- icu4c/source/common/unicode/strenum.h | 2 +- icu4c/source/common/unicode/ucnv.h | 4 +-- icu4c/source/common/unicode/ucnv_err.h | 14 ++++----- icu4c/source/common/unicode/udata.h | 2 +- icu4c/source/common/unicode/unistr.h | 4 +-- icu4c/source/common/unicode/uset.h | 2 +- icu4c/source/common/unifiedcache.h | 2 +- icu4c/source/common/uresimp.h | 2 +- icu4c/source/common/usc_impl.h | 2 +- icu4c/source/common/uset.cpp | 2 +- icu4c/source/common/usprep.cpp | 4 +-- icu4c/source/common/ustring.cpp | 2 +- icu4c/source/common/utext.cpp | 4 +-- icu4c/source/common/util.h | 2 +- icu4c/source/common/util_props.cpp | 2 +- icu4c/source/common/utrace.cpp | 8 ++--- icu4c/source/common/wintz.cpp | 2 +- icu4c/source/config/dist.mk | 2 +- icu4c/source/config/mh-cygwin-msvc | 4 +-- icu4c/source/config/mh-mpras | 2 +- icu4c/source/config/mh-msys-msvc | 4 +-- icu4c/source/config/mh-os390 | 2 +- icu4c/source/configure | 6 ++-- icu4c/source/configure.ac | 6 ++-- icu4c/source/data/Makefile.in | 4 +-- icu4c/source/data/brkitr/rules/char.txt | 2 +- icu4c/source/data/brkitr/rules/line.txt | 2 +- icu4c/source/data/brkitr/rules/line_cj.txt | 2 +- icu4c/source/data/brkitr/rules/line_loose.txt | 2 +- .../data/brkitr/rules/line_loose_cj.txt | 2 +- .../source/data/brkitr/rules/line_normal.txt | 2 +- .../data/brkitr/rules/line_normal_cj.txt | 2 +- icu4c/source/data/mappings/convrtrs.txt | 4 +-- icu4c/source/data/translit/Any_Accents.txt | 2 +- .../source/data/translit/Grek_Latn_UNGEGN.txt | 2 +- .../data/translit/InterIndic_Gurmukhi.txt | 2 +- .../source/data/translit/InterIndic_Latin.txt | 4 +-- .../data/translit/Latin_ConjoiningJamo.txt | 2 +- .../source/data/translit/Latin_InterIndic.txt | 4 +-- icu4c/source/data/translit/am_am_FONIPA.txt | 2 +- icu4c/source/data/translit/bg_bg_Latn_BGN.txt | 2 +- icu4c/source/data/translit/cs_cs_FONIPA.txt | 2 +- icu4c/source/data/translit/es_FONIPA_zh.txt | 4 +-- icu4c/source/data/translit/es_es_FONIPA.txt | 2 +- icu4c/source/data/translit/it_ja.txt | 2 +- .../data/translit/sat_Olck_sat_FONIPA.txt | 2 +- icu4c/source/extra/uconv/resources/root.txt | 2 +- icu4c/source/i18n/astro.cpp | 22 +++++++------- icu4c/source/i18n/astro.h | 4 +-- icu4c/source/i18n/brktrans.cpp | 2 +- icu4c/source/i18n/calendar.cpp | 4 +-- icu4c/source/i18n/coleitr.cpp | 4 +-- icu4c/source/i18n/csdetect.cpp | 2 +- icu4c/source/i18n/csr2022.cpp | 2 +- icu4c/source/i18n/csrmbcs.cpp | 4 +-- icu4c/source/i18n/csrucode.cpp | 2 +- icu4c/source/i18n/dcfmtsym.cpp | 2 +- icu4c/source/i18n/decNumber.cpp | 4 +-- .../i18n/double-conversion-bignum-dtoa.cpp | 2 +- .../i18n/double-conversion-double-to-string.h | 6 ++-- .../source/i18n/double-conversion-strtod.cpp | 2 +- icu4c/source/i18n/dtfmtsym.cpp | 2 +- icu4c/source/i18n/fmtable.cpp | 2 +- icu4c/source/i18n/format.cpp | 2 +- .../source/i18n/formatted_string_builder.cpp | 2 +- icu4c/source/i18n/gregoimp.h | 2 +- icu4c/source/i18n/inputext.cpp | 2 +- icu4c/source/i18n/inputext.h | 2 +- icu4c/source/i18n/msgfmt.cpp | 2 +- icu4c/source/i18n/nfrs.cpp | 2 +- icu4c/source/i18n/nfsubs.cpp | 2 +- icu4c/source/i18n/number_decimalquantity.h | 2 +- icu4c/source/i18n/number_decimfmtprops.cpp | 2 +- icu4c/source/i18n/number_longnames.h | 4 +-- icu4c/source/i18n/number_modifiers.h | 2 +- icu4c/source/i18n/number_patternstring.h | 2 +- icu4c/source/i18n/olsontz.cpp | 2 +- icu4c/source/i18n/rbnf.cpp | 2 +- icu4c/source/i18n/rbt.cpp | 2 +- icu4c/source/i18n/rbt_data.cpp | 2 +- icu4c/source/i18n/rbt_pars.h | 2 +- icu4c/source/i18n/rbt_set.cpp | 4 +-- icu4c/source/i18n/rbt_set.h | 2 +- icu4c/source/i18n/regexcmp.cpp | 28 ++++++++--------- icu4c/source/i18n/regexcmp.h | 2 +- icu4c/source/i18n/regexcst.pl | 6 ++-- icu4c/source/i18n/regexcst.txt | 6 ++-- icu4c/source/i18n/regeximp.h | 6 ++-- icu4c/source/i18n/rematch.cpp | 14 ++++----- icu4c/source/i18n/simpletz.cpp | 2 +- icu4c/source/i18n/smpdtfmt.cpp | 6 ++-- icu4c/source/i18n/stsearch.cpp | 2 +- icu4c/source/i18n/timezone.cpp | 4 +-- icu4c/source/i18n/transreg.h | 10 +++---- icu4c/source/i18n/tzgnames.cpp | 2 +- icu4c/source/i18n/tzgnames.h | 2 +- icu4c/source/i18n/tznames.cpp | 2 +- icu4c/source/i18n/tznames_impl.cpp | 4 +-- icu4c/source/i18n/tznames_impl.h | 2 +- icu4c/source/i18n/unicode/alphaindex.h | 4 +-- icu4c/source/i18n/unicode/basictz.h | 2 +- icu4c/source/i18n/unicode/choicfmt.h | 2 +- icu4c/source/i18n/unicode/coleitr.h | 8 ++--- icu4c/source/i18n/unicode/datefmt.h | 8 ++--- icu4c/source/i18n/unicode/dcfmtsym.h | 4 +-- icu4c/source/i18n/unicode/decimfmt.h | 8 ++--- icu4c/source/i18n/unicode/dtfmtsym.h | 2 +- icu4c/source/i18n/unicode/dtitvfmt.h | 2 +- icu4c/source/i18n/unicode/dtitvinf.h | 4 +-- icu4c/source/i18n/unicode/dtptngen.h | 2 +- icu4c/source/i18n/unicode/dtrule.h | 10 +++---- icu4c/source/i18n/unicode/fmtable.h | 8 ++--- icu4c/source/i18n/unicode/format.h | 4 +-- icu4c/source/i18n/unicode/gregocal.h | 2 +- icu4c/source/i18n/unicode/msgfmt.h | 2 +- icu4c/source/i18n/unicode/numfmt.h | 2 +- icu4c/source/i18n/unicode/rbnf.h | 2 +- icu4c/source/i18n/unicode/search.h | 2 +- icu4c/source/i18n/unicode/simpletz.h | 10 +++---- icu4c/source/i18n/unicode/smpdtfmt.h | 4 +-- icu4c/source/i18n/unicode/timezone.h | 4 +-- icu4c/source/i18n/unicode/translit.h | 14 ++++----- icu4c/source/i18n/unicode/tzfmt.h | 8 ++--- icu4c/source/i18n/unicode/ucol.h | 8 ++--- icu4c/source/i18n/unicode/ucoleitr.h | 2 +- icu4c/source/i18n/unicode/udatpg.h | 2 +- icu4c/source/i18n/unicode/uformattable.h | 6 ++-- icu4c/source/i18n/unicode/ulocdata.h | 10 +++---- icu4c/source/i18n/unicode/umsg.h | 2 +- icu4c/source/i18n/units_converter.h | 2 +- icu4c/source/i18n/units_router.h | 2 +- icu4c/source/i18n/uregex.cpp | 4 +-- icu4c/source/i18n/usearch.cpp | 8 ++--- icu4c/source/i18n/uspoof.cpp | 4 +-- icu4c/source/i18n/uspoof_conf.h | 2 +- icu4c/source/i18n/uspoof_impl.h | 4 +-- icu4c/source/i18n/usrchimp.h | 8 ++--- icu4c/source/i18n/vtzone.cpp | 10 +++---- icu4c/source/icudefs.mk.in | 2 +- icu4c/source/io/unicode/ustdio.h | 12 ++++---- .../source/layoutex/layout/ParagraphLayout.h | 4 +-- icu4c/source/layoutex/layout/playout.h | 2 +- icu4c/source/samples/layout/FontMap.cpp | 2 +- .../layout/ScriptCompositeFontInstance.h | 2 +- icu4c/source/test/cintltst/bocu1tst.c | 2 +- icu4c/source/test/cintltst/capitst.c | 8 ++--- icu4c/source/test/cintltst/cbiapts.c | 12 ++++---- icu4c/source/test/cintltst/cbiditst.c | 2 +- icu4c/source/test/cintltst/ccaltst.c | 6 ++-- icu4c/source/test/cintltst/ccapitst.c | 6 ++-- icu4c/source/test/cintltst/cdattst.c | 16 +++++----- icu4c/source/test/cintltst/cdtdptst.c | 2 +- icu4c/source/test/cintltst/citertst.c | 2 +- icu4c/source/test/cintltst/cloctst.c | 6 ++-- icu4c/source/test/cintltst/cloctst.h | 2 +- icu4c/source/test/cintltst/cmsccoll.c | 10 +++---- icu4c/source/test/cintltst/cnmdptst.h | 2 +- icu4c/source/test/cintltst/cnormtst.c | 6 ++-- icu4c/source/test/cintltst/cnumtst.c | 30 +++++++++---------- icu4c/source/test/cintltst/cturtst.c | 2 +- icu4c/source/test/cintltst/cucdtst.c | 2 +- icu4c/source/test/cintltst/custrtst.c | 20 ++++++------- icu4c/source/test/cintltst/eurocreg.c | 10 +++---- icu4c/source/test/cintltst/hpmufn.c | 4 +-- icu4c/source/test/cintltst/idnatest.c | 2 +- icu4c/source/test/cintltst/nccbtst.h | 2 +- icu4c/source/test/cintltst/ncnvfbts.c | 6 ++-- icu4c/source/test/cintltst/ncnvtst.c | 2 +- icu4c/source/test/cintltst/nucnvtst.c | 8 ++--- icu4c/source/test/cintltst/reapits.c | 2 +- icu4c/source/test/cintltst/spooftest.c | 4 +-- icu4c/source/test/cintltst/stdnmtst.c | 4 +-- icu4c/source/test/cintltst/trietest.c | 2 +- icu4c/source/test/cintltst/ucsdetst.c | 2 +- icu4c/source/test/cintltst/udatatst.c | 20 ++++++------- icu4c/source/test/cintltst/usettest.c | 2 +- icu4c/source/test/cintltst/usrchtst.c | 4 +-- icu4c/source/test/cintltst/utransts.c | 2 +- icu4c/source/test/depstest/depstest.py | 2 +- icu4c/source/test/fuzzer/fuzzer_driver.cpp | 2 +- icu4c/source/test/intltest/apicoll.cpp | 4 +-- icu4c/source/test/intltest/apicoll.h | 2 +- icu4c/source/test/intltest/callimts.cpp | 2 +- icu4c/source/test/intltest/calregts.cpp | 2 +- icu4c/source/test/intltest/caltest.cpp | 2 +- icu4c/source/test/intltest/colldata.cpp | 2 +- icu4c/source/test/intltest/colldata.h | 18 +++++------ icu4c/source/test/intltest/csdetest.cpp | 2 +- .../datadrivennumberformattestsuite.h | 2 +- icu4c/source/test/intltest/dcfmtest.cpp | 2 +- icu4c/source/test/intltest/dtfmttst.cpp | 12 ++++---- icu4c/source/test/intltest/dtfmttst.h | 2 +- icu4c/source/test/intltest/fldset.h | 2 +- icu4c/source/test/intltest/idnaref.h | 18 +++++------ icu4c/source/test/intltest/incaltst.cpp | 2 +- icu4c/source/test/intltest/intltest.cpp | 2 +- icu4c/source/test/intltest/intltest.h | 4 +-- icu4c/source/test/intltest/itercoll.cpp | 2 +- icu4c/source/test/intltest/itrbnf.cpp | 2 +- .../test/intltest/localebuildertest.cpp | 2 +- icu4c/source/test/intltest/loctest.h | 2 +- icu4c/source/test/intltest/lstmbetst.cpp | 4 +-- icu4c/source/test/intltest/msfmrgts.cpp | 2 +- .../test/intltest/numberformattesttuple.h | 2 +- icu4c/source/test/intltest/numfmtst.cpp | 2 +- icu4c/source/test/intltest/numrgts.cpp | 6 ++-- icu4c/source/test/intltest/rbbiapts.cpp | 4 +-- icu4c/source/test/intltest/rbbitst.cpp | 20 ++++++------- icu4c/source/test/intltest/regextst.cpp | 14 ++++----- icu4c/source/test/intltest/simplethread.h | 2 +- icu4c/source/test/intltest/srchtest.cpp | 4 +-- icu4c/source/test/intltest/ssearch.cpp | 4 +-- .../test/intltest/string_segment_test.cpp | 2 +- icu4c/source/test/intltest/tchcfmt.cpp | 6 ++-- icu4c/source/test/intltest/testidn.cpp | 2 +- icu4c/source/test/intltest/testidna.cpp | 2 +- icu4c/source/test/intltest/tfsmalls.h | 2 +- icu4c/source/test/intltest/thcoll.cpp | 2 +- icu4c/source/test/intltest/transtst.cpp | 4 +-- icu4c/source/test/intltest/tsdcfmsy.cpp | 2 +- icu4c/source/test/intltest/tsmthred.cpp | 2 +- icu4c/source/test/intltest/tufmtts.cpp | 4 +-- icu4c/source/test/intltest/tzfmttst.cpp | 4 +-- icu4c/source/test/intltest/tzrulets.cpp | 14 ++++----- .../source/test/intltest/unifiedcachetest.cpp | 4 +-- icu4c/source/test/intltest/ustrtest.cpp | 2 +- icu4c/source/test/intltest/utxttest.cpp | 18 +++++------ icu4c/source/test/intltest/utxttest.h | 2 +- icu4c/source/test/iotest/filetst.c | 4 +-- icu4c/source/test/iotest/iotest.cpp | 2 +- icu4c/source/test/letest/cletest.c | 2 +- icu4c/source/test/letest/letest.cpp | 2 +- icu4c/source/test/perf/README | 2 +- .../source/test/perf/howExpensiveIs/sieve.cpp | 2 +- icu4c/source/test/perf/normperf/normperf.h | 2 +- icu4c/source/test/perf/perldriver/Dataset.pm | 2 +- .../test/testdata/break_rules/grapheme.txt | 2 +- .../cldr/units/unitPreferencesTest.txt | 2 +- icu4c/source/test/testdata/idna_conf.txt | 2 +- icu4c/source/test/testdata/rbbitst.txt | 8 ++--- icu4c/source/test/testdata/regextst.txt | 16 +++++----- icu4c/source/test/testdata/ssearch.xml | 8 ++--- icu4c/source/test/thaitest/thaitest.cpp | 4 +-- icu4c/source/tools/ctestfw/ctest.c | 2 +- icu4c/source/tools/ctestfw/unicode/ctest.h | 2 +- icu4c/source/tools/ctestfw/unicode/testdata.h | 2 +- icu4c/source/tools/ctestfw/unicode/uperf.h | 4 +-- icu4c/source/tools/ctestfw/unicode/utimer.h | 14 ++++----- icu4c/source/tools/genrb/genrb.cpp | 2 +- icu4c/source/tools/genrb/prscmnts.cpp | 2 +- icu4c/source/tools/genrb/wrtjava.cpp | 2 +- icu4c/source/tools/genrb/wrtxml.cpp | 4 +-- icu4c/source/tools/gensprep/store.c | 2 +- icu4c/source/tools/toolutil/ucbuf.cpp | 6 ++-- icu4c/source/tools/toolutil/uoptions.h | 2 +- icu4c/source/tools/toolutil/xmlparser.cpp | 6 ++-- icu4c/source/tools/tzcode/localtime.c | 2 +- icu4c/source/tools/tzcode/tz2icu.cpp | 6 ++-- 295 files changed, 636 insertions(+), 636 deletions(-) diff --git a/icu4c/LICENSE b/icu4c/LICENSE index ccabadded6b..970ae074cbf 100644 --- a/icu4c/LICENSE +++ b/icu4c/LICENSE @@ -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 diff --git a/icu4c/packaging/PACKAGES b/icu4c/packaging/PACKAGES index d69f3b6544a..0f7a471a0b8 100644 --- a/icu4c/packaging/PACKAGES +++ b/icu4c/packaging/PACKAGES @@ -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, diff --git a/icu4c/source/aclocal.m4 b/icu4c/source/aclocal.m4 index b5ee8a9d1e1..ff0b1f2340c 100644 --- a/icu4c/source/aclocal.m4 +++ b/icu4c/source/aclocal.m4 @@ -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], diff --git a/icu4c/source/allinone/Build.Windows.Library.WarningSettings.ProjectConfiguration.props b/icu4c/source/allinone/Build.Windows.Library.WarningSettings.ProjectConfiguration.props index a00e2c43047..603788a9537 100644 --- a/icu4c/source/allinone/Build.Windows.Library.WarningSettings.ProjectConfiguration.props +++ b/icu4c/source/allinone/Build.Windows.Library.WarningSettings.ProjectConfiguration.props @@ -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. diff --git a/icu4c/source/common/caniter.cpp b/icu4c/source/common/caniter.cpp index b1e1ed0d071..a2083afde3c 100644 --- a/icu4c/source/common/caniter.cpp +++ b/icu4c/source/common/caniter.cpp @@ -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) { diff --git a/icu4c/source/common/cstr.h b/icu4c/source/common/cstr.h index c33f487ea12..c7a77a0ae5a 100644 --- a/icu4c/source/common/cstr.h +++ b/icu4c/source/common/cstr.h @@ -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: diff --git a/icu4c/source/common/dictbe.cpp b/icu4c/source/common/dictbe.cpp index f9aae5bc9ed..4d158e3226d 100644 --- a/icu4c/source/common/dictbe.cpp +++ b/icu4c/source/common/dictbe.cpp @@ -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. diff --git a/icu4c/source/common/icuplug.cpp b/icu4c/source/common/icuplug.cpp index efd4305b198..52a0deced6d 100644 --- a/icu4c/source/common/icuplug.cpp +++ b/icu4c/source/common/icuplug.cpp @@ -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) { diff --git a/icu4c/source/common/locid.cpp b/icu4c/source/common/locid.cpp index e737469c801..4989f7f2ef0 100644 --- a/icu4c/source/common/locid.cpp +++ b/icu4c/source/common/locid.cpp @@ -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) { diff --git a/icu4c/source/common/loclikely.cpp b/icu4c/source/common/loclikely.cpp index 94a60aba3e0..136081bcfaf 100644 --- a/icu4c/source/common/loclikely.cpp +++ b/icu4c/source/common/loclikely.cpp @@ -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( diff --git a/icu4c/source/common/lstmbe.cpp b/icu4c/source/common/lstmbe.cpp index 68c37866c60..df742c812b3 100644 --- a/icu4c/source/common/lstmbe.cpp +++ b/icu4c/source/common/lstmbe.cpp @@ -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); diff --git a/icu4c/source/common/pluralmap.h b/icu4c/source/common/pluralmap.h index 41ab1d9dffc..4988fd2699f 100644 --- a/icu4c/source/common/pluralmap.h +++ b/icu4c/source/common/pluralmap.h @@ -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); diff --git a/icu4c/source/common/putil.cpp b/icu4c/source/common/putil.cpp index ffcbbcce59b..638a28e517c 100644 --- a/icu4c/source/common/putil.cpp +++ b/icu4c/source/common/putil.cpp @@ -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) { diff --git a/icu4c/source/common/rbbi.cpp b/icu4c/source/common/rbbi.cpp index 834fec97362..24d1869338e 100644 --- a/icu4c/source/common/rbbi.cpp +++ b/icu4c/source/common/rbbi.cpp @@ -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; } } diff --git a/icu4c/source/common/rbbicst.pl b/icu4c/source/common/rbbicst.pl index 9aee3c16627..1a01386c7c1 100755 --- a/icu4c/source/common/rbbicst.pl +++ b/icu4c/source/common/rbbicst.pl @@ -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"; diff --git a/icu4c/source/common/rbbidata.cpp b/icu4c/source/common/rbbidata.cpp index 193acafc442..dc14cf9c405 100644 --- a/icu4c/source/common/rbbidata.cpp +++ b/icu4c/source/common/rbbidata.cpp @@ -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]); } diff --git a/icu4c/source/common/rbbinode.cpp b/icu4c/source/common/rbbinode.cpp index 69d84151fe8..9d511290111 100644 --- a/icu4c/source/common/rbbinode.cpp +++ b/icu4c/source/common/rbbinode.cpp @@ -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); diff --git a/icu4c/source/common/rbbinode.h b/icu4c/source/common/rbbinode.h index cff3ba70c42..9e200196459 100644 --- a/icu4c/source/common/rbbinode.h +++ b/icu4c/source/common/rbbinode.h @@ -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: diff --git a/icu4c/source/common/rbbirpt.txt b/icu4c/source/common/rbbirpt.txt index 83f7aa401b0..86b75c11e96 100644 --- a/icu4c/source/common/rbbirpt.txt +++ b/icu4c/source/common/rbbirpt.txt @@ -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. # diff --git a/icu4c/source/common/rbbiscan.cpp b/icu4c/source/common/rbbiscan.cpp index 45911b1cfe0..1304f7e37e6 100644 --- a/icu4c/source/common/rbbiscan.cpp +++ b/icu4c/source/common/rbbiscan.cpp @@ -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.) diff --git a/icu4c/source/common/rbbitblb.cpp b/icu4c/source/common/rbbitblb.cpp index b55dd17339d..984d35b1479 100644 --- a/icu4c/source/common/rbbitblb.cpp +++ b/icu4c/source/common/rbbitblb.cpp @@ -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 // Each row is represented by a UnicodeString, being used as a Vector. // 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, diff --git a/icu4c/source/common/rbbitblb.h b/icu4c/source/common/rbbitblb.h index fe3db8d7bf1..38607a819ac 100644 --- a/icu4c/source/common/rbbitblb.h +++ b/icu4c/source/common/rbbitblb.h @@ -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(); diff --git a/icu4c/source/common/resbund.cpp b/icu4c/source/common/resbund.cpp index 7c5063b2114..47c0fe1c6ed 100644 --- a/icu4c/source/common/resbund.cpp +++ b/icu4c/source/common/resbund.cpp @@ -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. diff --git a/icu4c/source/common/serv.cpp b/icu4c/source/common/serv.cpp index 210a9703f5a..dc9a62e3562 100644 --- a/icu4c/source/common/serv.cpp +++ b/icu4c/source/common/serv.cpp @@ -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) { diff --git a/icu4c/source/common/serv.h b/icu4c/source/common/serv.h index ca070b6c6d6..4a6a0fffb82 100644 --- a/icu4c/source/common/serv.h +++ b/icu4c/source/common/serv.h @@ -363,7 +363,7 @@ public: /** *

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.

diff --git a/icu4c/source/common/ucnv2022.cpp b/icu4c/source/common/ucnv2022.cpp index 4110cb8500f..aa1e169c99c 100644 --- a/icu4c/source/common/ucnv2022.cpp +++ b/icu4c/source/common/ucnv2022.cpp @@ -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 N must preceed every 2 byte +* (Meaning 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 O must preceed every 2 byte +* (Meaning 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: O must preceed every 2 byte +* (In English: O must precede every 2 byte * sequence.) * * ESC $ + K Indicates the immediate two bytes following SS3 diff --git a/icu4c/source/common/ucnv_cnv.h b/icu4c/source/common/ucnv_cnv.h index 59be8bdb37b..e89eebe54ed 100644 --- a/icu4c/source/common/ucnv_cnv.h +++ b/icu4c/source/common/ucnv_cnv.h @@ -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); diff --git a/icu4c/source/common/ucnv_imp.h b/icu4c/source/common/ucnv_imp.h index c5e6aeb47e4..cb939911e47 100644 --- a/icu4c/source/common/ucnv_imp.h +++ b/icu4c/source/common/ucnv_imp.h @@ -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 * * * diff --git a/icu4c/source/common/ucnv_lmb.cpp b/icu4c/source/common/ucnv_lmb.cpp index 4656a38561e..6969727927e 100644 --- a/icu4c/source/common/ucnv_lmb.cpp +++ b/icu4c/source/common/ucnv_lmb.cpp @@ -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--) diff --git a/icu4c/source/common/ucnv_u32.cpp b/icu4c/source/common/ucnv_u32.cpp index 9f98914b9d7..bf6bd11dbac 100644 --- a/icu4c/source/common/ucnv_u32.cpp +++ b/icu4c/source/common/ucnv_u32.cpp @@ -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", diff --git a/icu4c/source/common/ucnvisci.cpp b/icu4c/source/common/ucnvisci.cpp index b0914474027..f303e7e24fc 100644 --- a/icu4c/source/common/ucnvisci.cpp +++ b/icu4c/source/common/ucnvisci.cpp @@ -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 diff --git a/icu4c/source/common/ucnvmbcs.cpp b/icu4c/source/common/ucnvmbcs.cpp index ca9b0a335ad..c02f336815f 100644 --- a/icu4c/source/common/ucnvmbcs.cpp +++ b/icu4c/source/common/ucnvmbcs.cpp @@ -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. diff --git a/icu4c/source/common/ucurr.cpp b/icu4c/source/common/ucurr.cpp index 20bbd514889..f478d8094ff 100644 --- a/icu4c/source/common/ucurr.cpp +++ b/icu4c/source/common/ucurr.cpp @@ -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. diff --git a/icu4c/source/common/uhash.cpp b/icu4c/source/common/uhash.cpp index 67c7c363540..740f6c5a5ad 100644 --- a/icu4c/source/common/uhash.cpp +++ b/icu4c/source/common/uhash.cpp @@ -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 diff --git a/icu4c/source/common/uloc_tag.cpp b/icu4c/source/common/uloc_tag.cpp index 1b91da7a4dd..0150e94cefd 100644 --- a/icu4c/source/common/uloc_tag.cpp +++ b/icu4c/source/common/uloc_tag.cpp @@ -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; } diff --git a/icu4c/source/common/unicode/caniter.h b/icu4c/source/common/unicode/caniter.h index 4ed2b74b101..205eaaa8316 100644 --- a/icu4c/source/common/unicode/caniter.h +++ b/icu4c/source/common/unicode/caniter.h @@ -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); diff --git a/icu4c/source/common/unicode/resbund.h b/icu4c/source/common/unicode/resbund.h index 37738e277b5..1cae05c376c 100644 --- a/icu4c/source/common/unicode/resbund.h +++ b/icu4c/source/common/unicode/resbund.h @@ -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. *

diff --git a/icu4c/source/common/unicode/strenum.h b/icu4c/source/common/unicode/strenum.h index df72b4b7e84..a153d550b85 100644 --- a/icu4c/source/common/unicode/strenum.h +++ b/icu4c/source/common/unicode/strenum.h @@ -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 diff --git a/icu4c/source/common/unicode/ucnv.h b/icu4c/source/common/unicode/ucnv.h index 5d784990f2c..ddf2a961fe6 100644 --- a/icu4c/source/common/unicode/ucnv.h +++ b/icu4c/source/common/unicode/ucnv.h @@ -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 units 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 */ diff --git a/icu4c/source/common/unicode/ucnv_err.h b/icu4c/source/common/unicode/ucnv_err.h index 7209ba5f7b8..a13d01db099 100644 --- a/icu4c/source/common/unicode/ucnv_err.h +++ b/icu4c/source/common/unicode/ucnv_err.h @@ -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: *

    - *
  • UCNV_ESCAPE_ICU: Substitues the ILLEGAL SEQUENCE with the hexadecimal + *
  • 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
  • - *
  • UCNV_ESCAPE_JAVA: Substitues the ILLEGAL SEQUENCE with the hexadecimal + *
  • 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
  • - *
  • UCNV_ESCAPE_C: Substitues the ILLEGAL SEQUENCE with the hexadecimal + *
  • 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
  • - *
  • UCNV_ESCAPE_XML_DEC: Substitues the ILLEGAL SEQUENCE with the decimal + *
  • UCNV_ESCAPE_XML_DEC: Substitutes the ILLEGAL SEQUENCE with the decimal * representation in the format \htmlonly&#DDDDDDDD;, e.g. "&#65534;&#172;&#51454;")\endhtmlonly. * In the Event the converter doesn't support the characters {&,#}[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 * &#144470; and Zero padding is ignored.
  • - *
  • UCNV_ESCAPE_XML_HEX:Substitues the ILLEGAL SEQUENCE with the decimal + *
  • UCNV_ESCAPE_XML_HEX:Substitutes the ILLEGAL SEQUENCE with the decimal * representation in the format \htmlonly&#xXXXX; e.g. "&#xFFFE;&#x00AC;&#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: diff --git a/icu4c/source/common/unicode/udata.h b/icu4c/source/common/unicode/udata.h index 6caa849c42f..22f764b169c 100644 --- a/icu4c/source/common/unicode/udata.h +++ b/icu4c/source/common/unicode/udata.h @@ -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. * diff --git a/icu4c/source/common/unicode/unistr.h b/icu4c/source/common/unicode/unistr.h index 85bd9649515..9ec22ace173 100644 --- a/icu4c/source/common/unicode/unistr.h +++ b/icu4c/source/common/unicode/unistr.h @@ -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 diff --git a/icu4c/source/common/unicode/uset.h b/icu4c/source/common/unicode/uset.h index 3621230641c..e20fac4e97d 100644 --- a/icu4c/source/common/unicode/uset.h +++ b/icu4c/source/common/unicode/uset.h @@ -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 diff --git a/icu4c/source/common/unifiedcache.h b/icu4c/source/common/unifiedcache.h index 4102473a212..e8b25a18a2d 100644 --- a/icu4c/source/common/unifiedcache.h +++ b/icu4c/source/common/unifiedcache.h @@ -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. diff --git a/icu4c/source/common/uresimp.h b/icu4c/source/common/uresimp.h index f038dedace3..73d37daf9f8 100644 --- a/icu4c/source/common/uresimp.h +++ b/icu4c/source/common/uresimp.h @@ -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. * diff --git a/icu4c/source/common/usc_impl.h b/icu4c/source/common/usc_impl.h index 44899649d4c..cd76990501a 100644 --- a/icu4c/source/common/usc_impl.h +++ b/icu4c/source/common/usc_impl.h @@ -33,7 +33,7 @@ * * Scripts are chosen based on the UScriptCode 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: diff --git a/icu4c/source/common/uset.cpp b/icu4c/source/common/uset.cpp index c131fd91e13..871a5d8986f 100644 --- a/icu4c/source/common/uset.cpp +++ b/icu4c/source/common/uset.cpp @@ -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 diff --git a/icu4c/source/common/usprep.cpp b/icu4c/source/common/usprep.cpp index 874ffc63a8b..41a1f56c773 100644 --- a/icu4c/source/common/usprep.cpp +++ b/icu4c/source/common/usprep.cpp @@ -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; diff --git a/icu4c/source/common/ustring.cpp b/icu4c/source/common/ustring.cpp index bba2d45c4e8..d7f63ec77fe 100644 --- a/icu4c/source/common/ustring.cpp +++ b/icu4c/source/common/ustring.cpp @@ -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 ; ѣ → 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. # diff --git a/icu4c/source/data/translit/cs_cs_FONIPA.txt b/icu4c/source/data/translit/cs_cs_FONIPA.txt index 40ae8000e4c..4d0e65ed96f 100644 --- a/icu4c/source/data/translit/cs_cs_FONIPA.txt +++ b/icu4c/source/data/translit/cs_cs_FONIPA.txt @@ -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 /ɦ/. # diff --git a/icu4c/source/data/translit/es_FONIPA_zh.txt b/icu4c/source/data/translit/es_FONIPA_zh.txt index dfc33bef8e4..3c99ce7086d 100644 --- a/icu4c/source/data/translit/es_FONIPA_zh.txt +++ b/icu4c/source/data/translit/es_FONIPA_zh.txt @@ -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 (not to or ) 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 diff --git a/icu4c/source/data/translit/es_es_FONIPA.txt b/icu4c/source/data/translit/es_es_FONIPA.txt index a78c59f0c60..4114f9ec927 100644 --- a/icu4c/source/data/translit/es_es_FONIPA.txt +++ b/icu4c/source/data/translit/es_es_FONIPA.txt @@ -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 [β]. # diff --git a/icu4c/source/data/translit/it_ja.txt b/icu4c/source/data/translit/it_ja.txt index 08ecffcc07d..017bdebb58f 100644 --- a/icu4c/source/data/translit/it_ja.txt +++ b/icu4c/source/data/translit/it_ja.txt @@ -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". # \- → =; diff --git a/icu4c/source/data/translit/sat_Olck_sat_FONIPA.txt b/icu4c/source/data/translit/sat_Olck_sat_FONIPA.txt index b1316179b7f..c320834ae8f 100644 --- a/icu4c/source/data/translit/sat_Olck_sat_FONIPA.txt +++ b/icu4c/source/data/translit/sat_Olck_sat_FONIPA.txt @@ -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(); ᱚᱹᱻ → ɔː ; diff --git a/icu4c/source/extra/uconv/resources/root.txt b/icu4c/source/extra/uconv/resources/root.txt index 785479fc5aa..3ed0252a43b 100644 --- a/icu4c/source/extra/uconv/resources/root.txt +++ b/icu4c/source/extra/uconv/resources/root.txt @@ -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" } diff --git a/icu4c/source/i18n/astro.cpp b/icu4c/source/i18n/astro.cpp index f17b6db9128..f6e494de920 100644 --- a/icu4c/source/i18n/astro.cpp +++ b/icu4c/source/i18n/astro.cpp @@ -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. *

    * @param desired The desired longitude. - * @param next true if the next occurrance of the phase - * is desired, false for the previous occurrance. + * @param next true if the next occurrence of the phase + * is desired, false 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. *

    * @param desired The desired phase of the moon. - * @param next true if the next occurrance of the phase - * is desired, false for the previous occurrance. + * @param next true if the next occurrence of the phase + * is desired, false for the previous occurrence. * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ diff --git a/icu4c/source/i18n/astro.h b/icu4c/source/i18n/astro.h index a2464890056..372a79ac671 100644 --- a/icu4c/source/i18n/astro.h +++ b/icu4c/source/i18n/astro.h @@ -626,8 +626,8 @@ public: * longitude will have the desired value. *

    * @param desired The desired longitude. - * @param next true if the next occurrance of the phase - * is desired, false for the previous occurrance. + * @param next true if the next occurrence of the phase + * is desired, false for the previous occurrence. * @internal */ UDate getMoonTime(double desired, UBool next); diff --git a/icu4c/source/i18n/brktrans.cpp b/icu4c/source/i18n/brktrans.cpp index 46b0e345dae..f0ec8407db2 100644 --- a/icu4c/source/i18n/brktrans.cpp +++ b/icu4c/source/i18n/brktrans.cpp @@ -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); diff --git a/icu4c/source/i18n/calendar.cpp b/icu4c/source/i18n/calendar.cpp index 9b1ed9fac21..ef3af277b23 100644 --- a/icu4c/source/i18n/calendar.cpp +++ b/icu4c/source/i18n/calendar.cpp @@ -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); } diff --git a/icu4c/source/i18n/coleitr.cpp b/icu4c/source/i18n/coleitr.cpp index 64d3ab4d2bf..79d3cdf42ba 100644 --- a/icu4c/source/i18n/coleitr.cpp +++ b/icu4c/source/i18n/coleitr.cpp @@ -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) { diff --git a/icu4c/source/i18n/csdetect.cpp b/icu4c/source/i18n/csdetect.cpp index babb3084302..84f0776542d 100644 --- a/icu4c/source/i18n/csdetect.cpp +++ b/icu4c/source/i18n/csdetect.cpp @@ -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(); diff --git a/icu4c/source/i18n/csr2022.cpp b/icu4c/source/i18n/csr2022.cpp index ff26e5e9116..e064c426a2a 100644 --- a/icu4c/source/i18n/csr2022.cpp +++ b/icu4c/source/i18n/csr2022.cpp @@ -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; diff --git a/icu4c/source/i18n/csrmbcs.cpp b/icu4c/source/i18n/csrmbcs.cpp index eb2d63570c2..6b2ca98516b 100644 --- a/icu4c/source/i18n/csrmbcs.cpp +++ b/icu4c/source/i18n/csrmbcs.cpp @@ -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)?*/ diff --git a/icu4c/source/i18n/csrucode.cpp b/icu4c/source/i18n/csrucode.cpp index abbca086253..480dae1400c 100644 --- a/icu4c/source/i18n/csrucode.cpp +++ b/icu4c/source/i18n/csrucode.cpp @@ -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; diff --git a/icu4c/source/i18n/dcfmtsym.cpp b/icu4c/source/i18n/dcfmtsym.cpp index 15418bfe65f..f5fe8ae1232 100644 --- a/icu4c/source/i18n/dcfmtsym.cpp +++ b/icu4c/source/i18n/dcfmtsym.cpp @@ -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 diff --git a/icu4c/source/i18n/decNumber.cpp b/icu4c/source/i18n/decNumber.cpp index a7ee057e540..71477d8202c 100644 --- a/icu4c/source/i18n/decNumber.cpp +++ b/icu4c/source/i18n/decNumber.cpp @@ -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. */ /* */ diff --git a/icu4c/source/i18n/double-conversion-bignum-dtoa.cpp b/icu4c/source/i18n/double-conversion-bignum-dtoa.cpp index 372e17dc7bd..638e9cb0469 100644 --- a/icu4c/source/i18n/double-conversion-bignum-dtoa.cpp +++ b/icu4c/source/i18n/double-conversion-bignum-dtoa.cpp @@ -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. diff --git a/icu4c/source/i18n/double-conversion-double-to-string.h b/icu4c/source/i18n/double-conversion-double-to-string.h index 73ff48f109e..1fae2e87715 100644 --- a/icu4c/source/i18n/double-conversion-double-to-string.h +++ b/icu4c/source/i18n/double-conversion-double-to-string.h @@ -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. diff --git a/icu4c/source/i18n/double-conversion-strtod.cpp b/icu4c/source/i18n/double-conversion-strtod.cpp index 9eeaa2e40fc..eea8203281a 100644 --- a/icu4c/source/i18n/double-conversion-strtod.cpp +++ b/icu4c/source/i18n/double-conversion-strtod.cpp @@ -566,7 +566,7 @@ float StrtofTrimmed(Vector 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). diff --git a/icu4c/source/i18n/dtfmtsym.cpp b/icu4c/source/i18n/dtfmtsym.cpp index 937cf7036bc..ebefc1489c2 100644 --- a/icu4c/source/i18n/dtfmtsym.cpp +++ b/icu4c/source/i18n/dtfmtsym.cpp @@ -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); diff --git a/icu4c/source/i18n/fmtable.cpp b/icu4c/source/i18n/fmtable.cpp index ea27246f16e..22ffcdd3997 100644 --- a/icu4c/source/i18n/fmtable.cpp +++ b/icu4c/source/i18n/fmtable.cpp @@ -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) { diff --git a/icu4c/source/i18n/format.cpp b/icu4c/source/i18n/format.cpp index a010defff93..a3a3c539a4f 100644 --- a/icu4c/source/i18n/format.cpp +++ b/icu4c/source/i18n/format.cpp @@ -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 */ diff --git a/icu4c/source/i18n/formatted_string_builder.cpp b/icu4c/source/i18n/formatted_string_builder.cpp index b370f14f2ac..734078644b8 100644 --- a/icu4c/source/i18n/formatted_string_builder.cpp +++ b/icu4c/source/i18n/formatted_string_builder.cpp @@ -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; } diff --git a/icu4c/source/i18n/gregoimp.h b/icu4c/source/i18n/gregoimp.h index c49d32d3a31..b1a5bc22c22 100644 --- a/icu4c/source/i18n/gregoimp.h +++ b/icu4c/source/i18n/gregoimp.h @@ -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); diff --git a/icu4c/source/i18n/inputext.cpp b/icu4c/source/i18n/inputext.cpp index 2d4f8a388af..fa4939e8f4f 100644 --- a/icu4c/source/i18n/inputext.cpp +++ b/icu4c/source/i18n/inputext.cpp @@ -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. // diff --git a/icu4c/source/i18n/inputext.h b/icu4c/source/i18n/inputext.h index 8edc561fc64..fb92dc06343 100644 --- a/icu4c/source/i18n/inputext.h +++ b/icu4c/source/i18n/inputext.h @@ -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; diff --git a/icu4c/source/i18n/msgfmt.cpp b/icu4c/source/i18n/msgfmt.cpp index d2631776e83..0f6b0793070 100644 --- a/icu4c/source/i18n/msgfmt.cpp +++ b/icu4c/source/i18n/msgfmt.cpp @@ -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, diff --git a/icu4c/source/i18n/nfrs.cpp b/icu4c/source/i18n/nfrs.cpp index 25ea6dcc1bd..beb1de86897 100644 --- a/icu4c/source/i18n/nfrs.cpp +++ b/icu4c/source/i18n/nfrs.cpp @@ -762,7 +762,7 @@ NFRuleSet::parse(const UnicodeString& text, ParsePosition& pos, double upperBoun #ifdef RBNF_DEBUG fprintf(stderr, " 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; diff --git a/icu4c/source/i18n/nfsubs.cpp b/icu4c/source/i18n/nfsubs.cpp index e3d1fc144fa..dcbf7a0e919 100644 --- a/icu4c/source/i18n/nfsubs.cpp +++ b/icu4c/source/i18n/nfsubs.cpp @@ -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 diff --git a/icu4c/source/i18n/number_decimalquantity.h b/icu4c/source/i18n/number_decimalquantity.h index 5ab680e6d73..45bef61a9cb 100644 --- a/icu4c/source/i18n/number_decimalquantity.h +++ b/icu4c/source/i18n/number_decimalquantity.h @@ -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); diff --git a/icu4c/source/i18n/number_decimfmtprops.cpp b/icu4c/source/i18n/number_decimfmtprops.cpp index 30481ce5bf0..8b2233c0556 100644 --- a/icu4c/source/i18n/number_decimfmtprops.cpp +++ b/icu4c/source/i18n/number_decimfmtprops.cpp @@ -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 } diff --git a/icu4c/source/i18n/number_longnames.h b/icu4c/source/i18n/number_longnames.h index bca55e01031..06949989d7f 100644 --- a/icu4c/source/i18n/number_longnames.h +++ b/icu4c/source/i18n/number_longnames.h @@ -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). * diff --git a/icu4c/source/i18n/number_modifiers.h b/icu4c/source/i18n/number_modifiers.h index 375254310ca..09af3f48813 100644 --- a/icu4c/source/i18n/number_modifiers.h +++ b/icu4c/source/i18n/number_modifiers.h @@ -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: diff --git a/icu4c/source/i18n/number_patternstring.h b/icu4c/source/i18n/number_patternstring.h index 54f37fd7e2f..750e7cfabe2 100644 --- a/icu4c/source/i18n/number_patternstring.h +++ b/icu4c/source/i18n/number_patternstring.h @@ -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 diff --git a/icu4c/source/i18n/olsontz.cpp b/icu4c/source/i18n/olsontz.cpp index b56c4a7bac2..e261e6db064 100644 --- a/icu4c/source/i18n/olsontz.cpp +++ b/icu4c/source/i18n/olsontz.cpp @@ -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; diff --git a/icu4c/source/i18n/rbnf.cpp b/icu4c/source/i18n/rbnf.cpp index d50edd260e4..1d8f3e9e8be 100644 --- a/icu4c/source/i18n/rbnf.cpp +++ b/icu4c/source/i18n/rbnf.cpp @@ -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; } diff --git a/icu4c/source/i18n/rbt.cpp b/icu4c/source/i18n/rbt.cpp index d166f7af2c0..1de53e6071c 100644 --- a/icu4c/source/i18n/rbt.cpp +++ b/icu4c/source/i18n/rbt.cpp @@ -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 diff --git a/icu4c/source/i18n/rbt_data.cpp b/icu4c/source/i18n/rbt_data.cpp index 4b596ac6c4a..f3985fc7685 100644 --- a/icu4c/source/i18n/rbt_data.cpp +++ b/icu4c/source/i18n/rbt_data.cpp @@ -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]; diff --git a/icu4c/source/i18n/rbt_pars.h b/icu4c/source/i18n/rbt_pars.h index 07ae02de33e..d1a4cd6997c 100644 --- a/icu4c/source/i18n/rbt_pars.h +++ b/icu4c/source/i18n/rbt_pars.h @@ -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. */ diff --git a/icu4c/source/i18n/rbt_set.cpp b/icu4c/source/i18n/rbt_set.cpp index d8d0384dda6..7953d2d2e80 100644 --- a/icu4c/source/i18n/rbt_set.cpp +++ b/icu4c/source/i18n/rbt_set.cpp @@ -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. diff --git a/icu4c/source/i18n/rbt_set.h b/icu4c/source/i18n/rbt_set.h index 35ae3fbb4ba..3a2890e8ec7 100644 --- a/icu4c/source/i18n/rbt_set.h +++ b/icu4c/source/i18n/rbt_set.h @@ -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. diff --git a/icu4c/source/i18n/regexcmp.cpp b/icu4c/source/i18n/regexcmp.cpp index 50d42f7ebeb..627f1955ee9 100644 --- a/icu4c/source/i18n/regexcmp.cpp +++ b/icu4c/source/i18n/regexcmp.cpp @@ -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 // diff --git a/icu4c/source/i18n/regexcmp.h b/icu4c/source/i18n/regexcmp.h index a6e6066c4d5..9e1aa170f08 100644 --- a/icu4c/source/i18n/regexcmp.h +++ b/icu4c/source/i18n/regexcmp.h @@ -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 diff --git a/icu4c/source/i18n/regexcst.pl b/icu4c/source/i18n/regexcst.pl index 3d656ed2310..7636757331d 100755 --- a/icu4c/source/i18n/regexcst.pl +++ b/icu4c/source/i18n/regexcst.pl @@ -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"; diff --git a/icu4c/source/i18n/regexcst.txt b/icu4c/source/i18n/regexcst.txt index d69a7ea3693..7e53578e243 100644 --- a/icu4c/source/i18n/regexcst.txt +++ b/icu4c/source/i18n/regexcst.txt @@ -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 diff --git a/icu4c/source/i18n/regeximp.h b/icu4c/source/i18n/regeximp.h index a223b02f031..bb0e1e838de 100644 --- a/icu4c/source/i18n/regeximp.h +++ b/icu4c/source/i18n/regeximp.h @@ -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. diff --git a/icu4c/source/i18n/rematch.cpp b/icu4c/source/i18n/rematch.cpp index c9a1bcae586..3f4b97f0ea5 100644 --- a/icu4c/source/i18n/rematch.cpp +++ b/icu4c/source/i18n/rematch.cpp @@ -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]; diff --git a/icu4c/source/i18n/simpletz.cpp b/icu4c/source/i18n/simpletz.cpp index a7bc7109cd5..34ecb124387 100644 --- a/icu4c/source/i18n/simpletz.cpp +++ b/icu4c/source/i18n/simpletz.cpp @@ -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). *

  • 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].) *
  • If dayOfWeek and DayOfWeekInMonth are both negative, they specify the diff --git a/icu4c/source/i18n/smpdtfmt.cpp b/icu4c/source/i18n/smpdtfmt.cpp index bf706ff0a57..0e4cd36d567 100644 --- a/icu4c/source/i18n/smpdtfmt.cpp +++ b/icu4c/source/i18n/smpdtfmt.cpp @@ -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; } diff --git a/icu4c/source/i18n/stsearch.cpp b/icu4c/source/i18n/stsearch.cpp index 7fcd2bd93fe..eb8d0f7edb6 100644 --- a/icu4c/source/i18n/stsearch.cpp +++ b/icu4c/source/i18n/stsearch.cpp @@ -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; diff --git a/icu4c/source/i18n/timezone.cpp b/icu4c/source/i18n/timezone.cpp index e46437b4f95..90586cdf927 100644 --- a/icu4c/source/i18n/timezone.cpp +++ b/icu4c/source/i18n/timezone.cpp @@ -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; diff --git a/icu4c/source/i18n/transreg.h b/icu4c/source/i18n/transreg.h index 0a0698862be..18deec85156 100644 --- a/icu4c/source/i18n/transreg.h +++ b/icu4c/source/i18n/transreg.h @@ -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 diff --git a/icu4c/source/i18n/tzgnames.cpp b/icu4c/source/i18n/tzgnames.cpp index e240202b729..e45c9d7bbe1 100644 --- a/icu4c/source/i18n/tzgnames.cpp +++ b/icu4c/source/i18n/tzgnames.cpp @@ -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; diff --git a/icu4c/source/i18n/tzgnames.h b/icu4c/source/i18n/tzgnames.h index 71d9d84dc04..7edeb526871 100644 --- a/icu4c/source/i18n/tzgnames.h +++ b/icu4c/source/i18n/tzgnames.h @@ -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" diff --git a/icu4c/source/i18n/tznames.cpp b/icu4c/source/i18n/tznames.cpp index d789c123630..8008cc5750d 100644 --- a/icu4c/source/i18n/tznames.cpp +++ b/icu4c/source/i18n/tznames.cpp @@ -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*/) { } diff --git a/icu4c/source/i18n/tznames_impl.cpp b/icu4c/source/i18n/tznames_impl.cpp index 0fa7408e4db..173432c3ee6 100644 --- a/icu4c/source/i18n/tznames_impl.cpp +++ b/icu4c/source/i18n/tznames_impl.cpp @@ -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; } diff --git a/icu4c/source/i18n/tznames_impl.h b/icu4c/source/i18n/tznames_impl.h index 417c0511f81..9e3e5e870da 100644 --- a/icu4c/source/i18n/tznames_impl.h +++ b/icu4c/source/i18n/tznames_impl.h @@ -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(); diff --git a/icu4c/source/i18n/unicode/alphaindex.h b/icu4c/source/i18n/unicode/alphaindex.h index edab16bd604..fc430b56145 100644 --- a/icu4c/source/i18n/unicode/alphaindex.h +++ b/icu4c/source/i18n/unicode/alphaindex.h @@ -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 */ diff --git a/icu4c/source/i18n/unicode/basictz.h b/icu4c/source/i18n/unicode/basictz.h index 5bcd754330a..64be77c5807 100644 --- a/icu4c/source/i18n/unicode/basictz.h +++ b/icu4c/source/i18n/unicode/basictz.h @@ -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 diff --git a/icu4c/source/i18n/unicode/choicfmt.h b/icu4c/source/i18n/unicode/choicfmt.h index cb01fca2533..4ea72454b61 100644 --- a/icu4c/source/i18n/unicode/choicfmt.h +++ b/icu4c/source/i18n/unicode/choicfmt.h @@ -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. diff --git a/icu4c/source/i18n/unicode/coleitr.h b/icu4c/source/i18n/unicode/coleitr.h index aa0b08f5e73..b08fe492ca5 100644 --- a/icu4c/source/i18n/unicode/coleitr.h +++ b/icu4c/source/i18n/unicode/coleitr.h @@ -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. *

    * 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); diff --git a/icu4c/source/i18n/unicode/datefmt.h b/icu4c/source/i18n/unicode/datefmt.h index c50d4865423..f8b2fd4d617 100644 --- a/icu4c/source/i18n/unicode/datefmt.h +++ b/icu4c/source/i18n/unicode/datefmt.h @@ -291,12 +291,12 @@ public: * statfieldPositionus.getEndIndex will be set to 0 and 4, respectively. *

    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. *

    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. diff --git a/icu4c/source/i18n/unicode/dcfmtsym.h b/icu4c/source/i18n/unicode/dcfmtsym.h index d0f844a51a3..dfc617cddc7 100644 --- a/icu4c/source/i18n/unicode/dcfmtsym.h +++ b/icu4c/source/i18n/unicode/dcfmtsym.h @@ -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 /** diff --git a/icu4c/source/i18n/unicode/decimfmt.h b/icu4c/source/i18n/unicode/decimfmt.h index b9be18f768c..0cd329bd461 100644 --- a/icu4c/source/i18n/unicode/decimfmt.h +++ b/icu4c/source/i18n/unicode/decimfmt.h @@ -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. *

    -     * .      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 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 diff --git a/icu4c/source/i18n/unicode/dtfmtsym.h b/icu4c/source/i18n/unicode/dtfmtsym.h index 1a4a0c48b96..978f30b1d3d 100644 --- a/icu4c/source/i18n/unicode/dtfmtsym.h +++ b/icu4c/source/i18n/unicode/dtfmtsym.h @@ -554,7 +554,7 @@ public: /** * Sets timezone strings. These strings are stored in a 2-dimensional array. *

    Note: 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) diff --git a/icu4c/source/i18n/unicode/dtitvfmt.h b/icu4c/source/i18n/unicode/dtitvfmt.h index f45e68038ac..015c78d3773 100644 --- a/icu4c/source/i18n/unicode/dtitvfmt.h +++ b/icu4c/source/i18n/unicode/dtitvfmt.h @@ -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}", diff --git a/icu4c/source/i18n/unicode/dtitvinf.h b/icu4c/source/i18n/unicode/dtitvinf.h index f9379cd81f1..84548389751 100644 --- a/icu4c/source/i18n/unicode/dtitvinf.h +++ b/icu4c/source/i18n/unicode/dtitvinf.h @@ -45,7 +45,7 @@ U_NAMESPACE_BEGIN *

    * 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. * *

    * 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 "{1} - {0}", 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 "latestFirst:" or "earliestFirst:" to the interval pattern. * For example, if the fallback format is "{0}-{1}", * but for skeleton "yMMMd", the interval pattern when day is different is diff --git a/icu4c/source/i18n/unicode/dtptngen.h b/icu4c/source/i18n/unicode/dtptngen.h index 7ce1ba20e5b..6732ebf0184 100644 --- a/icu4c/source/i18n/unicode/dtptngen.h +++ b/icu4c/source/i18n/unicode/dtptngen.h @@ -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. *

    diff --git a/icu4c/source/i18n/unicode/dtrule.h b/icu4c/source/i18n/unicode/dtrule.h index adab8967f63..7464b7983cc 100644 --- a/icu4c/source/i18n/unicode/dtrule.h +++ b/icu4c/source/i18n/unicode/dtrule.h @@ -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 DateTimeRule by the day of week and its oridinal + * Constructs a DateTimeRule 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 DOW. * @@ -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 DOW, * the value is always 0. * @return The rule day of week ordinal number in the month. diff --git a/icu4c/source/i18n/unicode/fmtable.h b/icu4c/source/i18n/unicode/fmtable.h index 3a090393ac4..8d77b460967 100644 --- a/icu4c/source/i18n/unicode/fmtable.h +++ b/icu4c/source/i18n/unicode/fmtable.h @@ -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 diff --git a/icu4c/source/i18n/unicode/format.h b/icu4c/source/i18n/unicode/format.h index 96883a81a2e..638068e3bc2 100644 --- a/icu4c/source/i18n/unicode/format.h +++ b/icu4c/source/i18n/unicode/format.h @@ -88,7 +88,7 @@ U_NAMESPACE_BEGIN * 0xFFFD is returned. *

    * 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. *

    * User subclasses are not supported. 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 */ diff --git a/icu4c/source/i18n/unicode/gregocal.h b/icu4c/source/i18n/unicode/gregocal.h index e5e6df17fda..df037c65040 100644 --- a/icu4c/source/i18n/unicode/gregocal.h +++ b/icu4c/source/i18n/unicode/gregocal.h @@ -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; diff --git a/icu4c/source/i18n/unicode/msgfmt.h b/icu4c/source/i18n/unicode/msgfmt.h index 14b57a114dc..0f778cf73e8 100644 --- a/icu4c/source/i18n/unicode/msgfmt.h +++ b/icu4c/source/i18n/unicode/msgfmt.h @@ -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 diff --git a/icu4c/source/i18n/unicode/numfmt.h b/icu4c/source/i18n/unicode/numfmt.h index 513d1605367..2ba92d2449a 100644 --- a/icu4c/source/i18n/unicode/numfmt.h +++ b/icu4c/source/i18n/unicode/numfmt.h @@ -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 diff --git a/icu4c/source/i18n/unicode/rbnf.h b/icu4c/source/i18n/unicode/rbnf.h index 17d2f303706..c3a15166bbb 100644 --- a/icu4c/source/i18n/unicode/rbnf.h +++ b/icu4c/source/i18n/unicode/rbnf.h @@ -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 diff --git a/icu4c/source/i18n/unicode/search.h b/icu4c/source/i18n/unicode/search.h index f1c4b2bc97e..07bb5d534b7 100644 --- a/icu4c/source/i18n/unicode/search.h +++ b/icu4c/source/i18n/unicode/search.h @@ -59,7 +59,7 @@ U_NAMESPACE_BEGIN *

    * SearchIterator provides an API that is similar to that of * other text iteration classes such as BreakIterator. 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 StringSearch * object to find all instances of "fox" in the target string. Any other * subclass of SearchIterator can be used in an identical diff --git a/icu4c/source/i18n/unicode/simpletz.h b/icu4c/source/i18n/unicode/simpletz.h index f85b04072ef..343ff67110d 100644 --- a/icu4c/source/i18n/unicode/simpletz.h +++ b/icu4c/source/i18n/unicode/simpletz.h @@ -134,7 +134,7 @@ public: * TimeZone.createInstance() to create a TimeZone instead of creating a * SimpleTimeZone directly with this constructor. *

    - * 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. *

    - * 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. *

    - * 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).

  • *
  • 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].)
  • *
  • 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).
  • *
  • 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].)
  • *
  • If dayOfWeek and DayOfWeekInMonth are both negative, they specify the diff --git a/icu4c/source/i18n/unicode/smpdtfmt.h b/icu4c/source/i18n/unicode/smpdtfmt.h index 9a5a83b1658..4fa36f6ce41 100644 --- a/icu4c/source/i18n/unicode/smpdtfmt.h +++ b/icu4c/source/i18n/unicode/smpdtfmt.h @@ -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 diff --git a/icu4c/source/i18n/unicode/timezone.h b/icu4c/source/i18n/unicode/timezone.h index 90e5f254f48..0224032676e 100644 --- a/icu4c/source/i18n/unicode/timezone.h +++ b/icu4c/source/i18n/unicode/timezone.h @@ -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, diff --git a/icu4c/source/i18n/unicode/translit.h b/icu4c/source/i18n/unicode/translit.h index 75d9219b81f..525f2b0056e 100644 --- a/icu4c/source/i18n/unicode/translit.h +++ b/icu4c/source/i18n/unicode/translit.h @@ -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 registerInstance() must implement - * clone() propertly. To register a transliterator subclass + * clone() 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: * *
    @@ -1061,7 +1061,7 @@ public:
          *
          * @param ID a valid ID, as enumerated by getAvailableIDs()
          * @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 Transliterator 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
    diff --git a/icu4c/source/i18n/unicode/tzfmt.h b/icu4c/source/i18n/unicode/tzfmt.h
    index 3d1348290af..b5f1f5e9e82 100644
    --- a/icu4c/source/i18n/unicode/tzfmt.h
    +++ b/icu4c/source/i18n/unicode/tzfmt.h
    @@ -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.
          * 

    Note: By default, an instance of TimeZoneFormat * 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 TimeZone, 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. */ diff --git a/icu4c/source/i18n/unicode/ucol.h b/icu4c/source/i18n/unicode/ucol.h index dfc3a16a8b2..6d22eb6069e 100644 --- a/icu4c/source/i18n/unicode/ucol.h +++ b/icu4c/source/i18n/unicode/ucol.h @@ -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. diff --git a/icu4c/source/i18n/unicode/ucoleitr.h b/icu4c/source/i18n/unicode/ucoleitr.h index d50003622a2..25efcf2a08e 100644 --- a/icu4c/source/i18n/unicode/ucoleitr.h +++ b/icu4c/source/i18n/unicode/ucoleitr.h @@ -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 diff --git a/icu4c/source/i18n/unicode/udatpg.h b/icu4c/source/i18n/unicode/udatpg.h index 4ff5e83d095..efe4357bfee 100644 --- a/icu4c/source/i18n/unicode/udatpg.h +++ b/icu4c/source/i18n/unicode/udatpg.h @@ -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. *

    diff --git a/icu4c/source/i18n/unicode/uformattable.h b/icu4c/source/i18n/unicode/uformattable.h index 6b8bee1f3df..4c4a307a24b 100644 --- a/icu4c/source/i18n/unicode/uformattable.h +++ b/icu4c/source/i18n/unicode/uformattable.h @@ -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. diff --git a/icu4c/source/i18n/unicode/ulocdata.h b/icu4c/source/i18n/unicode/ulocdata.h index 3977743e323..3647df9596a 100644 --- a/icu4c/source/i18n/unicode/ulocdata.h +++ b/icu4c/source/i18n/unicode/ulocdata.h @@ -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 milli-meters. - * 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 */ diff --git a/icu4c/source/i18n/unicode/umsg.h b/icu4c/source/i18n/unicode/umsg.h index db660dbe7e8..c955dc18ac4 100644 --- a/icu4c/source/i18n/unicode/umsg.h +++ b/icu4c/source/i18n/unicode/umsg.h @@ -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. diff --git a/icu4c/source/i18n/units_converter.h b/icu4c/source/i18n/units_converter.h index 1d5a3f86c98..5c002f4147e 100644 --- a/icu4c/source/i18n/units_converter.h +++ b/icu4c/source/i18n/units_converter.h @@ -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(). diff --git a/icu4c/source/i18n/units_router.h b/icu4c/source/i18n/units_router.h index c6e4e4f5288..b3300f7e277 100644 --- a/icu4c/source/i18n/units_router.h +++ b/icu4c/source/i18n/units_router.h @@ -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 diff --git a/icu4c/source/i18n/uregex.cpp b/icu4c/source/i18n/uregex.cpp index 7f41918cff9..514159e8b7a 100644 --- a/icu4c/source/i18n/uregex.cpp +++ b/icu4c/source/i18n/uregex.cpp @@ -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; diff --git a/icu4c/source/i18n/usearch.cpp b/icu4c/source/i18n/usearch.cpp index 8372fdaa60d..1bc02e77b7b 100644 --- a/icu4c/source/i18n/usearch.cpp +++ b/icu4c/source/i18n/usearch.cpp @@ -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 || diff --git a/icu4c/source/i18n/uspoof.cpp b/icu4c/source/i18n/uspoof.cpp index dbb025447fe..8d42aadb948 100644 --- a/icu4c/source/i18n/uspoof.cpp +++ b/icu4c/source/i18n/uspoof.cpp @@ -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; diff --git a/icu4c/source/i18n/uspoof_conf.h b/icu4c/source/i18n/uspoof_conf.h index cfa80e7ca76..600d7ea42a4 100644 --- a/icu4c/source/i18n/uspoof_conf.h +++ b/icu4c/source/i18n/uspoof_conf.h @@ -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. diff --git a/icu4c/source/i18n/uspoof_impl.h b/icu4c/source/i18n/uspoof_impl.h index cbfe4d937a2..7002c945d1d 100644 --- a/icu4c/source/i18n/uspoof_impl.h +++ b/icu4c/source/i18n/uspoof_impl.h @@ -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. diff --git a/icu4c/source/i18n/usrchimp.h b/icu4c/source/i18n/usrchimp.h index f11816785f6..560e0e5ea66 100644 --- a/icu4c/source/i18n/usrchimp.h +++ b/icu4c/source/i18n/usrchimp.h @@ -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); diff --git a/icu4c/source/i18n/vtzone.cpp b/icu4c/source/i18n/vtzone.cpp index 83a7c1e466c..f2431f374df 100644 --- a/icu4c/source/i18n/vtzone.cpp +++ b/icu4c/source/i18n/vtzone.cpp @@ -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 { diff --git a/icu4c/source/icudefs.mk.in b/icu4c/source/icudefs.mk.in index 24bd97a4dcd..2c358167a83 100644 --- a/icu4c/source/icudefs.mk.in +++ b/icu4c/source/icudefs.mk.in @@ -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 diff --git a/icu4c/source/io/unicode/ustdio.h b/icu4c/source/io/unicode/ustdio.h index 23bbea6d725..5aad6b9bbea 100644 --- a/icu4c/source/io/unicode/ustdio.h +++ b/icu4c/source/io/unicode/ustdio.h @@ -102,7 +102,7 @@ *

    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.

    * *
      @@ -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 locale, unless locale * 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 locale, unless locale * 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 f after a call * to u_fgetc, 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 u_fgetc or u_fgetcx call, the results are undefined. * @param c The UChar to put back on the stream. * @param f The UFILE to receive c. diff --git a/icu4c/source/layoutex/layout/ParagraphLayout.h b/icu4c/source/layoutex/layout/ParagraphLayout.h index 518f96fb327..b8a7aa3c17d 100644 --- a/icu4c/source/layoutex/layout/ParagraphLayout.h +++ b/icu4c/source/layoutex/layout/ParagraphLayout.h @@ -369,7 +369,7 @@ public: * @param fontRuns a pointer to a FontRuns object representing the font runs. * * @param levelRuns is a pointer to a ValueRuns object representing the directional levels. - * If this pointer in NULL the levels will be determined by running the Unicde + * If this pointer in NULL the levels will be determined by running the Unicode * Bidi algorithm. * * @param scriptRuns is a pointer to a ValueRuns object representing script runs. @@ -403,7 +403,7 @@ public: /** * The destructor. Virtual so that it works correctly with - * sublcasses. + * subclasses. * * @stable ICU 3.2 */ diff --git a/icu4c/source/layoutex/layout/playout.h b/icu4c/source/layoutex/layout/playout.h index cf24ce537e7..455f44a0e6c 100644 --- a/icu4c/source/layoutex/layout/playout.h +++ b/icu4c/source/layoutex/layout/playout.h @@ -69,7 +69,7 @@ typedef void pl_visualRun; * @param fontRuns a pointer to a pl_fontRuns object representing the font runs. * * @param levelRuns is a pointer to a pl_valueRuns object representing the directional levels. - * If this pointer in NULL the levels will be determined by running the Unicde + * If this pointer in NULL the levels will be determined by running the Unicode * Bidi algorithm. * * @param scriptRuns is a pointer to a pl_valueRuns object representing script runs. diff --git a/icu4c/source/samples/layout/FontMap.cpp b/icu4c/source/samples/layout/FontMap.cpp index acfee82360c..75c1c013ffd 100644 --- a/icu4c/source/samples/layout/FontMap.cpp +++ b/icu4c/source/samples/layout/FontMap.cpp @@ -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; diff --git a/icu4c/source/samples/layout/ScriptCompositeFontInstance.h b/icu4c/source/samples/layout/ScriptCompositeFontInstance.h index 06f2c1af013..5b287a12afd 100644 --- a/icu4c/source/samples/layout/ScriptCompositeFontInstance.h +++ b/icu4c/source/samples/layout/ScriptCompositeFontInstance.h @@ -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 * diff --git a/icu4c/source/test/cintltst/bocu1tst.c b/icu4c/source/test/cintltst/bocu1tst.c index edfe65002a6..00551c30eef 100644 --- a/icu4c/source/test/cintltst/bocu1tst.c +++ b/icu4c/source/test/cintltst/bocu1tst.c @@ -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 diff --git a/icu4c/source/test/cintltst/capitst.c b/icu4c/source/test/cintltst/capitst.c index 07b072e2b0d..32cccf5f520 100644 --- a/icu4c/source/test/cintltst/capitst.c +++ b/icu4c/source/test/cintltst/capitst.c @@ -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; } diff --git a/icu4c/source/test/cintltst/cbiapts.c b/icu4c/source/test/cintltst/cbiapts.c index 40272c8ff73..51cc8c43e3c 100644 --- a/icu4c/source/test/cintltst/cbiapts.c +++ b/icu4c/source/test/cintltst/cbiapts.c @@ -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 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 */ diff --git a/icu4c/source/test/cintltst/ccapitst.c b/icu4c/source/test/cintltst/ccapitst.c index aae16f98f44..50750137908 100644 --- a/icu4c/source/test/cintltst/ccapitst.c +++ b/icu4c/source/test/cintltst/ccapitst.c @@ -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; diff --git a/icu4c/source/test/cintltst/cdattst.c b/icu4c/source/test/cintltst/cdattst.c index cded31edd5b..8c638bd0d06 100644 --- a/icu4c/source/test/cintltst/cdattst.c +++ b/icu4c/source/test/cintltst/cdattst.c @@ -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"); diff --git a/icu4c/source/test/cintltst/cdtdptst.c b/icu4c/source/test/cintltst/cdtdptst.c index d7126eca616..bd8e94c0624 100644 --- a/icu4c/source/test/cintltst/cdtdptst.c +++ b/icu4c/source/test/cintltst/cdtdptst.c @@ -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); diff --git a/icu4c/source/test/cintltst/citertst.c b/icu4c/source/test/cintltst/citertst.c index 6c771111618..06ab2e1be3e 100644 --- a/icu4c/source/test/cintltst/citertst.c +++ b/icu4c/source/test/cintltst/citertst.c @@ -1004,7 +1004,7 @@ static void TestSmallBuffer() } /** -* Testing the discontigous contractions +* Testing the discontiguous contractions */ static void TestDiscontiguos() { const char *rulestr = diff --git a/icu4c/source/test/cintltst/cloctst.c b/icu4c/source/test/cintltst/cloctst.c index df9cebed9fb..16adf9a81a4 100644 --- a/icu4c/source/test/cintltst/cloctst.c +++ b/icu4c/source/test/cintltst/cloctst.c @@ -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); diff --git a/icu4c/source/test/cintltst/cloctst.h b/icu4c/source/test/cintltst/cloctst.h index 69f4e6f1b62..e6597e0ce42 100644 --- a/icu4c/source/test/cintltst/cloctst.h +++ b/icu4c/source/test/cintltst/cloctst.h @@ -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); diff --git a/icu4c/source/test/cintltst/cmsccoll.c b/icu4c/source/test/cintltst/cmsccoll.c index 6fdaaebc394..206daa20a3d 100644 --- a/icu4c/source/test/cintltst/cmsccoll.c +++ b/icu4c/source/test/cintltst/cmsccoll.c @@ -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); diff --git a/icu4c/source/test/cintltst/cnmdptst.h b/icu4c/source/test/cintltst/cnmdptst.h index 57484ea3d2e..a64ef96325d 100644 --- a/icu4c/source/test/cintltst/cnmdptst.h +++ b/icu4c/source/test/cintltst/cnmdptst.h @@ -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*/ diff --git a/icu4c/source/test/cintltst/cnormtst.c b/icu4c/source/test/cintltst/cnormtst.c index a71a3f3a0e9..c16f8a62846 100644 --- a/icu4c/source/test/cintltst/cnormtst.c +++ b/icu4c/source/test/cintltst/cnormtst.c @@ -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) { diff --git a/icu4c/source/test/cintltst/cnumtst.c b/icu4c/source/test/cintltst/cnumtst.c index 357aca56079..42fca481462 100644 --- a/icu4c/source/test/cintltst/cnumtst.c +++ b/icu4c/source/test/cintltst/cnumtst.c @@ -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 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 }; diff --git a/icu4c/source/test/cintltst/cucdtst.c b/icu4c/source/test/cintltst/cucdtst.c index acb01960ce2..dd9c6b84a4d 100644 --- a/icu4c/source/test/cintltst/cucdtst.c +++ b/icu4c/source/test/cintltst/cucdtst.c @@ -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); diff --git a/icu4c/source/test/cintltst/custrtst.c b/icu4c/source/test/cintltst/custrtst.c index a1fc7b9c815..db503ff113d 100644 --- a/icu4c/source/test/cintltst/custrtst.c +++ b/icu4c/source/test/cintltst/custrtst.c @@ -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"); diff --git a/icu4c/source/test/cintltst/eurocreg.c b/icu4c/source/test/cintltst/eurocreg.c index 05f24700faf..19633c03486 100644 --- a/icu4c/source/test/cintltst/eurocreg.c +++ b/icu4c/source/test/cintltst/eurocreg.c @@ -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; } diff --git a/icu4c/source/test/cintltst/hpmufn.c b/icu4c/source/test/cintltst/hpmufn.c index 15ee5b4120c..558120de3d2 100644 --- a/icu4c/source/test/cintltst/hpmufn.c +++ b/icu4c/source/test/cintltst/hpmufn.c @@ -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 */ diff --git a/icu4c/source/test/cintltst/idnatest.c b/icu4c/source/test/cintltst/idnatest.c index e42aedea0c1..3025e85416e 100644 --- a/icu4c/source/test/cintltst/idnatest.c +++ b/icu4c/source/test/cintltst/idnatest.c @@ -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",*/ diff --git a/icu4c/source/test/cintltst/nccbtst.h b/icu4c/source/test/cintltst/nccbtst.h index d1e8453b03b..dc91aa5e0ea 100644 --- a/icu4c/source/test/cintltst/nccbtst.h +++ b/icu4c/source/test/cintltst/nccbtst.h @@ -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, diff --git a/icu4c/source/test/cintltst/ncnvfbts.c b/icu4c/source/test/cintltst/ncnvfbts.c index 407e4fcbf41..d7e5efa2a8f 100644 --- a/icu4c/source/test/cintltst/ncnvfbts.c +++ b/icu4c/source/test/cintltst/ncnvfbts.c @@ -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 @@ -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[] = { diff --git a/icu4c/source/test/cintltst/ncnvtst.c b/icu4c/source/test/cintltst/ncnvtst.c index 77f7fbc9669..7f56e644420 100644 --- a/icu4c/source/test/cintltst/ncnvtst.c +++ b/icu4c/source/test/cintltst/ncnvtst.c @@ -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); diff --git a/icu4c/source/test/cintltst/nucnvtst.c b/icu4c/source/test/cintltst/nucnvtst.c index 73e0fded9a4..ce37bab8463 100644 --- a/icu4c/source/test/cintltst/nucnvtst.c +++ b/icu4c/source/test/cintltst/nucnvtst.c @@ -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); diff --git a/icu4c/source/test/cintltst/reapits.c b/icu4c/source/test/cintltst/reapits.c index 73bc59a00f8..db961480147 100644 --- a/icu4c/source/test/cintltst/reapits.c +++ b/icu4c/source/test/cintltst/reapits.c @@ -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; diff --git a/icu4c/source/test/cintltst/spooftest.c b/icu4c/source/test/cintltst/spooftest.c index c6ddbe09542..131d4c3d759 100644 --- a/icu4c/source/test/cintltst/spooftest.c +++ b/icu4c/source/test/cintltst/spooftest.c @@ -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}; diff --git a/icu4c/source/test/cintltst/stdnmtst.c b/icu4c/source/test/cintltst/stdnmtst.c index 929bf48c80c..818478107ab 100644 --- a/icu4c/source/test/cintltst/stdnmtst.c +++ b/icu4c/source/test/cintltst/stdnmtst.c @@ -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); diff --git a/icu4c/source/test/cintltst/trietest.c b/icu4c/source/test/cintltst/trietest.c index b70bf539d50..f1cf243208d 100644 --- a/icu4c/source/test/cintltst/trietest.c +++ b/icu4c/source/test/cintltst/trietest.c @@ -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; diff --git a/icu4c/source/test/cintltst/ucsdetst.c b/icu4c/source/test/cintltst/ucsdetst.c index e39c46aaa7a..f65f8d79aa4 100644 --- a/icu4c/source/test/cintltst/ucsdetst.c +++ b/icu4c/source/test/cintltst/ucsdetst.c @@ -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) { diff --git a/icu4c/source/test/cintltst/udatatst.c b/icu4c/source/test/cintltst/udatatst.c index a52078d0477..109503db4d3 100644 --- a/icu4c/source/test/cintltst/udatatst.c +++ b/icu4c/source/test/cintltst/udatatst.c @@ -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); diff --git a/icu4c/source/test/cintltst/usettest.c b/icu4c/source/test/cintltst/usettest.c index 87f8fc2b38b..a444ce5c937 100644 --- a/icu4c/source/test/cintltst/usettest.c +++ b/icu4c/source/test/cintltst/usettest.c @@ -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"); } /* [] */ diff --git a/icu4c/source/test/cintltst/usrchtst.c b/icu4c/source/test/cintltst/usrchtst.c index 7a683a063d0..9e224c1270d 100644 --- a/icu4c/source/test/cintltst/usrchtst.c +++ b/icu4c/source/test/cintltst/usrchtst.c @@ -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); } } diff --git a/icu4c/source/test/cintltst/utransts.c b/icu4c/source/test/cintltst/utransts.c index cac40e392ec..45ba01631b5 100644 --- a/icu4c/source/test/cintltst/utransts.c +++ b/icu4c/source/test/cintltst/utransts.c @@ -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 diff --git a/icu4c/source/test/depstest/depstest.py b/icu4c/source/test/depstest/depstest.py index 83dbfc063ca..27d48b6b841 100755 --- a/icu4c/source/test/depstest/depstest.py +++ b/icu4c/source/test/depstest/depstest.py @@ -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() diff --git a/icu4c/source/test/fuzzer/fuzzer_driver.cpp b/icu4c/source/test/fuzzer/fuzzer_driver.cpp index 9bffb93649b..9361d606a00 100644 --- a/icu4c/source/test/fuzzer/fuzzer_driver.cpp +++ b/icu4c/source/test/fuzzer/fuzzer_driver.cpp @@ -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) { diff --git a/icu4c/source/test/intltest/apicoll.cpp b/icu4c/source/test/intltest/apicoll.cpp index 2130d40b1fc..fa6475ef2ec 100644 --- a/icu4c/source/test/intltest/apicoll.cpp +++ b/icu4c/source/test/intltest/apicoll.cpp @@ -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); diff --git a/icu4c/source/test/intltest/apicoll.h b/icu4c/source/test/intltest/apicoll.h index 52aef260013..a27e4b35100 100644 --- a/icu4c/source/test/intltest/apicoll.h +++ b/icu4c/source/test/intltest/apicoll.h @@ -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 */); diff --git a/icu4c/source/test/intltest/callimts.cpp b/icu4c/source/test/intltest/callimts.cpp index 7208a08bb47..70913213e30 100644 --- a/icu4c/source/test/intltest/callimts.cpp +++ b/icu4c/source/test/intltest/callimts.cpp @@ -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) { diff --git a/icu4c/source/test/intltest/calregts.cpp b/icu4c/source/test/intltest/calregts.cpp index b3ac46e25eb..459623be6ac 100644 --- a/icu4c/source/test/intltest/calregts.cpp +++ b/icu4c/source/test/intltest/calregts.cpp @@ -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; } diff --git a/icu4c/source/test/intltest/caltest.cpp b/icu4c/source/test/intltest/caltest.cpp index 25f5f72ce2b..2d68af678f6 100644 --- a/icu4c/source/test/intltest/caltest.cpp +++ b/icu4c/source/test/intltest/caltest.cpp @@ -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(); diff --git a/icu4c/source/test/intltest/colldata.cpp b/icu4c/source/test/intltest/colldata.cpp index c3a6d8a7f8d..a06f871b1bb 100644 --- a/icu4c/source/test/intltest/colldata.cpp +++ b/icu4c/source/test/intltest/colldata.cpp @@ -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); diff --git a/icu4c/source/test/intltest/colldata.h b/icu4c/source/test/intltest/colldata.h index 7400d2b3ca3..d78425c70ec 100644 --- a/icu4c/source/test/intltest/colldata.h +++ b/icu4c/source/test/intltest/colldata.h @@ -14,10 +14,10 @@ */ /* - * 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. * * CollData objects are quite expensive to compute. Because * of this, they are cached. When you call CollData::open it @@ -236,17 +236,17 @@ public: * @param ce - the CE * * return a StringList object containing all - * the stirngs, or NULL if there are + * the strings, or NULL 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 CEList object containt the CEs. You + * @return a CEList object containing the CEs. You * must call freeCEList when you are finished * using the CEList/ */ diff --git a/icu4c/source/test/intltest/csdetest.cpp b/icu4c/source/test/intltest/csdetest.cpp index 69e12de2f7e..66f9340b83a 100644 --- a/icu4c/source/test/intltest/csdetest.cpp +++ b/icu4c/source/test/intltest/csdetest.cpp @@ -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) { diff --git a/icu4c/source/test/intltest/datadrivennumberformattestsuite.h b/icu4c/source/test/intltest/datadrivennumberformattestsuite.h index 45c28468727..623ddad1a9e 100644 --- a/icu4c/source/test/intltest/datadrivennumberformattestsuite.h +++ b/icu4c/source/test/intltest/datadrivennumberformattestsuite.h @@ -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); diff --git a/icu4c/source/test/intltest/dcfmtest.cpp b/icu4c/source/test/intltest/dcfmtest.cpp index 13994701620..0734a44822f 100644 --- a/icu4c/source/test/intltest/dcfmtest.cpp +++ b/icu4c/source/test/intltest/dcfmtest.cpp @@ -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; } diff --git a/icu4c/source/test/intltest/dtfmttst.cpp b/icu4c/source/test/intltest/dtfmttst.cpp index 3bd51368569..366ef575206 100644 --- a/icu4c/source/test/intltest/dtfmttst.cpp +++ b/icu4c/source/test/intltest/dtfmttst.cpp @@ -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; diff --git a/icu4c/source/test/intltest/dtfmttst.h b/icu4c/source/test/intltest/dtfmttst.h index eef0d224931..dc196d76df4 100644 --- a/icu4c/source/test/intltest/dtfmttst.h +++ b/icu4c/source/test/intltest/dtfmttst.h @@ -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: diff --git a/icu4c/source/test/intltest/fldset.h b/icu4c/source/test/intltest/fldset.h index e6e6ee0c6d0..8ed608cb7b7 100644 --- a/icu4c/source/test/intltest/fldset.h +++ b/icu4c/source/test/intltest/fldset.h @@ -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. diff --git a/icu4c/source/test/intltest/idnaref.h b/icu4c/source/test/intltest/idnaref.h index 5b74ff21592..7c940a9d88b 100644 --- a/icu4c/source/test/intltest/idnaref.h +++ b/icu4c/source/test/intltest/idnaref.h @@ -47,10 +47,10 @@ * 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. diff --git a/icu4c/source/test/intltest/incaltst.cpp b/icu4c/source/test/intltest/incaltst.cpp index ebc22cf128d..ad75f185f63 100644 --- a/icu4c/source/test/intltest/incaltst.cpp +++ b/icu4c/source/test/intltest/incaltst.cpp @@ -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() { diff --git a/icu4c/source/test/intltest/intltest.cpp b/icu4c/source/test/intltest/intltest.cpp index 02521972fc6..2f672609c0d 100644 --- a/icu4c/source/test/intltest/intltest.cpp +++ b/icu4c/source/test/intltest/intltest.cpp @@ -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:=, \n" + "### exhaustive (e), leaks (l), -x xmlfile.xml, prop:=, \n" "### notime (T), \n" "### threads:\n" "### (The default thread count is 12.),\n" diff --git a/icu4c/source/test/intltest/intltest.h b/icu4c/source/test/intltest/intltest.h index 4c485fe8d1a..418f618bfda 100644 --- a/icu4c/source/test/intltest/intltest.h +++ b/icu4c/source/test/intltest/intltest.h @@ -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& expected, const std::vector& 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 ); diff --git a/icu4c/source/test/intltest/itercoll.cpp b/icu4c/source/test/intltest/itercoll.cpp index e78a6c5f472..207be63ac27 100644 --- a/icu4c/source/test/intltest/itercoll.cpp +++ b/icu4c/source/test/intltest/itercoll.cpp @@ -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)) diff --git a/icu4c/source/test/intltest/itrbnf.cpp b/icu4c/source/test/intltest/itrbnf.cpp index 73f55325634..847b8412840 100644 --- a/icu4c/source/test/intltest/itrbnf.cpp +++ b/icu4c/source/test/intltest/itrbnf.cpp @@ -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>>", // arrays missing separating comma "<<%main>,>", // too many elements in locale data "<<%main>,>", // too few elements in locale data diff --git a/icu4c/source/test/intltest/localebuildertest.cpp b/icu4c/source/test/intltest/localebuildertest.cpp index 9c2cb23b44a..70271211ab0 100644 --- a/icu4c/source/test/intltest/localebuildertest.cpp +++ b/icu4c/source/test/intltest/localebuildertest.cpp @@ -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; } diff --git a/icu4c/source/test/intltest/loctest.h b/icu4c/source/test/intltest/loctest.h index 2c91520dd17..59577a2224c 100644 --- a/icu4c/source/test/intltest/loctest.h +++ b/icu4c/source/test/intltest/loctest.h @@ -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); diff --git a/icu4c/source/test/intltest/lstmbetst.cpp b/icu4c/source/test/intltest/lstmbetst.cpp index 8a6de027115..50c9e8a3d72 100644 --- a/icu4c/source/test/intltest/lstmbetst.cpp +++ b/icu4c/source/test/intltest/lstmbetst.cpp @@ -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; diff --git a/icu4c/source/test/intltest/msfmrgts.cpp b/icu4c/source/test/intltest/msfmrgts.cpp index 1b83b10876d..d7c8573b944 100644 --- a/icu4c/source/test/intltest/msfmrgts.cpp +++ b/icu4c/source/test/intltest/msfmrgts.cpp @@ -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, diff --git a/icu4c/source/test/intltest/numberformattesttuple.h b/icu4c/source/test/intltest/numberformattesttuple.h index f30de79deb5..a2ad2f7e746 100644 --- a/icu4c/source/test/intltest/numberformattesttuple.h +++ b/icu4c/source/test/intltest/numberformattesttuple.h @@ -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. diff --git a/icu4c/source/test/intltest/numfmtst.cpp b/icu4c/source/test/intltest/numfmtst.cpp index 350ef1383cd..e5db029c965 100644 --- a/icu4c/source/test/intltest/numfmtst.cpp +++ b/icu4c/source/test/intltest/numfmtst.cpp @@ -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(); diff --git a/icu4c/source/test/intltest/numrgts.cpp b/icu4c/source/test/intltest/numrgts.cpp index b9c4f661373..48d465c863c 100644 --- a/icu4c/source/test/intltest/numrgts.cpp +++ b/icu4c/source/test/intltest/numrgts.cpp @@ -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]; diff --git a/icu4c/source/test/intltest/rbbiapts.cpp b/icu4c/source/test/intltest/rbbiapts.cpp index a3334f5a439..dc3964ba44a 100644 --- a/icu4c/source/test/intltest/rbbiapts.cpp +++ b/icu4c/source/test/intltest/rbbiapts.cpp @@ -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(); diff --git a/icu4c/source/test/intltest/rbbitst.cpp b/icu4c/source/test/intltest/rbbitst.cpp index ebc0a415eb1..4ec830f6eab 100644 --- a/icu4c/source/test/intltest/rbbitst.cpp +++ b/icu4c/source/test/intltest/rbbitst.cpp @@ -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; diff --git a/icu4c/source/test/intltest/regextst.cpp b/icu4c/source/test/intltest/regextst.cpp index bf6922bfa38..25623b1e82f 100644 --- a/icu4c/source/test/intltest/regextst.cpp +++ b/icu4c/source/test/intltest/regextst.cpp @@ -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"(?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. diff --git a/icu4c/source/test/intltest/tsdcfmsy.cpp b/icu4c/source/test/intltest/tsdcfmsy.cpp index 18a1ae863c1..526d88a3a79 100644 --- a/icu4c/source/test/intltest/tsdcfmsy.cpp +++ b/icu4c/source/test/intltest/tsdcfmsy.cpp @@ -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"); } diff --git a/icu4c/source/test/intltest/tsmthred.cpp b/icu4c/source/test/intltest/tsmthred.cpp index 98e04869d85..5b70389c4a8 100644 --- a/icu4c/source/test/intltest/tsmthred.cpp +++ b/icu4c/source/test/intltest/tsmthred.cpp @@ -1108,7 +1108,7 @@ const UCTMultiThreadItem *LocaleCacheKey::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) { diff --git a/icu4c/source/test/intltest/tufmtts.cpp b/icu4c/source/test/intltest/tufmtts.cpp index 3a0d7b65f87..4f35d764ca2 100644 --- a/icu4c/source/test/intltest/tufmtts.cpp +++ b/icu4c/source/test/intltest/tufmtts.cpp @@ -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(); diff --git a/icu4c/source/test/intltest/tzfmttst.cpp b/icu4c/source/test/intltest/tzfmttst.cpp index 882125f1c3f..0daa45c5a4d 100644 --- a/icu4c/source/test/intltest/tzfmttst.cpp +++ b/icu4c/source/test/intltest/tzfmttst.cpp @@ -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) { diff --git a/icu4c/source/test/intltest/tzrulets.cpp b/icu4c/source/test/intltest/tzrulets.cpp index dc644329e94..f683d8ee1b2 100644 --- a/icu4c/source/test/intltest/tzrulets.cpp +++ b/icu4c/source/test/intltest/tzrulets.cpp @@ -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; diff --git a/icu4c/source/test/intltest/unifiedcachetest.cpp b/icu4c/source/test/intltest/unifiedcachetest.cpp index 0525d475c0a..c11d71fecb1 100644 --- a/icu4c/source/test/intltest/unifiedcachetest.cpp +++ b/icu4c/source/test/intltest/unifiedcachetest.cpp @@ -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()); diff --git a/icu4c/source/test/intltest/ustrtest.cpp b/icu4c/source/test/intltest/ustrtest.cpp index ad38bdf53a3..560f72a7ffc 100644 --- a/icu4c/source/test/intltest/ustrtest.cpp +++ b/icu4c/source/test/intltest/ustrtest.cpp @@ -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) diff --git a/icu4c/source/test/intltest/utxttest.cpp b/icu4c/source/test/intltest/utxttest.cpp index dc343189880..942c94dc9f1 100644 --- a/icu4c/source/test/intltest/utxttest.cpp +++ b/icu4c/source/test/intltest/utxttest.cpp @@ -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; iglyphCount != 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; } diff --git a/icu4c/source/test/letest/letest.cpp b/icu4c/source/test/letest/letest.cpp index ff15c938cf6..d8b780ea55a 100644 --- a/icu4c/source/test/letest/letest.cpp +++ b/icu4c/source/test/letest/letest.cpp @@ -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; } diff --git a/icu4c/source/test/perf/README b/icu4c/source/test/perf/README index 75c5cda302e..21af8cdc75f 100644 --- a/icu4c/source/test/perf/README +++ b/icu4c/source/test/perf/README @@ -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. diff --git a/icu4c/source/test/perf/howExpensiveIs/sieve.cpp b/icu4c/source/test/perf/howExpensiveIs/sieve.cpp index 0478b6d6bf2..331f946eecb 100644 --- a/icu4c/source/test/perf/howExpensiveIs/sieve.cpp +++ b/icu4c/source/test/perf/howExpensiveIs/sieve.cpp @@ -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{_error} * $self->{_scale}; diff --git a/icu4c/source/test/testdata/break_rules/grapheme.txt b/icu4c/source/test/testdata/break_rules/grapheme.txt index c57a898fbf6..d5776f33c20 100644 --- a/icu4c/source/test/testdata/break_rules/grapheme.txt +++ b/icu4c/source/test/testdata/break_rules/grapheme.txt @@ -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:]; diff --git a/icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt b/icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt index 2235305cce0..f1e711e4219 100644 --- a/icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt +++ b/icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt @@ -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 diff --git a/icu4c/source/test/testdata/idna_conf.txt b/icu4c/source/test/testdata/idna_conf.txt index 8f2650dc94d..46a122331f5 100644 --- a/icu4c/source/test/testdata/idna_conf.txt +++ b/icu4c/source/test/testdata/idna_conf.txt @@ -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 diff --git a/icu4c/source/test/testdata/rbbitst.txt b/icu4c/source/test/testdata/rbbitst.txt index f59433fe86c..7c42b5e3988 100644 --- a/icu4c/source/test/testdata/rbbitst.txt +++ b/icu4c/source/test/testdata/rbbitst.txt @@ -16,8 +16,8 @@ # any following data is for char break testing # 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> diff --git a/icu4c/source/test/testdata/regextst.txt b/icu4c/source/test/testdata/regextst.txt index 6fb90ef8143..0909dc77e28 100644 --- a/icu4c/source/test/testdata/regextst.txt +++ b/icu4c/source/test/testdata/regextst.txt @@ -389,7 +389,7 @@ "(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 @@ -518,7 +518,7 @@ "(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> " @@ -1031,7 +1031,7 @@ # # 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.ニヌネノハバパ" @@ -1143,7 +1143,7 @@ "((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> " @@ -1926,13 +1926,13 @@ "/\*[\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>" @@ -2058,7 +2058,7 @@ "^((((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" @@ -2227,7 +2227,7 @@ #'<[^>]*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>" diff --git a/icu4c/source/test/testdata/ssearch.xml b/icu4c/source/test/testdata/ssearch.xml index b781bac2aeb..c9fc6d37960 100644 --- a/icu4c/source/test/testdata/ssearch.xml +++ b/icu4c/source/test/testdata/ssearch.xml @@ -174,12 +174,12 @@ --> <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> @@ -207,7 +207,7 @@ </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> @@ -240,7 +240,7 @@ <!-- 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"> diff --git a/icu4c/source/test/thaitest/thaitest.cpp b/icu4c/source/test/thaitest/thaitest.cpp index d05ef97ca7d..9ac91a4af0c 100644 --- a/icu4c/source/test/thaitest/thaitest.cpp +++ b/icu4c/source/test/thaitest/thaitest.cpp @@ -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. diff --git a/icu4c/source/tools/ctestfw/ctest.c b/icu4c/source/tools/ctestfw/ctest.c index b6de691833b..4562959ec69 100644 --- a/icu4c/source/tools/ctestfw/ctest.c +++ b/icu4c/source/tools/ctestfw/ctest.c @@ -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 ); } diff --git a/icu4c/source/tools/ctestfw/unicode/ctest.h b/icu4c/source/tools/ctestfw/unicode/ctest.h index 50e3fdb8166..3debcf68054 100644 --- a/icu4c/source/tools/ctestfw/unicode/ctest.h +++ b/icu4c/source/tools/ctestfw/unicode/ctest.h @@ -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' diff --git a/icu4c/source/tools/ctestfw/unicode/testdata.h b/icu4c/source/tools/ctestfw/unicode/testdata.h index cbee692bcaf..69fa6644f33 100644 --- a/icu4c/source/tools/ctestfw/unicode/testdata.h +++ b/icu4c/source/tools/ctestfw/unicode/testdata.h @@ -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; diff --git a/icu4c/source/tools/ctestfw/unicode/uperf.h b/icu4c/source/tools/ctestfw/unicode/uperf.h index d1e0d6e7ccf..ea9ec1f255b 100644 --- a/icu4c/source/tools/ctestfw/unicode/uperf.h +++ b/icu4c/source/tools/ctestfw/unicode/uperf.h @@ -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 ); diff --git a/icu4c/source/tools/ctestfw/unicode/utimer.h b/icu4c/source/tools/ctestfw/unicode/utimer.h index 7b0d7538d74..e12485d9d37 100644 --- a/icu4c/source/tools/ctestfw/unicode/utimer.h +++ b/icu4c/source/tools/ctestfw/unicode/utimer.h @@ -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) { @@ -159,7 +159,7 @@ 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; diff --git a/icu4c/source/tools/genrb/genrb.cpp b/icu4c/source/tools/genrb/genrb.cpp index a9b60b935a4..a739b91143c 100644 --- a/icu4c/source/tools/genrb/genrb.cpp +++ b/icu4c/source/tools/genrb/genrb.cpp @@ -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 diff --git a/icu4c/source/tools/genrb/prscmnts.cpp b/icu4c/source/tools/genrb/prscmnts.cpp index 34d2a26043c..cb835cb8c33 100644 --- a/icu4c/source/tools/genrb/prscmnts.cpp +++ b/icu4c/source/tools/genrb/prscmnts.cpp @@ -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; } diff --git a/icu4c/source/tools/genrb/wrtjava.cpp b/icu4c/source/tools/genrb/wrtjava.cpp index 1ee2f5fca61..3ad0a94cf3d 100644 --- a/icu4c/source/tools/genrb/wrtjava.cpp +++ b/icu4c/source/tools/genrb/wrtjava.cpp @@ -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; diff --git a/icu4c/source/tools/genrb/wrtxml.cpp b/icu4c/source/tools/genrb/wrtxml.cpp index 58e055d5718..e65cd768d7c 100644 --- a/icu4c/source/tools/genrb/wrtxml.cpp +++ b/icu4c/source/tools/genrb/wrtxml.cpp @@ -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")); } diff --git a/icu4c/source/tools/gensprep/store.c b/icu4c/source/tools/gensprep/store.c index d9fbcdb461c..dadd4a87650 100644 --- a/icu4c/source/tools/gensprep/store.c +++ b/icu4c/source/tools/gensprep/store.c @@ -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: diff --git a/icu4c/source/tools/toolutil/ucbuf.cpp b/icu4c/source/tools/toolutil/ucbuf.cpp index d2051590563..c8e906f2d55 100644 --- a/icu4c/source/tools/toolutil/ucbuf.cpp +++ b/icu4c/source/tools/toolutil/ucbuf.cpp @@ -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){ diff --git a/icu4c/source/tools/toolutil/uoptions.h b/icu4c/source/tools/toolutil/uoptions.h index e6d5cbf9d45..d00e3da924a 100644 --- a/icu4c/source/tools/toolutil/uoptions.h +++ b/icu4c/source/tools/toolutil/uoptions.h @@ -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[] */ diff --git a/icu4c/source/tools/toolutil/xmlparser.cpp b/icu4c/source/tools/toolutil/xmlparser.cpp index 918b06193d1..a6569903bcd 100644 --- a/icu4c/source/tools/toolutil/xmlparser.cpp +++ b/icu4c/source/tools/toolutil/xmlparser.cpp @@ -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 diff --git a/icu4c/source/tools/tzcode/localtime.c b/icu4c/source/tools/tzcode/localtime.c index ff07c70925d..0d33856647e 100644 --- a/icu4c/source/tools/tzcode/localtime.c +++ b/icu4c/source/tools/tzcode/localtime.c @@ -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) diff --git a/icu4c/source/tools/tzcode/tz2icu.cpp b/icu4c/source/tools/tzcode/tz2icu.cpp index dcdbf65ceab..b3c9f99c30e 100644 --- a/icu4c/source/tools/tzcode/tz2icu.cpp +++ b/icu4c/source/tools/tzcode/tz2icu.cpp @@ -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) {