]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / EbcDebugger / EdbSupportString.c
index 8495af99002e8b4d7a0b329a5098e619fcc40f82..9679a23002f081e42aa8c2093b8f7170cabfee0e 100644 (file)
@@ -1,13 +1,7 @@
 /** @file\r
 \r
 Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 \r
 **/\r
@@ -307,37 +301,6 @@ AsciiAtoi (
   return RetVal;\r
 }\r
 \r
-/**\r
-\r
-  Convert the character to upper case.\r
-\r
-  @param  Chr    the character to be converted.\r
-\r
-**/\r
-STATIC\r
-CHAR16\r
-InternalUnicodeToUpper (\r
-  IN      CHAR16                    Chr\r
-  )\r
-{\r
-  return (Chr >= L'a' && Chr <= L'z') ? Chr - (L'a' - L'A') : Chr;\r
-}\r
-\r
-/**\r
-\r
-  Convert the character to upper case.\r
-\r
-  @param  Chr    the character to be converted.\r
-\r
-**/\r
-STATIC\r
-CHAR8\r
-InternalAsciiToUpper (\r
-  IN      CHAR8                     Chr\r
-  )\r
-{\r
-  return (Chr >= 'a' && Chr <= 'z') ? Chr - ('a' - 'A') : Chr;\r
-}\r
 \r
 /**\r
   Compare the Unicode and Ascii string pointed by String to the string pointed by String2.\r
@@ -390,12 +353,12 @@ StriCmp (
   )\r
 {\r
   while ((*String != L'\0') &&\r
-         (InternalUnicodeToUpper (*String) == InternalUnicodeToUpper (*String2))) {\r
+         (CharToUpper (*String) == CharToUpper (*String2))) {\r
     String++;\r
     String2++;\r
   }\r
 \r
-  return InternalUnicodeToUpper (*String) - InternalUnicodeToUpper (*String2);\r
+  return CharToUpper (*String) - CharToUpper (*String2);\r
 }\r
 \r
 /**\r
@@ -418,12 +381,12 @@ StriCmpUnicodeAndAscii (
   )\r
 {\r
   while ((*String != L'\0') &&\r
-         (InternalUnicodeToUpper (*String) == (CHAR16)InternalAsciiToUpper (*String2))) {\r
+         (CharToUpper (*String) == (CHAR16)AsciiCharToUpper (*String2))) {\r
     String++;\r
     String2++;\r
   }\r
 \r
-  return InternalUnicodeToUpper (*String) - (CHAR16)InternalAsciiToUpper (*String2);\r
+  return CharToUpper (*String) - (CHAR16)AsciiCharToUpper (*String2);\r
 }\r
 \r
 /**\r