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

int8_t UnicodeString::compareBetween ( int32_t  start,
int32_t  limit,
const UnicodeString srcText,
int32_t  srcStart,
int32_t  srcLimit 
) const [inline]

Compare the characters bitwise in the range [start, limit) with the characters in srcText in the range [srcStart, srcLimit).

start the offset at which the compare operation begins
limit the offset immediately following the compare operation
srcText the text to be compared
srcStart the offset into srcText to start comparison
srcLimit the offset into srcText to limit comparison
The result of bitwise character comparison: 0 if this contains the same characters as srcText, -1 if the characters in this are bitwise less than the characters in srcText, +1 if the characters in this are bitwise greater than the characters in srcText. ICU 2.0

Definition at line 3614 of file unistr.h.

Referenced by SimpleDateFormat::matchQuarterString(), SimpleDateFormat::matchString(), DateFormatTest::TestBadInput135(), UnicodeStringTest::TestCompare(), and DateFormatTest::TestQuotePattern161().

{ return doCompare(start, limit - start,
           srcText, srcStart, srcLimit - srcStart); }

Generated by  Doxygen 1.6.0   Back to index