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

UBool UnicodeString::endsWith ( const UChar *  srcChars,
int32_t  srcLength 
) const [inline]

Determine if this ends with the characters in srcChars

Parameters:
srcChars The characters to match.
srcLength the number of characters in srcChars
Returns:
TRUE if this ends with the characters in srcChars, FALSE otherwise ICU 2.0

Definition at line 3959 of file unistr.h.

References length(), and u_strlen().

                                     {
  if(srcLength < 0) {
    srcLength = u_strlen(srcChars);
  }
  return doCompare(length() - srcLength, srcLength,
                   srcChars, 0, srcLength) == 0;
}


Generated by  Doxygen 1.6.0   Back to index