SQL/MP Programming Manual for C
Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for C—429847-008
11-12
CPRL_GETALPHATABLE_
The CPRL_ENCODE_ procedure returns these values:
decodedstring
is an array containing data to be encoded.
decodedstringlength
is the number of bytes in decodedstring to be encoded.
encodedstring
is an array in which CPRL_ENCODE_ returns the encoded string. Overlapping
decodedstring and encodedstring causes unpredictable results.
encodedstringmaxlength
specifies the maximum length of encodedstring.
encodedstringlength
is the number of bytes that were encoded. CPRL_ENCODE_ pads the remainder
of decodedstring with encoded blanks up to decodedstringmaxlength.
cprladdr
is a pointer to the SQL collation or collation object.
CPRL_GETALPHATABLE_
The CPRL_GETALPHATABLE_ procedure extracts ALPHAS character class
information for single-byte character sets from an SQL collation or collation object.
Code Description
0 The operation was successful.
–2 The SQL collation or collation object is invalid.
–4 The version of the SQL collation or collation object is not supported.
–20 The user-specified buffer is not large enough to receive the returned string.
#include <cextdecs(CPRL_GETALPHATABLE_)>
short CPRL_GETALPHATABLE_ (
char *array /* o */
,long cprladdr ); /* i */