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

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:
offseta 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(), ICU_Utility::appendToRule(), PluralFormat::applyPattern(), UnicodeSet::applyPropertyPattern(), NumeratorSubstitution::doParse(), FractionalPartSubstitution::doParse(), NFRule::extractSubstitution(), TestReplaceable::getCharAt(), getCharAt(), DateTimePatternGenerator::getPatternForSkeleton(), UnicodeSet::getSingleCP(), NameUnicodeTransliterator::handleTransliterate(), SCharacterIterator::hasNext(), LocaleKey::isFallbackOf(), MessageFormat::isLegalArgName(), MessageFormat::makeFormat(), StringMatcher::matches(), UnicodeSet::matches(), UnicodeSet::matchRest(), TokenIterator::nextToken(), SimpleDateFormat::parse(), ICU_Utility::parseInteger(), ICU_Utility::parsePattern(), TokenSymbolTable::parseReference(), ParseData::parseReference(), RBBISymbolTable::parseReference(), NFRule::parseRuleDescriptor(), RuleHalf::parseSection(), DateIntervalInfo::parseSkeleton(), SimpleDateFormat::processOverrideString(), TextFile::readLineSkippingComments(), UnicodeSet::resemblesPattern(), CompoundTransliteratorTest::split(), DateIntervalFormat::splitPatternInto2Part(), SimpleDateFormat::subParse(), PluralRulesTest::testAPI(), BasicNormalizerTest::TestCompositionExclusion(), LocaleTest::TestDisplayNames(), UnicodeStringTest::TestExtract(), DateFormatTest::TestFieldPosition(), IntlTestRBNF::TestFractionalRuleSet(), TransliteratorTest::TestJ277(), UnicodeStringTest::TestMiscellaneous(), NumberFormatTest::TestSecondaryGrouping(), UnicodeStringTest::TestStackAllocation(), StringMatcher::toPattern(), StringReplacer::toReplacerPattern(), and uset_resemblesPattern().

{ return doCharAt(offset); }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index