This is one of several functions that EGL maintains for compatibility with I4GL. The strLib.unicodeAsInt() system function returns the Unicode code point (numeric representation) of a character as an INT.
The complementary function strLib.intAsUnicode() returns the Unicode character to which a code point refers.
strLib.unicodeAsInt(character UNICODE(1)? in)
returns (code INT?)
source STRING = "ABC";
result INT;
result = strLib.unicodeAsInt(source);
// result is 65
| Platform | Issue |
|---|---|
| JavaScript generation | The function strLib.unicodeAsInt() is not supported. |