]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Library/HiiLib.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Include / Library / HiiLib.h
index 3d87677b2fb89b36fe0370d4bf882e19839509bd..8d0ecca46a65dfb626c50ffd3139ade965e510ab 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Public include file for the HII Library\r
 \r
-Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   If an empty list of packages is passed in, then NULL is returned.  If the size of\r
   the list of package is 0, then NULL is returned.\r
 \r
-  The variable arguments are pointers that point to package headers defined \r
+  The variable arguments are pointers that point to package headers defined\r
   by UEFI VFR compiler and StringGather tool.\r
 \r
   #pragma pack (push, 1)\r
@@ -38,13 +38,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     EFI_HII_PACKAGE_HEADER  PackageHeader;\r
   } EDKII_AUTOGEN_PACKAGES_HEADER;\r
   #pragma pack (pop)\r
-  \r
+\r
   @param[in]  PackageListGuid  The GUID of the package list.\r
-  @param[in]  DeviceHandle     If not NULL, the Device Handle on which \r
+  @param[in]  DeviceHandle     If not NULL, the Device Handle on which\r
                                an instance of DEVICE_PATH_PROTOCOL is installed.\r
-                               This Device Handle uniquely defines the device that \r
+                               This Device Handle uniquely defines the device that\r
                                the added packages are associated with.\r
-  @param[in]  ...              The variable argument list that contains pointers \r
+  @param[in]  ...              The variable argument list that contains pointers\r
                                to packages terminated by a NULL.\r
 \r
   @retval NULL   An HII Handle has already been registered in the HII Database with\r
