Substitute InternalShellCharToUpper with a public function
CharToUpper which has the same function.
Remove the implement of InternalShellCharToUpper.
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
/** @file\r
Provides interface to shell MAN file parser.\r
\r
/** @file\r
Provides interface to shell MAN file parser.\r
\r
- Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
Copyright 2015 Dell Inc.\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
Copyright 2015 Dell Inc.\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
-\r
-/**\r
- Convert a Unicode character to upper case only if\r
- it maps to a valid small-case ASCII character.\r
-\r
- This internal function only deal with Unicode character\r
- which maps to a valid small-case ASCII character, i.e.\r
- L'a' to L'z'. For other Unicode character, the input character\r
- is returned directly.\r
-\r
- @param Char The character to convert.\r
-\r
- @retval LowerCharacter If the Char is with range L'a' to L'z'.\r
- @retval Unchanged Otherwise.\r
-\r
-**/\r
-CHAR16\r
-InternalShellCharToUpper (\r
- IN CHAR16 Char\r
- );\r
-\r
/**\r
Verifies that the filename has .EFI on the end.\r
\r
/**\r
Verifies that the filename has .EFI on the end.\r
\r
ReturnFound = TRUE; // This is the desired command's title header line.\r
State = (BriefDesc == NULL) ? Final : GetBriefDescription;\r
}\r
ReturnFound = TRUE; // This is the desired command's title header line.\r
State = (BriefDesc == NULL) ? Final : GetBriefDescription;\r
}\r
- else if (InternalShellCharToUpper (*Line) != InternalShellCharToUpper (*(Command + CommandIndex++))) {\r
+ else if (CharToUpper (*Line) != CharToUpper (*(Command + CommandIndex++))) {\r
State = Final;\r
}\r
Line++;\r
State = Final;\r
}\r
Line++;\r