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