SQL/MP Programming Manual for C

Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for C429847-008
11-10
CPRL_DOWNSHIFT_
encodedstring
is an array containing the data to be decoded.
encodedstringlength
is the number of bytes in encodedstring to be decoded.
decodedstring
is an array in which CPRL_DECODE_ returns the decoded string. Overlapping
encodedstring and decodedstring causes unpredictable results.
decodedstringmaxlength
specifies the maximum length of decodedstring.
decodedstringlength
is the number of bytes of encodedstring that were decoded. CPRL_DECODE_
pads the remainder of decodedstring with blanks up to
decodedstringmaxlength.
cprladdr
is a pointer to the SQL collation or collation object.
CPRL_DOWNSHIFT_
The CPRL_DOWNSHIFT_ procedure downshifts a character string according to the
downshift rules in a specified SQL collation or collation object.
The CPRL_DOWNSHIFT_ procedure returns these values:
#include <cextdecs(CPRL_DOWNSHIFT_)>
short CPRL_DOWNSHIFT_ (
char *inputstring /* i */
,short inputstringlength /* i */
,char *shiftedstring /* o */
,short shiftedstringmaxlength /* i */
,short *shiftedstringlength /* o */
,long cprladdr ); /* i */
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.
–21 The collations in the two specified SQL collations or collation objects do not match.