cpiNextParserCodedCharSetId

목적

체인에서 다음 구문 분석기 클래스가 소유하는 데이터의 CCSID(코딩된 문자 세트 ID)(있는 경우)를 리턴하는 선택적 함수.

정의 대상 유형 구성원
CPI_VFT 선택 사항 iFpNextParserCodedCharSetId

구문

int cpiNextParserCodedCharSetId(
    CciParser*      parser,
    CciContext*  context);

매개변수

parser
구문 분석기 오브젝트의 주소(입력).
context
구문 분석기 오브젝트가 소유하는 컨텍스트의 주소(입력)

리턴 값

데이터의 CCSID가 리턴됩니다. 값이 알려지지 않은 경우 0이 리턴되고 디폴트 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;
}
관련 개념
사용자 정의 구문 분석기
사용자 정의 확장 구성요소
관련 태스크
C로 구문 분석기 작성
관련 참조
cpiNextParserClassName
cpiNextParserEncoding
C 구문 분석기 구현 함수
주의사항 | 등록상표 | 다운로드 | 라이브러리 | 지원 | 피드백
Copyright IBM Corporation 1999, 2006 마지막 갱신 날짜: 2006/08/21
as08130_