@@ -81,37 +81,37 @@ HiiRemovePackages (
 ;\r
 \r
 /**\r
-  This function creates a new string in String Package or updates an existing \r
+  This function creates a new string in String Package or updates an existing\r
   string in a String Package.  If StringId is 0, then a new string is added to\r
   a String Package.  If StringId is not zero, then a string in String Package is\r
   updated.  If SupportedLanguages is NULL, then the string is added or updated\r
   for all the languages that the String Package supports.  If SupportedLanguages\r
-  is not NULL, then the string is added or updated for the set of languages \r
+  is not NULL, then the string is added or updated for the set of languages\r
   specified by SupportedLanguages.\r
-    \r
+\r
   If HiiHandle is NULL, then ASSERT().\r
   If String is NULL, then ASSERT().\r
 \r
-  @param[in]  HiiHandle           A handle that was previously registered in the \r
+  @param[in]  HiiHandle           A handle that was previously registered in the\r
                                   HII Database.\r
-  @param[in]  StringId            If zero, then a new string is created in the \r
-                                  String Package associated with HiiHandle.  If \r
-                                  non-zero, then the string specified by StringId \r
-                                  is updated in the String Package associated \r
-                                  with HiiHandle. \r
-  @param[in]  String              A pointer to the Null-terminated Unicode string \r
-                                  to add or update in the String Package associated \r
+  @param[in]  StringId            If zero, then a new string is created in the\r
+                                  String Package associated with HiiHandle.  If\r
+                                  non-zero, then the string specified by StringId\r
+                                  is updated in the String Package associated\r
                                   with HiiHandle.\r
-  @param[in]  SupportedLanguages  A pointer to a Null-terminated ASCII string of \r
-                                  language codes.  If this parameter is NULL, then \r
-                                  String is added or updated in the String Package \r
-                                  associated with HiiHandle for all the languages \r
-                                  that the String Package supports.  If this \r
-                                  parameter is not NULL, then String is added \r
-                                  or updated in the String Package associated with \r
-                                  HiiHandle for the set of languages specified by \r
-                                  SupportedLanguages.  The format of \r
-                                  SupportedLanguages must follow the language \r
+  @param[in]  String              A pointer to the Null-terminated Unicode string\r
+                                  to add or update in the String Package associated\r
+                                  with HiiHandle.\r
+  @param[in]  SupportedLanguages  A pointer to a Null-terminated ASCII string of\r
+                                  language codes.  If this parameter is NULL, then\r
+                                  String is added or updated in the String Package\r
+                                  associated with HiiHandle for all the languages\r
+                                  that the String Package supports.  If this\r
+                                  parameter is not NULL, then String is added\r
+                                  or updated in the String Package associated with\r
+                                  HiiHandle for the set of languages specified by\r
+                                  SupportedLanguages.  The format of\r
+                                  SupportedLanguages must follow the language\r
                                   format assumed in the HII Database.\r
 \r
   @retval 0      The string could not be added or updated in the String Package.\r
@@ -130,21 +130,21 @@ HiiSetString (
 \r
 /**\r
   Retrieves a string from a string package in a specific language.  If the language\r
-  is not specified, then a string from a string package in the current platform \r
-  language is retrieved.  If the string cannot be retrieved using the specified \r
-  language or the current platform language, then the string is retrieved from \r
-  the string package in the first language the string package supports.  The \r
-  returned string is allocated using AllocatePool().  The caller is responsible \r
+  is not specified, then a string from a string package in the current platform\r
+  language is retrieved.  If the string cannot be retrieved using the specified\r
+  language or the current platform language, then the string is retrieved from\r
+  the string package in the first language the string package supports.  The\r
+  returned string is allocated using AllocatePool().  The caller is responsible\r
   for freeing the allocated buffer using FreePool().\r
-  \r
+\r
   If HiiHandle is NULL, then ASSERT().\r
   If StringId is 0, then ASSERT().\r
 \r
   @param[in]  HiiHandle  A handle that was previously registered in the HII Database.\r
-  @param[in]  StringId   The identifier of the string to retrieved from the string \r
+  @param[in]  StringId   The identifier of the string to retrieved from the string\r
                          package associated with HiiHandle.\r
-  @param[in]  Language   The language of the string to retrieve.  If this parameter \r
-                         is NULL, then the current platform language is used.  The \r
+  @param[in]  Language   The language of the string to retrieve.  If this parameter\r
+                         is NULL, then the current platform language is used.  The\r
                          format of Language must follow the language format assumed in\r
                          the HII Database.\r
 \r
@@ -162,24 +162,24 @@ HiiGetString (
 ;\r
 \r
 /**\r
-  Retrieves a string from a string package named by GUID, in the specified language.  \r
-  If the language is not specified, then a string from a string package in the \r
-  current platform  language is retrieved.  If the string cannot be retrieved \r
-  using the specified language or the current platform language, then the string \r
-  is retrieved from the string package in the first language the string package \r
-  supports.  The returned string is allocated using AllocatePool().  The caller \r
+  Retrieves a string from a string package named by GUID, in the specified language.\r
+  If the language is not specified, then a string from a string package in the\r
+  current platform  language is retrieved.  If the string cannot be retrieved\r
+  using the specified language or the current platform language, then the string\r
+  is retrieved from the string package in the first language the string package\r
+  supports.  The returned string is allocated using AllocatePool().  The caller\r
   is responsible for freeing the allocated buffer using FreePool().\r
-  \r
+\r
   If PackageListGuid is NULL, then ASSERT().\r
   If StringId is 0, then ASSERT().\r
 \r
-  @param[in]  PackageListGuid  The GUID of a package list that was previously \r
+  @param[in]  PackageListGuid  The GUID of a package list that was previously\r
                                registered in the HII Database.\r
-  @param[in]  StringId         The identifier of the string to retrieved from the \r
+  @param[in]  StringId         The identifier of the string to retrieved from the\r
                                string package associated with PackageListGuid.\r
-  @param[in]  Language         The language of the string to retrieve.  If this \r
-                               parameter is NULL, then the current platform \r
-                               language is used.  The format of Language must \r
+  @param[in]  Language         The language of the string to retrieve.  If this\r
+                               parameter is NULL, then the current platform\r
+                               language is used.  The format of Language must\r
                                follow the language format assumed in the HII Database.\r
 \r
   @retval NULL   The package list specified by PackageListGuid is not present in the\r
@@ -204,12 +204,12 @@ HiiGetPackageString (
   This function allocates the returned array using AllocatePool().\r
   The caller is responsible for freeing the array with FreePool().\r
 \r
-  @param[in]  PackageListGuid  An optional parameter that is used to request \r
+  @param[in]  PackageListGuid  An optional parameter that is used to request\r
                                HII Handles associated with a specific\r
                                Package List GUID.  If this parameter is NULL,\r
                                then all the HII Handles in the HII Database\r
                                are returned.  If this parameter is not NULL,\r
-                               then zero or more HII Handles associated with \r
+                               then zero or more HII Handles associated with\r
                                PackageListGuid are returned.\r
 \r
   @retval NULL   No HII handles were found in the HII database\r
@@ -226,7 +226,7 @@ HiiGetHiiHandles (
 \r
 /**\r
   This function allows a caller to extract the form set opcode form the Hii Handle.\r
-  The returned buffer is allocated using AllocatePool().The caller is responsible \r
+  The returned buffer is allocated using AllocatePool().The caller is responsible\r
   for freeing the allocated buffer using FreePool().\r
 \r
   @param Handle            The HII handle.\r
@@ -248,12 +248,12 @@ HiiGetFormSetFromHiiHandle(
   );\r
 \r
 /**\r
-  Retrieves a pointer to a Null-terminated ASCII string containing the list \r
-  of languages that an HII handle in the HII Database supports.  The returned \r
+  Retrieves a pointer to a Null-terminated ASCII string containing the list\r
+  of languages that an HII handle in the HII Database supports.  The returned\r
   string is allocated using AllocatePool().  The caller is responsible for freeing\r
   the returned string using FreePool().  The format of the returned string follows\r
   the language format assumed in the HII Database.\r
-  \r
+\r
   If HiiHandle is NULL, then ASSERT().\r
 \r
   @param[in]  HiiHandle  A handle that was previously registered in the HII Database.\r
@@ -273,23 +273,23 @@ HiiGetSupportedLanguages (
 ;\r
 \r
 /**\r
-  Allocates and returns a Null-terminated Unicode <ConfigHdr> string using routing \r
+  Allocates and returns a Null-terminated Unicode <ConfigHdr> string using routing\r
   information that includes a GUID, an optional Unicode string name, and a device\r
-  path. The string returned is allocated with AllocatePool().  The caller is \r
+  path. The string returned is allocated with AllocatePool().  The caller is\r
   responsible for freeing the allocated string with FreePool().\r
-  \r
+\r
   The format of a <ConfigHdr> is as follows:\r
 \r
     GUID=<HexCh>32&NAME=<Char>NameLength&PATH=<HexChar>DevicePathSize<Null>\r
 \r
   @param[in]  Guid          The pointer to an EFI_GUID that is the routing information\r
-                            GUID.  Each of the 16 bytes in Guid is converted to \r
+                            GUID.  Each of the 16 bytes in Guid is converted to\r
                             a 2 Unicode character hexadecimal string.  This is\r
                             an optional parameter that may be NULL.\r
-  @param[in]  Name          The pointer to a Null-terminated Unicode string that is \r
-                            the routing information NAME.  This is an optional \r
-                            parameter that may be NULL.  Each 16-bit Unicode \r
-                            character in Name is converted to a 4 character Unicode \r
+  @param[in]  Name          The pointer to a Null-terminated Unicode string that is\r
+                            the routing information NAME.  This is an optional\r
+                            parameter that may be NULL.  Each 16-bit Unicode\r
+                            character in Name is converted to a 4 character Unicode\r
                             hexadecimal string.\r
   @param[in]  DriverHandle  The driver handle that supports a Device Path Protocol\r
                             that is the routing information PATH.  Each byte of\r
@@ -311,23 +311,23 @@ HiiConstructConfigHdr (
 \r
 /**\r
   Reset the default value specified by DefaultId to the driver\r
-  configuration specified by the Request string. \r
+  configuration specified by the Request string.\r
 \r
   NULL request string support depends on the ExportConfig interface of\r
   HiiConfigRouting protocol in UEFI specification.\r
-  \r
-  @param Request    A null-terminated Unicode string in \r
+\r
+  @param Request    A null-terminated Unicode string in\r
                     <MultiConfigRequest> format. It can be NULL.\r
                     If it is NULL, all configurations for the\r
                     entirety of the current HII database will be reset.\r
   @param DefaultId  Specifies the type of defaults to retrieve.\r
-  \r
+\r
   @retval TRUE    The default value was set successfully.\r
   @retval FALSE   The default value was not found.\r
 **/\r
 BOOLEAN\r
-EFIAPI                               \r
-HiiSetToDefaults (     \r
+EFIAPI\r
+HiiSetToDefaults (\r
   IN CONST EFI_STRING  Request,  OPTIONAL\r
   IN UINT16            DefaultId\r
   );\r
@@ -337,17 +337,17 @@ HiiSetToDefaults (
 \r
   NULL request string support depends on the ExportConfig interface of\r
   HiiConfigRouting protocol in the UEFI specification.\r
-  \r
-  @param  Request   A null-terminated Unicode string in \r
+\r
+  @param  Request   A null-terminated Unicode string in\r
                     <MultiConfigRequest> format. It can be NULL.\r
                     If it is NULL, all current configurations for the\r
                     entirety of the current HII database will be validated.\r
-  \r
+\r
   @retval TRUE    The current configuration is valid.\r
   @retval FALSE   The current configuration is invalid.\r
 **/\r
 BOOLEAN\r
-EFIAPI                               \r
+EFIAPI\r
 HiiValidateSettings (\r
   IN CONST EFI_STRING  Request  OPTIONAL\r
   );\r
@@ -377,11 +377,11 @@ HiiIsConfigHdrMatch (
   Retrieves uncommitted data from the Form Browser and converts it to a binary\r
   buffer.\r
 \r
-  @param[in]  VariableGuid  The pointer to an EFI_GUID structure.  This is an optional \r
+  @param[in]  VariableGuid  The pointer to an EFI_GUID structure.  This is an optional\r
                             parameter that may be NULL.\r
-  @param[in]  VariableName  The pointer to a Null-terminated Unicode string.  This \r
+  @param[in]  VariableName  The pointer to a Null-terminated Unicode string.  This\r
                             is an optional parameter that may be NULL.\r
-  @param[in]  BufferSize    The length in bytes of buffer to hold retrieved data. \r
+  @param[in]  BufferSize    The length in bytes of buffer to hold retrieved data.\r
   @param[out] Buffer        The buffer of data to be updated.\r
 \r
   @retval FALSE  The uncommitted data could not be retrieved.\r
@@ -411,7 +411,7 @@ HiiGetBrowserData (
   @param[in]  RequestElement  An optional field to specify which part of the\r
                               buffer data will be send back to Browser. If NULL,\r
                               the whole buffer of data will be committed to\r
-                              Browser. \r
+                              Browser.\r
                               <RequestElement> ::= &OFFSET=<Number>&WIDTH=<Number>*\r
 \r
   @retval FALSE  The uncommitted data could not be updated.\r
@@ -436,9 +436,9 @@ HiiSetBrowserData (
 \r
 /**\r
   Returns a UINT64 value that contains bitfields for Hour, Minute, and Second.\r
-  The lower 8-bits of Hour are placed in bits 0..7.  The lower 8-bits of Minute \r
-  are placed in bits 8..15, and the lower 8-bits of Second are placed in bits \r
-  16..23.  This format was selected because it can be easily translated to \r
+  The lower 8-bits of Hour are placed in bits 0..7.  The lower 8-bits of Minute\r
+  are placed in bits 8..15, and the lower 8-bits of Second are placed in bits\r
+  16..23.  This format was selected because it can be easily translated to\r
   an EFI_HII_TIME structure in an EFI_IFR_TYPE_VALUE union.\r
 \r
   @param  Hour    The hour value to be encoded.\r
@@ -452,9 +452,9 @@ HiiSetBrowserData (
 \r
 /**\r
   Returns a UINT64 value that contains bit fields for Year, Month, and Day.\r
-  The lower 16-bits of Year are placed in bits 0..15.  The lower 8-bits of Month \r
-  are placed in bits 16..23, and the lower 8-bits of Day are placed in bits \r
-  24..31.  This format was selected because it can be easily translated to \r
+  The lower 16-bits of Year are placed in bits 0..15.  The lower 8-bits of Month\r
+  are placed in bits 16..23, and the lower 8-bits of Day are placed in bits\r
+  24..31.  This format was selected because it can be easily translated to\r
   an EFI_HII_DATE structure in an EFI_IFR_TYPE_VALUE union.\r
 \r
   @param  Year   The year value to be encoded.\r
@@ -467,7 +467,7 @@ HiiSetBrowserData (
   (UINT64)((Year & 0xffff) | ((Month & 0xff) << 16) | ((Day & 0xff) << 24))\r
 \r
 /**\r
-  Allocates and returns a new OpCode Handle.  OpCode Handles must be freed with \r
+  Allocates and returns a new OpCode Handle.  OpCode Handles must be freed with\r
   HiiFreeOpCodeHandle().\r
 \r
   @retval NULL   There are not enough resources to allocate a new OpCode Handle.\r
@@ -595,14 +595,14 @@ HiiCreateDefaultOpCode (
 \r
   @param[in]  OpCodeHandle  The handle to the buffer of opcodes.\r
   @param[in]  Guid          The pointer to EFI_GUID of this guided opcode.\r
-  @param[in]  GuidOpCode    The pointer to an EFI_IFR_GUID opcode.  This is an \r
+  @param[in]  GuidOpCode    The pointer to an EFI_IFR_GUID opcode.  This is an\r
                             optional parameter that may be NULL.  If this\r
-                            parameter is NULL, then the GUID extension \r
+                            parameter is NULL, then the GUID extension\r
                             region of the created opcode is filled with zeros.\r
-                            If this parameter is not NULL, then the GUID \r
-                            extension region of GuidData will be copied to \r
+                            If this parameter is not NULL, then the GUID\r
+                            extension region of GuidData will be copied to\r
                             the GUID extension region of the created opcode.\r
-  @param[in]  OpCodeSize    The size, in bytes, of created opcode.  This value \r
+  @param[in]  OpCodeSize    The size, in bytes, of created opcode.  This value\r
                             must be >= sizeof(EFI_IFR_GUID).\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -705,7 +705,7 @@ HiiCreateGotoOpCode (
 /**\r
   Create EFI_IFR_REF_OP, EFI_IFR_REF2_OP, EFI_IFR_REF3_OP and EFI_IFR_REF4_OP opcode.\r
 \r
-  When RefDevicePath is not zero, EFI_IFR_REF4 opcode will be created. \r
+  When RefDevicePath is not zero, EFI_IFR_REF4 opcode will be created.\r
   When RefDevicePath is zero and RefFormSetId is not NULL, EFI_IFR_REF3 opcode will be created.\r
   When RefDevicePath is zero, RefFormSetId is NULL and RefQuestionId is not zero, EFI_IFR_REF2 opcode will be created.\r
   When RefDevicePath is zero, RefFormSetId is NULL and RefQuestionId is zero, EFI_IFR_REF opcode will be created.\r
@@ -719,11 +719,11 @@ HiiCreateGotoOpCode (
   @param[in]  Help           The string ID for Help.\r
   @param[in]  QuestionFlags  The flags in Question Header\r
   @param[in]  QuestionId     Question ID.\r
-  @param[in]  RefQuestionId  The question on the form to which this link is referring. \r
+  @param[in]  RefQuestionId  The question on the form to which this link is referring.\r
                              If its value is zero, then the link refers to the top of the form.\r
-  @param[in]  RefFormSetId   The form set to which this link is referring. If its value is NULL, and RefDevicePath is \r
+  @param[in]  RefFormSetId   The form set to which this link is referring. If its value is NULL, and RefDevicePath is\r
                              zero, then the link is to the current form set.\r
-  @param[in]  RefDevicePath  The string identifier that specifies the string containing the text representation of \r
+  @param[in]  RefDevicePath  The string identifier that specifies the string containing the text representation of\r
                              the device path to which the form set containing the form specified by FormId.\r
                              If its value is zero, then the link refers to the current page.\r
 \r
@@ -1050,26 +1050,26 @@ HiiCreateTimeOpCode (
   );\r
 \r
 /**\r
-  This function updates a form that has previously been registered with the HII \r
+  This function updates a form that has previously been registered with the HII\r
   Database.  This function will perform at most one update operation.\r
-    \r
-  The form to update is specified by Handle, FormSetGuid, and FormId.  Binary \r
-  comparisons of IFR opcodes are performed from the beginning of the form being \r
-  updated until an IFR opcode is found that exactly matches the first IFR opcode \r
+\r
+  The form to update is specified by Handle, FormSetGuid, and FormId.  Binary\r
+  comparisons of IFR opcodes are performed from the beginning of the form being\r
+  updated until an IFR opcode is found that exactly matches the first IFR opcode\r
   specified by StartOpCodeHandle.  The following rules are used to determine if\r
   an insert, replace, or delete operation is performed:\r
-  \r
-  1) If no matches are found, then NULL is returned.  \r
+\r
+  1) If no matches are found, then NULL is returned.\r
   2) If a match is found, and EndOpCodeHandle is NULL, then all of the IFR opcodes\r
-     from StartOpCodeHandle except the first opcode are inserted immediately after \r
+     from StartOpCodeHandle except the first opcode are inserted immediately after\r
      the matching IFR opcode in the form to be updated.\r
-  3) If a match is found, and EndOpCodeHandle is not NULL, then a search is made \r
-     from the matching IFR opcode until an IFR opcode exactly matches the first \r
+  3) If a match is found, and EndOpCodeHandle is not NULL, then a search is made\r
+     from the matching IFR opcode until an IFR opcode exactly matches the first\r
      IFR opcode specified by EndOpCodeHandle.  If no match is found for the first\r
      IFR opcode specified by EndOpCodeHandle, then NULL is returned.  If a match\r
-     is found, then all of the IFR opcodes between the start match and the end \r
+     is found, then all of the IFR opcodes between the start match and the end\r
      match are deleted from the form being updated and all of the IFR opcodes\r
-     from StartOpCodeHandle except the first opcode are inserted immediately after \r
+     from StartOpCodeHandle except the first opcode are inserted immediately after\r
      the matching start IFR opcode.  If StartOpCcodeHandle only contains one\r
      IFR instruction, then the result of this operation will delete all of the IFR\r
      opcodes between the start end matches.\r
@@ -1082,26 +1082,26 @@ HiiCreateTimeOpCode (
                                  is an optional parameter that may be NULL.\r
                                  If it is NULL, all FormSet will be updated.\r
   @param[in]  FormId             The ID of the form to update.\r
-  @param[in]  StartOpCodeHandle  An OpCode Handle that contains the set of IFR \r
+  @param[in]  StartOpCodeHandle  An OpCode Handle that contains the set of IFR\r
                                  opcodes to be inserted or replaced in the form.\r
-                                 The first IFR instruction in StartOpCodeHandle \r
-                                 is used to find matching IFR opcode in the \r
-                                 form. \r
+                                 The first IFR instruction in StartOpCodeHandle\r
+                                 is used to find matching IFR opcode in the\r
+                                 form.\r
   @param[in]  EndOpCodeHandle    An OpCcode Handle that contains the IFR opcode\r
                                  that marks the end of a replace operation in\r
                                  the form.  This is an optional parameter that\r
                                  may be NULL.  If it is NULL, then the IFR\r
-                                 opcodes specified by StartOpCodeHandle are \r
+                                 opcodes specified by StartOpCodeHandle are\r
                                  inserted into the form.\r
-  \r
+\r
   @retval EFI_OUT_OF_RESOURCES   Not enough memory resources are allocated.\r
   @retval EFI_NOT_FOUND          The following cases will return EFI_NOT_FOUND:\r
-                                 1) The form specified by HiiHandle, FormSetGuid, \r
+                                 1) The form specified by HiiHandle, FormSetGuid,\r
                                  and FormId could not be found in the HII Database.\r
                                  2) No IFR opcodes in the target form match the first\r
                                  IFR opcode in StartOpCodeHandle.\r
-                                 3) EndOpCOde is not NULL, and no IFR opcodes in the \r
-                                 target form following a matching start opcode match \r
+                                 3) EndOpCOde is not NULL, and no IFR opcodes in the\r
+                                 target form following a matching start opcode match\r
                                  the first IFR opcode in EndOpCodeHandle.\r
   @retval EFI_SUCCESS            The matched form is updated by StartOpcode.\r
 \r