WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
cpiNextParserCodedCharSetId
This function returns the coded character set ID (CCSID) of the data owned by the next parser class in the chain, if one is defined.
Defined In | Type | Member |
---|---|---|
CPI_VFT | Optional | iFpNextParserCodedCharSetId |
Syntax
int cpiNextParserCodedCharSetId(
CciParser* parser,
CciContext* context);
Parameters
- parser
- The address of the parser object (input).
- context
- The address of the context owned by the parser object (input).
Return values
The CCSID of the data is returned. If it is not known, zero might be returned, and a default CCSID is assumed.
Sample
This example is taken from the sample parser file BipSampPluginParser.c:
int cpiNextParserCodedCharSetId(
CciParser* parser,
CciContext* context
){
PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ;
int ccsid = 0;
if (pc->trace) {
fprintf(pc->tracefile, "PLUGIN: -> cpiNextParserCodedCharSetId() parser=0x%x
context=0x%x\n", parser, context);
fflush(pc->tracefile);
}
if (pc->trace) {
fprintf(pc->tracefile, "PLUGIN: <- cpiNextParserCodedCharSetId()\n");
fflush(pc->tracefile);
}
return ccsid;
}