Cprl_Downshift - HP NonStop SQL/MP Programming Manual

For c
Table of Contents

Advertisement

Character Processing Rules (CPRL) Procedures
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.
#include <cextdecs(CPRL_DOWNSHIFT_)>
short CPRL_DOWNSHIFT_ (
The CPRL_DOWNSHIFT_ procedure returns these values:
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.
HP NonStop SQL/MP Programming Manual for C—429847-008
char *inputstring
,short inputstringlength
,char *shiftedstring
,short shiftedstringmaxlength
,short *shiftedstringlength
,long cprladdr );
11-10
CPRL_DOWNSHIFT_
/* i */
/* i */
/* o */
/* i */
/* o */
/* i */

Advertisement

Table of Contents
loading

Table of Contents