Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE void U_EXPORT2 ucol_closeElements ( UCollationElements elems  ) 

Close a UCollationElements. Once closed, a UCollationElements may no longer be used.

Parameters:
elems The UCollationElements to close. ICU 2.0

Definition at line 340 of file ucoleitr.cpp.

References NULL.

{
      if (elems != NULL) {
        collIterate *ci = &elems->iteratordata_;

        if (ci->extendCEs) {
              uprv_free(ci->extendCEs);
        }

        if (ci->offsetBuffer) {
              uprv_free(ci->offsetBuffer);
        }

        if (elems->isWritable && elems->iteratordata_.string != NULL)
        {
            uprv_free((UChar *)elems->iteratordata_.string);
        }

        if (elems->pce != NULL) {
              delete elems->pce;
        }

        delete elems;
      }
}


Generated by  Doxygen 1.6.0   Back to index