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

U_STABLE const UChar* U_EXPORT2 usearch_getPattern ( const UStringSearch strsrch,
int32_t *  length 
)

Gets the search pattern

Parameters:
strsrchsearch iterator data struct
lengthreturn length of the pattern, -1 indicates that the pattern is null-terminated
Returns:
pattern string ICU 2.4

Definition at line 3088 of file usearch.cpp.

{
    if (strsrch) {
        *length = strsrch->pattern.textLength;
        return strsrch->pattern.text;
    }
    return NULL;
}

Generated by  Doxygen 1.6.0   Back to index