upper
Definition: | object x2 = upper(object x1) |
Description: |
Convert an atom or sequence to upper case.
Should you need to, you can also invoke isupper(integer ch) to determine if a character is upper case. [ASCII only] Note that utf32_to_utf8(upper(utf8_to_utf32(utf8))) may be advised
when dealing with utf8 strings, since upper(utf8) is likely to mangle individual bytes that are part of a multibye representation
of unicode codepoints #100..#10FFFF. Nothing in that range is altered by upper().
|
pwa/p2js: | Supported. |
Example: |
s = upper("Phix") -- s is "PHIX" a = upper('g') -- a is 'G' s = upper({"Phix", "Programming"}) -- s is {"PHIX", "PROGRAMMING"} |
Implementation: | See builtins\pcase.e (an autoinclude) for details of the actual implementation. |
See Also: | lower |