OScript API/Built-in Package Index |
The Env package provides a small set of services for reading and manipulating system environment variables.
All locale-specific behavior (all categories).
Behavior of strcoll and strxfrm functions.
Behavior of character-handling functions (except isdigit, isxdigit, mbstowcs, and mbtowc, which are unaffected).
(Unix only) Behavior of messaging functions such as dgettext, gettext, and gettxt.
Monetary formatting information returned by the localeconv function.
Decimal-point character for formatted output routines (for example, printf), data conversion routines, and nonmonetary formatting information returned by localeconv function.
Behavior of strftime function.
Returns the value of the specified environment variable.
Returns the value of the specified environment variable if it exists; otherwise, it returns the specified default value.
(UNIX only) Returns a Boolean indicating success in setting the specified environment variable.
Returns the specified String, substituting environment variable values for "$"-prefixed names where indicated.
All locale-specific behavior (all categories).
Behavior of strcoll and strxfrm functions.
Behavior of character-handling functions (except isdigit, isxdigit, mbstowcs, and mbtowc, which are unaffected).
(Unix only) Behavior of messaging functions such as dgettext, gettext, and gettxt.
Monetary formatting information returned by the localeconv function.
Decimal-point character for formatted output routines (for example, printf), data conversion routines, and nonmonetary formatting information returned by localeconv function.
Behavior of strftime function.
Returns the value of the specified environment variable.
An environment variable name.
The value of the specified environment variable.
Returns the value of the specified environment variable if it exists; otherwise, it returns the specified default value.
An environment variable name.
A default value.
The specified environment variable if it exists; otherwise, the specified default value.
(UNIX only) Returns a Boolean indicating success
in setting the specified environment variable. The nameValue
argument has the format "environmentVariableName=value"
.
Boolean indicating success in setting the specified environment variable.
if ( Env.Put( "OTHOME=/usr/local/livelink" ) ) Echo( "Put() success!" ) else Echo( "Put() failure." ) end
Internal use only. Tests string behavior for other language locales.
One of the category constants in LC_XXX.
A valid locale string.
The string.
Returns an evaluated translationString, substituting "$"-prefixed environment variable name(s) with corresponding environment variable value(s). Translate() resolves the environment variables in translationString as a typical UNIX shell would.
A String to translate.
The specified String with environment variable values substituted where indicated.
Here is an example:
Echo( Env.Translate( "OTHOME=$OTHOME, and PATH=$PATH" ) )
Copyright © 2021 OpenText Corporation. All rights reserved. |