]> granicus.if.org Git - icu/commitdiff
ICU-21416 Fix typos in comments
authorinokawa <48897392+inokawa@users.noreply.github.com>
Mon, 30 Nov 2020 03:02:55 +0000 (12:02 +0900)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 9 Dec 2020 22:17:14 +0000 (14:17 -0800)
13 files changed:
icu4c/source/common/ustr_wcs.cpp
icu4c/source/i18n/basictz.cpp
icu4c/source/i18n/rbt_pars.cpp
icu4c/source/i18n/rbt_pars.h
icu4c/source/i18n/reldatefmt.cpp
icu4c/source/i18n/unicode/rbnf.h
icu4c/source/test/cintltst/cformtst.h
icu4c/source/tools/ctestfw/uperf.cpp
icu4c/source/tools/toolutil/xmlparser.cpp
icu4j/main/classes/core/src/com/ibm/icu/text/NumberFormat.java
icu4j/main/classes/translit/src/com/ibm/icu/text/TransliteratorParser.java
icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/TransliteratorInputMethodDescriptor.java
tools/unicodetools/com/ibm/rbm/gui/BundleItemCreationDialog.java

index e9f278e9691f76cee3440c7f30e08edf6281dd68..8e9b9b8201288728e0994d7448381ce3da3c6b1b 100644 (file)
@@ -387,7 +387,7 @@ _strFromWCS( UChar   *dest,
                  * null terminate it and convert wchar_ts to chars
                  */
                 if(nulLen >= _STACK_BUFFER_CAPACITY){
-                    /* Should rarely occcur */
+                    /* Should rarely occur */
                     /* allocate new buffer buffer */
                     pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1));
                     if(pWStack==NULL){
index 54ee5a1a2bff96e92f004f4511ed4d6bd7d3c67f..12c9e163c5d8194001f50765b5db4f4985b2cc6b 100644 (file)
@@ -423,7 +423,7 @@ BasicTimeZone::getTimeZoneRulesAfter(UDate start, InitialTimeZoneRule*& initial,
                         goto error;
                     }
                 } else {
-                    // Colllect transitions after the start time
+                    // Collect transitions after the start time
                     int32_t startTimes;
                     DateTimeRule::TimeRuleType timeType;
                     int32_t idx;
index 89d426813ce1c821140912d502893c3064e42a6d..7bfe1df581426da8366c239c8b6d89fc29109e66 100644 (file)
@@ -1159,7 +1159,7 @@ void TransliteratorParser::setVariableRange(int32_t start, int32_t end, UErrorCo
 
 /**
  * Assert that the given character is NOT within the variable range.
- * If it is, return FALSE.  This is neccesary to ensure that the
+ * If it is, return FALSE.  This is necessary to ensure that the
  * variable range does not overlap characters used in a rule.
  */
 UBool TransliteratorParser::checkVariableRange(UChar32 ch) const {
index 2a972e1eaa377468dafdcc903d9e31879312e578..07ae02de33ef6ee57b7ecb1b255f343175d855b3 100644 (file)
@@ -210,7 +210,7 @@ private:
 
     /**
      * Assert that the given character is NOT within the variable range.
-     * If it is, return false.  This is neccesary to ensure that the
+     * If it is, return false.  This is necessary to ensure that the
      * variable range does not overlap characters used in a rule.
      * @param ch     the given character.
      * @return       True, if the given character is NOT within the variable range.
index b4d4e646b044c0585c3f58d43adaf7d3cb110750..19fabbea66996dcdddd6fb91e7c847fc59762974 100644 (file)
@@ -95,7 +95,7 @@ public:
 
     const UnicodeString emptyString;
 
-    // Mappping from source to target styles for alias fallback.
+    // Mapping from source to target styles for alias fallback.
     int32_t fallBackCache[UDAT_STYLE_COUNT];
 
     void adoptCombinedDateAndTime(SimpleFormatter *fmtToAdopt) {
index 283e9696fb94b17e53801034b6463d91a5b255c1..c6484dab9a983a221409083bd03b9a28f11ac92b 100644 (file)
@@ -543,7 +543,7 @@ enum URBNFRuleSetTag {
  * names in this array will be treated as public rule set names by the API.  Each subsequent
  * element is an array of localizations of these names.  The first element of one of these
  * subarrays is the locale name, and the remaining elements are localizations of the
- * public rule set names, in the same order as they were listed in the first arrray.</p>
+ * public rule set names, in the same order as they were listed in the first array.</p>
  * <p>In the syntax, angle brackets '<', '>' are used to delimit the arrays, and comma ',' is used
  * to separate elements of an array.  Whitespace is ignored, unless quoted.</p>
  * <p>For example:<pre>
index bcee4c42f285ad8277eb3a05b3a1945e7e768201..09c01f4ee6b276068dbad698d028bda502653ed5 100644 (file)
@@ -28,7 +28,7 @@
 #include "unicode/uformattedvalue.h"
 
 
-/* Internal fucntion used by all the test format files */
+/* Internal function used by all the test format files */
 UChar* myDateFormat(UDateFormat *dat, UDate d); 
 
 
index b807974f58abd9345f0d77332dbb8cd70f1520d1..5605f0d2e3de2948930284d9f2e6f3524d0a8cf8 100644 (file)
@@ -265,7 +265,7 @@ UBool UPerfTest::run(){
         return runTest();
     }
     UBool res=FALSE;
-    // Test only the specified fucntion
+    // Test only the specified function
     for (int i = 1; i < _remainingArgc; ++i) {
         if (_argv[i][0] != '-') {
             char* name = (char*) _argv[i];
index a9650cc599927f26be11a8f1d014ded0c534e312..60cd49ca8b3e29a501c36f7102654ca738ee9b72 100644 (file)
@@ -79,7 +79,7 @@ UXMLParser::UXMLParser(UErrorCode &status) :
       //       or      "<!DOCTYPE foo [internal dtd]>
       //    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, occcurences
+      //           attempt at skipping over them, specifically, occurrences
       //           of closeing square brackets.  These could appear in comments, 
       //           or in parameter entity declarations, for example.
       mXMLDoctype(UnicodeString(
index 05065f28bbeeeab532dc2d6142099bb9540c16f6..50e759859c0ffcdc1cd4861e0ccba86af8f5c60a 100644 (file)
@@ -1440,7 +1440,7 @@ public abstract class NumberFormat extends UFormat {
     static NumberFormat createInstance(ULocale desiredLocale, int choice) {
         // If the choice is PLURALCURRENCYSTYLE, the pattern is not a single
         // pattern, it is a pattern set, so we do not need to get them here.
-        // If the choice is ISOCURRENCYSTYLE, the pattern is the currrency
+        // If the choice is ISOCURRENCYSTYLE, the pattern is the currency
         // pattern in the locale but by replacing the single currency sign
         // with double currency sign.
         String pattern = getPattern(desiredLocale, choice);
index 8ed20d3d49177728231ddca44b64ffc6c08c494b..bbfc33d8882f135c417bc01103752bd6d3a8a3ac 100644 (file)
@@ -1325,7 +1325,7 @@ class TransliteratorParser {
 
     /**
      * Assert that the given character is NOT within the variable range.
-     * If it is, signal an error.  This is neccesary to ensure that the
+     * If it is, signal an error.  This is necessary to ensure that the
      * variable range does not overlap characters used in a rule.
      */
     private void checkVariableRange(int ch, String rule, int start) {
index 7334be38dcb412eaccd61125548f69cc03ce1fdc..9203ea3710bb267b22189e31716ef758bb1623a6 100644 (file)
@@ -26,7 +26,7 @@ public class TransliteratorInputMethodDescriptor implements InputMethodDescripto
     private ResourceBundle rb = null;
 
     /**
-    * Creates the Transliterator IME this is automatically callled by the
+    * Creates the Transliterator IME this is automatically called by the
     * JVM when the Transliterator IME is selected from the input method list.
     *
     * @return InputMethod The Transliterator IME object.
index 4333bad71a7c35522ba7594b11aa7bc4219ef93e..2ab99743be30bdfe0bfbd5a5e21ff683adc79e4e 100644 (file)
@@ -214,7 +214,7 @@ class BundleItemCreationDialog extends JDialog {
                                lookups.remove(name);
                        }
                }
-               // Add new lookups if neccesary
+               // Add new lookups if necessary
                if (currentTrans != null && currentTrans.indexOf("{") >= 0) {
                        while (currentTrans.indexOf("{") >= 0) {
                                currentTrans = currentTrans.substring(currentTrans.indexOf("{")+1,currentTrans.length());