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

U_INTERNAL UText* U_EXPORT2 uregex_getUText ( URegularExpression regexp,
UText dest,
UErrorCode status 
)

Get the subject text that is currently associated with this regular expression object.

This function will work even if the input was originally specified as a UChar string.

Parameters:
regexp The compiled regular expression.
dest A mutable UText in which to store the current input. If NULL, a new UText will be created as an immutable shallow clone of the actual input string.
status Receives errors detected by this function.
Returns:
The subject text currently associated with this regular expression. If a pre-allocated UText was provided, it will always be used and returned.

For internal use only.

ICU 4.4 technology preview

Definition at line 475 of file uregex.cpp.

References FALSE.

                                             {
    RegularExpression *regexp = (RegularExpression*)regexp2;
    if (validateRE(regexp, status, FALSE) == FALSE) {
        return dest;
    }
    return regexp->fMatcher->getInput(dest);
}


Generated by  Doxygen 1.6.0   Back to index