HOST INTERFACE
locale.library provides an ARexx function host interface that enables
ARexx programs to take advantage of system localization. The
functions provided by the interface are directly related to the
functions described herein, with the differences mostly being
in the way they are called.
The function host library vector is located at offset -30 from the
library. This is the value you provide to ARexx in the AddLib()
function call.
FUNCTIONS
closecatalog (catalog/n/a)
convtolower (character/a)
convtoupper (character/a)
getcatalogstr (catalog/a,string/n/a,default/a)
IsAlNum (CHARACTER/A)
IsAlpha (CHARACTER/A)
IsCntrl (CHARACTER/A)
IsDigit (CHARACTER/A)
IsGraph (CHARACTER/A)
IsLower (CHARACTER/A)
IsPrint (CHARACTER/A)
IsPunct (CHARACTER/A)
IsSpace (CHARACTER/A)
IsUpper (CHARACTER/A)
IsXDigit (CHARACTER/A)
opencatalog (name/a,builtinlanguage/a,version/n/a)
Strncmp (STRING1/A,STRING2/A,TYPE/N/A)
EXAMPLE
/* localetest.rexx */
/* Make sure locale is loaded as a function host */
IF ~SHOW(L,'locale.library') THEN DO
CALL ADDLIB('locale.library',0,-30)
END;
say ConvToLower("A");
say ConvToUpper("b");
say IsAlpha("1");
catalog = OpenCatalog("sys/workbench.catalog","english",0);
say GetCatalogStr(catalog,34,"default");
say CloseCatalog(catalog);
say StrnCmp("test","test",2);