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

U_STABLE int32_t U_EXPORT2 uregex_groupCount ( URegularExpression regexp,
UErrorCode status 

Get the number of capturing groups in this regular expression's pattern.

regexp The compiled regular expression.
status A reference to a UErrorCode to receive any errors.
the number of capture groups ICU 3.0

Definition at line 579 of file uregex.cpp.

References FALSE.

    RegularExpression *regexp = (RegularExpression*)regexp2;
    if (validateRE(regexp, status, FALSE) == FALSE) {
        return 0;
    int32_t  result = regexp->fMatcher->groupCount();
    return result;

Generated by  Doxygen 1.6.0   Back to index