Logo Search packages:      
Sourcecode: icu version File versions

UChar UnicodeString::charAt ( int32_t  offset  )  const [inline]

Return the code unit at offset offset. If the offset is not valid (0..length()-1) then U+ffff is returned.

Parameters:
offset a valid offset into the text
Returns:
the code unit at offset offset or 0xffff if the offset is not valid for this string ICU 2.0

Reimplemented from Replaceable.

Definition at line 4077 of file unistr.h.

Referenced by DateIntervalFormat::adjustFieldWidth(), RegexMatcher::appendReplacement(), PluralFormat::applyPattern(), UnicodeSet::applyPropertyPattern(), TestReplaceable::getCharAt(), getCharAt(), DateTimePatternGenerator::getPatternForSkeleton(), UnicodeSet::getSingleCP(), NameUnicodeTransliterator::handleTransliterate(), LocaleKey::isFallbackOf(), MessageFormat::isLegalArgName(), MessageFormat::makeFormat(), StringMatcher::matches(), UnicodeSet::matches(), UnicodeSet::matchRest(), TokenIterator::nextToken(), SimpleDateFormat::parse(), ParseData::parseReference(), RuleHalf::parseSection(), DateIntervalInfo::parseSkeleton(), SimpleDateFormat::processOverrideString(), TextFile::readLineSkippingComments(), UnicodeSet::resemblesPattern(), CompoundTransliteratorTest::split(), DateIntervalFormat::splitPatternInto2Part(), SimpleDateFormat::subParse(), PluralRulesTest::testAPI(), UnicodeSetTest::TestCloseOver(), BasicNormalizerTest::TestCompositionExclusion(), LocaleTest::TestDisplayNames(), UnicodeStringTest::TestExtract(), DateFormatTest::TestFieldPosition(), TransliteratorTest::TestJ277(), UnicodeStringTest::TestMiscellaneous(), NumberFormatTest::TestSecondaryGrouping(), UnicodeStringTest::TestStackAllocation(), StringMatcher::toPattern(), StringReplacer::toReplacerPattern(), and uset_resemblesPattern().

{ return doCharAt(offset); }


Generated by  Doxygen 1.6.0   Back to index