지정된 구문 요소의 이전(왼쪽) 동위 요소를 구문 분석합니다. 현재 구문 요소의 이전(왼쪽) 동위 요소가 필요할 때 브로커가 호출합니다.
정의 대상 | 유형 | 구성원 |
CPI_VFT | 필수 | iFpParsePreviousSibling |
void cpiParsePreviousSibling( CciParser* parser, CciContext* context, CciElement* currentElement);
없음
void cpiParsePreviousSibling( CciParser* parser, CciContext* context, CciElement* element ){ PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ; int rc; while ((!cpiElementCompletePrevious(&rc, cpiParent(&rc, element))) && (!cpiPreviousSibling(&rc, element)) && (pc->iCurrentElement)) { pc->iCurrentElement = parsePreviousItem(parser, context, pc->iCurrentElement); } if (pc->trace) { fprintf(pc->tracefile, "PLUGIN: <- cpiParsePreviousSibling()\n"); fflush(pc->tracefile); } return; }
코드 샘플은 cpiParseNextSibling에 대해 사용된 것과 유사합니다. 비트스트림을 오른쪽에서 왼쪽으로 구문 분석할 때는 위에 표시된 컨텍스트에 cpiParsePreviousSibling을 사용하십시오.