a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 locale.library
  --environment_vars--
  --rexxhost--
  --structures--
  CloseCatalog
  CloseLocale
  ConvToLower
  ConvToUpper
  FormatDate
  FormatString
  GetCatalogStr
  GetLocaleStr
  IsXXXX
  OpenCatalogA
  OpenLocale
  ParseDate
  StrConvert
  StrnCmp
Include
GuruMeditation
Docs » Autodocs » locale.library » --rexxhost--

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);

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Crystal

PHA
AYS
CSL
TBL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se