CciBool cpiElementCompletePrevious( int* returnCode, CciElement* targetElement);
属性の値が戻されます。 エラーが発生した場合、returnCode がエラーの理由を示します。
この例は、サンプル・パーサー・ファイル BipSampPluginParser.c から取られたコード (491 行から 499 行) と類似しています。 サンプル・ファイル内のコードは cpiElementCompleteNext に関するものです。
if ((!cpiElementCompletePrevious(&rc, element)) && (cpiElementType(&rc, element) == CCI_ELEMENT_TYPE_NAME)) { while ((!cpiElementCompletePrevious(&rc, element)) && (!cpiFirstChild(&rc, element)) && (pc->iCurrentElement)) { pc->iCurrentElement = parsePreviousItem(parser, context, pc->iCurrentElement); }