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

int32_t UnicodeString::indexOf ( const UnicodeString text) const [inline]

Locate in this the first occurrence of the characters in text, using bitwise comparison.

Parameters:
textThe text to search for.
Returns:
The offset into this of the start of text, or -1 if not found. ICU 2.0

Definition at line 3799 of file unistr.h.

References Replaceable::length(), and length().

Referenced by DecimalFormat::appendAffix(), DecimalFormat::appendAffixPattern(), DecimalFormat::applyPattern(), UnicodeSet::applyPropertyPattern(), DecimalFormat::construct(), TransliteratorAlias::create(), Transliterator::createInstance(), NFRule::extractSubstitution(), DateIntervalFormat::fieldExistsInSkeleton(), findAndReplace(), TimeZoneBoundaryTest::findDaylightBoundaryUsingDate(), NFRule::findText(), RelativeDateFormat::format(), RuleBasedNumberFormat::format(), MessageFormat::format(), DateIntervalInfo::getBestSkeleton(), ICUService::getKey(), TestSearch::handleNext(), NFRule::indexOfAny(), LocaleKey::isFallbackOf(), SimpleDateFormat::isNumeric(), NumberFormat::makeInstance(), SimpleDateFormat::parse(), UXMLParser::parseFile(), ICUServiceKey::parsePrefix(), NFRule::parseRuleDescriptor(), RuleHalf::parseSection(), ICUServiceKey::parseSuffix(), SimpleDateFormat::processOverrideString(), DecimalFormat::setCurrency(), DateIntervalInfo::setFallbackIntervalPattern(), DateFormatRegressionTest::Test4103340(), LocaleTest::Test4139940(), UnicodeStringTest::TestCompare(), LocaleTest::TestEuroSupport(), TransliteratorTest::TestInvalidPostContext(), TransliteratorTest::TestParseError(), UnicodeStringTest::TestSearching(), CalendarTest::TestSecondsZero121(), and SimpleDateFormat::translatePattern().

{ return indexOf(text, 0, text.length(), 0, length()); }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index