Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Work buffer length considerations z/OS Unicode Services User's Guide and Reference SA38-0680-00 |
|||||||||||||
The work buffer length has the same considerations for both 31-bit
and 64-bit. There are two main considerations, both of them are related
to the collation level you specify. Following are the two possibilities:
For UCA version UCA400R1 and higher, the following table shows
the size of the work buffers for most common UTF-16BE Code Points:
Note:
Most common UTF-16BE Code Points require 2-bytes in Source buffer. Non-normal CP's are expansions, contractions, surrogates, surrogates expansions and surrogates contractions. IBM® recommends allocating the same bytes for work buffer as for target buffer, see Target buffer length considerations. If Collation returns with RC = CUN_RC_USER_ERR, RS = CUN_RS_WRK_EXHAUSTED by following this recommendation (Wrk Buffer Len = Target buffer length), it is recommended to multiply failed work buffer length by 2 and so on. |
Copyright IBM Corporation 1990, 2014
|