MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / AsciiCharToUpper

Function AsciiCharToUpper

MdePkg/Library/BaseLib/String.c:1324–1331  ·  view source on GitHub ↗

Converts a lowercase Ascii character to upper one. If Chr is lowercase Ascii character, then converts it to upper one. If Value >= 0xA0, then ASSERT(). If (Value & 0x0F) >= 0x0A, then ASSERT(). @param Chr one Ascii character @return The uppercase value of Ascii character **/

Source from the content-addressed store, hash-verified

1322
1323**/
1324CHAR8
1325EFIAPI
1326AsciiCharToUpper (
1327 IN CHAR8 Chr
1328 )
1329{
1330 return (UINT8) (((Chr >= 'a') && (Chr <= 'z')) ? Chr - ('a' - 'A') : Chr);
1331}
1332
1333/**
1334 Convert a ASCII character to numerical value.

Callers 6

AsciiStrHexToUintnSFunction · 0.85
AsciiStrHexToUint64SFunction · 0.85
AsciiStriCmpFunction · 0.85
StriCmpUnicodeAndAsciiFunction · 0.85
HttpIoHexCharToUintnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected