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