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

UBool UnicodeString::endsWith ( const UnicodeString srcText,
int32_t  srcStart,
int32_t  srcLength 
) const [inline]

Determine if this ends with the characters in srcText in the range [srcStart, srcStart + srcLength).

Parameters:
srcText The text to match.
srcStart the offset into srcText to start matching
srcLength the number of characters in srcText to match
Returns:
TRUE if this ends with the characters in text, FALSE otherwise ICU 2.0

Definition at line 3950 of file unistr.h.

References length(), and pinIndices().

                                     {
  srcText.pinIndices(srcStart, srcLength);
  return doCompare(length() - srcLength, srcLength,
                   srcText, srcStart, srcLength) == 0;
}


Generated by  Doxygen 1.6.0   Back to index