Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

ULENGTH16

ULENGTH16 returns a FIXED BIN(31) value which is the length of a WIDECHAR string needed if the UTF characters held in a string were converted to UTF-16.

Read syntax diagramSkip visual syntax diagram>>-ULENGTH16(x)------------------------------------------------><
 
x
Expression which must have CHARACTER or WIDECHAR type.

If x has CHAR type, then the string must contain valid UTF-8 data, and ULENGTH16 will return the length of the WIDECHAR string that would result if x were converted from UTF-8 to UTF-16. If the string does not contain valid UTF-8 data, the ERROR condition will be raised.

If x has WIDECHAR type, then ULENGTH16 is the same as LENGTH, and the string will not be checked for valid UTF-16 data.

For example, if x equals the CHARACTER string '4b_c3_a4_73_65'x, then


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)