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
| 585 | |
| 586 | **/ |
| 587 | CHAR16 |
| 588 | EFIAPI |
| 589 | CharToUpper ( |
| 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. |
no outgoing calls
no test coverage detected