MdeModulePkg/DxeHttpLib: Use BaseLib api AsciiCharToUpper

Substitute HttpIoCharToUpper with AsciiCharToUpper which is a public function
with the same effect. And remove the implement of HttpIoCharToUpper.
https://bugzilla.tianocore.org/show_bug.cgi?id=1369

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
Shenglei Zhang 2019-01-30 16:34:36 +08:00 committed by Liming Gao
parent 357fc11c35
commit 62cdd1f5ab
1 changed files with 2 additions and 23 deletions

View File

@ -2,7 +2,7 @@
This library is used to share code between UEFI network stack modules.
It provides the helper routines to parse the HTTP message byte stream.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@ -898,27 +898,6 @@ typedef struct {
UINTN CurrentChunkParsedSize;
} HTTP_BODY_PARSER;
/**
Convert an Ascii char to its uppercase.
@param[in] Char Ascii character.
@return Uppercase value of the input Char.
**/
CHAR8
HttpIoCharToUpper (
IN CHAR8 Char
)
{
if (Char >= 'a' && Char <= 'z') {
return Char - ('a' - 'A');
}
return Char;
}
/**
Convert an hexadecimal char to a value of type UINTN.
@ -936,7 +915,7 @@ HttpIoHexCharToUintn (
return Char - '0';
}
return (10 + HttpIoCharToUpper (Char) - 'A');
return (10 + AsciiCharToUpper (Char) - 'A');
}
/**