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

Function CharToUpper

MdePkg/Library/BaseLib/String.c:587–598  ·  view source on GitHub ↗

Convert a Unicode character to upper case only if it maps to a valid small-case ASCII character. This internal function only deal with Unicode character which maps to a valid small-case ASCII character, i.e. L'a' to L'z'. For other Unicode character, the input character is returned directly. @param Char The character to convert. @retval LowerCharacter If the Char is

Source from the content-addressed store, hash-verified

585
586**/
587CHAR16
588EFIAPI
589CharToUpper (
590 IN CHAR16 Char
591 )
592{
593 if ((Char >= L'a') && (Char <= L'z')) {
594 return (CHAR16) (Char - (L'a' - L'A'));
595 }
596
597 return Char;
598}
599
600/**
601 Convert a Unicode character to numerical value.

Callers 9

StrHexToUintnSFunction · 0.85
StrHexToUint64SFunction · 0.85
InternalHexCharToUintnFunction · 0.85
StriCmpFunction · 0.85
StriCmpUnicodeAndAsciiFunction · 0.85
OcStriCmpFunction · 0.85
OcStrniCmpFunction · 0.85
OcUnicodeLib.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected