Logo Search packages:      
Sourcecode: icu version File versions

UBool UnicodeString::startsWith ( const UnicodeString text  )  const [inline]

Determine if this starts with the characters in text

Parameters:
text The text to match.
Returns:
TRUE if this starts with the characters in text, FALSE otherwise ICU 2.0

Definition at line 3887 of file unistr.h.

References compare(), and length().

Referenced by DateTimeStyleSet::handleParseValue(), TimeZone::parseCustomID(), RuleBasedNumberFormat::setDefaultRuleSet(), DateIntervalFormat::setIntervalPattern(), MessageFormatRegressionTest::Test4142938(), UnicodeStringTest::TestPrefixAndSuffix(), NewResourceBundleTest::testTag(), and DateFormatTest::TestWallyWedel().

{ return compare(0, text.length(), text, 0, text.length()) == 0; }


Generated by  Doxygen 1.6.0   Back to index