Optional function to return the encoding of data owned by the next parser class in the chain, if any.
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 will apply.
This example is taken from the sample parser file BipSampPluginParser.c (lines 794 to 813).
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; }
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
as08140_ |