Uppercase & Lowercase including German "Umlaute"
[Autolink] Menu
/* sample code to translate a string to uppercase or lowercase which */
/* also handles the German "Umlaute" */
/* Note that there's an country-dependent uppercase translation v1.80 */
/* routine in the new REXXUTIL DLL. Object-Oriented REXX */
say "Lower() " lower( "AbcdEF Ö Ä Ü ß 1234567890" )
say "Upper() " upper( "aBcDef ö ä ü ß 1234567890" )
exit
/* ------------------------------------------------------------------ */
/* function: Convert a char or string to uppercase */
/* */
/* call: Upper string */
/* */
/* where: string - string to convert */
/* */
/* returns: the converted string */
/* */
/* note: This implementation handles German "Umlaute" */
/* */
Upper: PROCEDURE
parse arg thisString
RETURN translate( thisString, "ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜß" ,,
"abcdefghijklmnopqrstuvwxyzäöüß" )
/* ------------------------------------------------------------------ */
/* function: Convert a char or string to lowercase */
/* */
/* call: Lower string */
/* */
/* where: string - string to convert */
/* */
/* returns: the converted string */
/* */
/* note: This implementation handles German "Umlaute" */
/* */
Lower: PROCEDURE
parse arg thisString
RETURN translate( thisString, "abcdefghijklmnopqrstuvwxyzäöüß" ,,
"ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜß" )
[Back: EBCDIC to ASCII & ASCII to EBCDIC]
[Next: Date converting routine - 1 -]