SQL/MP Programming Manual for C
Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for C—429847-008
11-3
CPRL_ARE_
CPRL_ARE_ 
The CPRL_ARE_ procedure determines if all characters in a string are in the character 
class defined by the specified CPRL. You can also call CPRL_ARE_ to scan a string 
for the first character not in a specific character class. 
The CPRL_ARE_ procedure returns these values: 
classname
is an array containing the name of the specified character class.
classnamelength
is the number of bytes in the character class name classname.
inputstring
is a string containing the data to be scanned.
inputstringlength
is the number of bytes to be scanned in inputstring.
#include <cextdecs(CPRL_ARE_)>
short CPRL_ARE_ ( 
 char *classname /* i */
 ,short classnamelength /* i */
 ,char *inputstring /* i */
 ,short inputstringlength /* i */
 ,long *exceptcharaddr /* 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. 
–5 The user-specified character class does not exist in the specified SQL collation or 
collation object. 
–6 The input string contains a character not in the specified character class. 










