StringLib external type

StringLib includes functions to work with strings.

Package

eglx.lang

Functions
Table 1. Functions
Function Purpose
StringLib.format function StringLib.format accepts a non-string value and a pattern and returns the corresponding string.

StringLib.fromCharCode function StringLib.fromCharCode returns a UNICODE character that corresponds to an integer representation.

StringLib.GetNextToken function StringLib.getNextToken returns a token from a substring.

StringLib.getTokenCount function StringLib.getTokenCount returns the number of tokens in a source string.

StringLib.spaces function StringLib.spaces returns a string of spaces of the specified length.

Comments

The eglx.rbd package contains the StrLib library, which includes functions and constants that are particularly convenient for a subset of users who are migrating code from IBM® Rational® products. For new development, use the more efficient functions in the StringLib library and in the EDT STRING type.

StringLib is implemented as an EGL external type, stereotype NativeType, and not as an EGL library.

Compatibility

Table 2. Compatibility
Target Issue
Java™ See the function-specific topics.
JavaScript™ See the function-specific topics.