この関数は、チェーン内の次のパーサー・クラス (定義済みの場合) によって所有されるデータのエンコードを戻します。
定義されている場所 | タイプ | メンバー |
---|---|---|
CPI_VFT | オプション | iFpNextParserEncoding |
int cpiNextParserEncoding(
CciParser* parser,
CciContext* context);
データのエンコードが戻されます。 これが不明の場合には、ゼロが戻され、デフォルトのエンコードと想定されます。
この例は、サンプル・パーサー・ファイル 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;
}