2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,6 +1,6 @@
|
|||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all the lowercase letters*/
|
||||
abcU = translate(abc) /* " " " uppercase " */
|
||||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all lowercase Latin letters.*/
|
||||
abcU = translate(abc) /* " " uppercase " " */
|
||||
|
||||
x = 'alphaBETA' /*define string to a REXX variable*/
|
||||
y = translate(x) /*uppercase X and store it───► Y*/
|
||||
z = translate(x, abc, abcU) /*tran uppercase──►lowercase chars*/
|
||||
x = 'alphaBETA' /*define a string to a REXX variable. */
|
||||
y = translate(x) /*uppercase X and store it ───► Y */
|
||||
z = translate(x, abc, abcU) /*translate uppercase──►lowercase chars*/
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
x = "alphaBETA" /*define string to a REXX variable*/
|
||||
parse upper var x y /*uppercase X and store it───► Y*/
|
||||
parse lower var x z /*lowercase X " " " ───► Z*/
|
||||
x = "alphaBETA" /*define a string to a REXX variable. */
|
||||
parse upper var x y /*uppercase X and store it ───► Y */
|
||||
parse lower var x z /*lowercase X " " " ───► Z */
|
||||
|
||||
/*Some REXXes don't support the LOWER option for the PARSE command.*/
|
||||
/*Some REXXes don't support the LOWER option for the PARSE command.*/
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
x = 'alphaBETA' /*define string to a REXX variable*/
|
||||
y = upper(x) /*uppercase X and store it───► Y*/
|
||||
z = lower(x) /*lowercase X " " " ───► Z*/
|
||||
x = 'alphaBETA' /*define a string to a REXX variable. */
|
||||
y = upper(x) /*uppercase X and store it ───► Y */
|
||||
z = lower(x) /*lowercase X " " " ───► Z */
|
||||
|
||||
/*Some REXXes don't support the UPPER and */
|
||||
/* LOWER BIFs (built-in functions). */
|
||||
/*Some REXXes don't support the UPPER and LOWER BIFs (built-in functions).*/
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
x = "alphaBETA" /*define string to a REXX variable*/
|
||||
y=x; upper y /*uppercase X and store it───► Y*/
|
||||
parse lower var x z /*lowercase Y " " " ───► Z*/
|
||||
x = "alphaBETA" /*define a string to a REXX variable. */
|
||||
y=x; upper y /*uppercase X and store it ───► Y */
|
||||
parse lower var x z /*lowercase Y " " " ───► Z */
|
||||
|
||||
/*Some REXXes don't support the LOWER option for the PARSE command.*/
|
||||
/*Some REXXes don't support the LOWER option for the PARSE command.*/
|
||||
|
|
|
|||
|
|
@ -1,17 +1,18 @@
|
|||
/*REXX pgm capitalizes each word in string, maintains imbedded blanks.*/
|
||||
/*REXX program capitalizes each word in string, and maintains imbedded blanks. */
|
||||
x= "alef bet gimel dalet he vav zayin het tet yod kaf lamed mem nun samekh",
|
||||
"ayin pe tzadi qof resh shin tav." /*"old" spelling Hebrew letters. */
|
||||
y= capitalize(x) /*capitalize each word in string.*/
|
||||
say x /*show original string of words. */
|
||||
say y /*show the capitalized words. */
|
||||
exit /*stick a fork in it, we're done.*/
|
||||
/*───────────────────────────────────CAPITALIZE subroutine──────────────*/
|
||||
capitalize: procedure; parse arg z; $=' 'z /*prefix with a blank.*/
|
||||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all lowercase letters. */
|
||||
"ayin pe tzadi qof resh shin tav." /*the "old" spelling of Hebrew letters.*/
|
||||
y= capitalize(x) /*capitalize each word in the string. */
|
||||
say x /*display the original string of words.*/
|
||||
say y /* " " capitalized words.*/
|
||||
exit /*stick a fork in it, we're all done. */
|
||||
/*──────────────────────────────────────────────────────────────────────────────────────*/
|
||||
capitalize: procedure; parse arg z; $=' 'z /*prefix $ string with a blank. */
|
||||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all Latin lowercase letters.*/
|
||||
|
||||
do j=1 for 26 /*process each letter in alphabet*/
|
||||
_=' 'substr(abc,j,1); _U=_; upper _U /*get a lower and upper letter. */
|
||||
$ = changestr(_, $, _U) /*maybe capitalize some word(s). */
|
||||
end /*j*/
|
||||
do j=1 for 26 /*process each letter in the alphabet. */
|
||||
_=' 'substr(abc,j,1); _U=_ /*get a lowercase (Latin) letter. */
|
||||
upper _U /* " " uppercase " " */
|
||||
$=changestr(_, $, _U) /*maybe capitalize some word(s). */
|
||||
end /*j*/
|
||||
|
||||
return substr($,2) /*capitalized words, -1st blank.*/
|
||||
return substr($, 2) /*return the capitalized words. */
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*REXX pgm swaps letter case of a string: lower──►upper & upper──►lower.*/
|
||||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all the lowercase letters*/
|
||||
abcU = translate(abc) /* " " " uppercase " */
|
||||
/*REXX program swaps the letter case of a string: lower ──► upper & upper ──► lower.*/
|
||||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all the lowercase letters. */
|
||||
abcU = translate(abc) /* " " " uppercase " */
|
||||
|
||||
x = 'alphaBETA' /*define string to a REXX variable*/
|
||||
y = translate(x,abc||abcU,abcU||abc) /*swap case of X store it ───► Y*/
|
||||
x = 'alphaBETA' /*define a string to a REXX variable. */
|
||||
y = translate(x, abc || abcU, abcU || abc) /*swap case of X and store it ───► Y */
|
||||
say x
|
||||
say y
|
||||
/*stick a fork in it, we're done.*/
|
||||
/*stick a fork in it, we're all done. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue