]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/UniClassObject.py
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / UniClassObject.py
index bd7804b7533bb856f37da56f04b61de845826d5d..d575c6b1f87562a4c9346db5017145dd5527abd8 100644 (file)
@@ -130,12 +130,12 @@ def ConvertSpecialUnicodes(Uni):
 ## GetLanguageCode1766\r
 #\r
 # Check the language code read from .UNI file and convert RFC 4646 codes to RFC 1766 codes\r
-# RFC 1766 language codes supported in compatiblity mode\r
+# RFC 1766 language codes supported in compatibility mode\r
 # RFC 4646 language codes supported in native mode\r
 #\r
 # @param LangName:   Language codes read from .UNI file\r
 #\r
-# @retval LangName:  Valid lanugage code in RFC 1766 format or None\r
+# @retval LangName:  Valid language code in RFC 1766 format or None\r
 #\r
 def GetLanguageCode1766(LangName, File=None):\r
     return LangName\r
@@ -177,7 +177,7 @@ def GetLanguageCode1766(LangName, File=None):
 ## GetLanguageCode\r
 #\r
 # Check the language code read from .UNI file and convert RFC 1766 codes to RFC 4646 codes if appropriate\r
-# RFC 1766 language codes supported in compatiblity mode\r
+# RFC 1766 language codes supported in compatibility mode\r
 # RFC 4646 language codes supported in native mode\r
 #\r
 # @param LangName:   Language codes read from .UNI file\r
@@ -221,13 +221,13 @@ def GetLanguageCode(LangName, IsCompatibleMode, File):
 \r
 ## FormatUniEntry\r
 #\r
-# Formated the entry in Uni file.\r
+# Formatted the entry in Uni file.\r
 #\r
 # @param StrTokenName    StrTokenName.\r
 # @param TokenValueList  A list need to be processed.\r
 # @param ContainerFile   ContainerFile.\r
 #\r
-# @return formated entry\r
+# @return formatted entry\r
 def FormatUniEntry(StrTokenName, TokenValueList, ContainerFile):\r
     SubContent = ''\r
     PreFormatLength = 40\r
@@ -478,8 +478,8 @@ class UniFileClassObject(object):
         MultiLineFeedExits = False\r
         #\r
         # 0: initial value\r
-        # 1: signle String entry exist\r
-        # 2: line feed exist under the some signle String entry\r
+        # 1: single String entry exist\r
+        # 2: line feed exist under the some single String entry\r
         #\r
         StringEntryExistsFlag = 0\r
         for Line in FileIn:\r
@@ -497,7 +497,7 @@ class UniFileClassObject(object):
                     StringEntryExistsFlag = 2\r
                 #\r
                 # If the '#string' line and the '#language' line are not in the same line,\r
-                # there should be only one line feed character betwwen them\r
+                # there should be only one line feed character between them\r
                 #\r
                 if MultiLineFeedExits:\r
                     EdkLogger.Error("Unicode File Parser", ToolError.FORMAT_INVALID, ExtraData=File.Path)\r
@@ -505,7 +505,7 @@ class UniFileClassObject(object):
 \r
             MultiLineFeedExits = False\r
             #\r
-            # Process comment embeded in string define lines\r
+            # Process comment embedded in string define lines\r
             #\r
             FindFlag = Line.find(u'//')\r
             if FindFlag != -1 and Line.find(u'//') < Line.find(u'"'):\r
@@ -771,7 +771,7 @@ class UniFileClassObject(object):
 \r
         #\r
         # Check Abstract, Description, BinaryAbstract and BinaryDescription order,\r
-        # should be Abstract, Description, BinaryAbstract, BinaryDesctiption\r
+        # should be Abstract, Description, BinaryAbstract, BinaryDescription\r
         AbstractPosition = -1\r
         DescriptionPosition = -1\r
         BinaryAbstractPosition = -1\r