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