This function returns the encoding of data owned by the next parser class in the chain, if defined.
Defined In | Type | Member |
---|---|---|
CPI_VFT | Optional | iFpNextParserEncoding |
int cpiNextParserEncoding(
CciParser* parser,
CciContext* context);
The encoding of the data is returned. If it is not known, zero might be returned, and default encoding is assumed.
This example is taken from the sample parser file BipSampPluginParser.c:
int cpiNextParserEncoding(
CciParser* parser,
CciContext* context
){
PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ;
int encoding = 0;
if (pc->trace) {
fprintf(pc->tracefile, "PLUGIN: -> cpiNextParserEncoding() parser=0x%x context=0x%x\n",
parser, context);
fflush(pc->tracefile);
}
if (pc->trace) {
fprintf(pc->tracefile, "PLUGIN: <- cpiNextParserEncoding()\n");
fflush(pc->tracefile);
}
return encoding;
}