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

int32_t UnicodeSet::spanBack ( const UnicodeString s,
int32_t  limit,
USetSpanCondition  spanCondition 
) const [inline]

Returns the start of the substring of the input string according to the USetSpanCondition. Same as spanBack(s.getBuffer(), limit, spanCondition) after pinning limit to 0<=end<=s.length().

Parameters:
s the string
limit the exclusive-end index in the string for the span operation (use s.length() or INT32_MAX for spanning back from the end of the string)
spanCondition specifies the containment condition
Returns:
the start of the substring according to the spanCondition; the substring s.tempSubStringBetween(start, limit) fulfills the spanCondition ICU 4.4
See also:
USetSpanCondition

Definition at line 1661 of file uniset.h.

References UnicodeString::getBuffer(), UnicodeString::length(), and spanBack().

                                                                                                                {
    int32_t sLength=s.length();
    if(limit<0) {
        limit=0;
    } else if(limit>sLength) {
        limit=sLength;
    }
    return spanBack(s.getBuffer(), limit, spanCondition);
}


Generated by  Doxygen 1.6.0   Back to index