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

int32_t UnicodeString::length ( void   )  const [inline]

Return the length of the UnicodeString object. The length is the number of UChar code units are in the UnicodeString. If you want the number of code points, please use countChar32().

Returns:
the length of the UnicodeString object
See also:
countChar32 ICU 2.0

Reimplemented from Replaceable.

Definition at line 3486 of file unistr.h.

Referenced by RuleCharacterIterator::_advance(), UnicodeSet::_appendToPat(), RuleCharacterIterator::_current(), SimpleDateFormat::_format(), UnicodeSet::_toPattern(), Transliterator::_transliterate(), UnicodeSet::add(), UnicodeSet::addAll(), StringMatcher::addMatchSetTo(), DecimalFormat::addPadding(), StringReplacer::addReplacementSetTo(), DateIntervalFormat::adjustFieldWidth(), append(), DecimalFormat::appendAffix(), DecimalFormat::appendAffixPattern(), SelectFormat::applyPattern(), PluralFormat::applyPattern(), MessageFormat::applyPattern(), ChoiceFormat::applyPattern(), UnicodeSet::applyPattern(), UnicodeSet::applyPropertyAlias(), UnicodeSet::applyPropertyPattern(), RuleCharacterIterator::atEnd(), MessageFormat::autoQuoteApostrophe(), caseCompare(), char32At(), UnicodeSet::closeOver(), CollationElementIterator::CollationElementIterator(), RuleBasedCollator::compare(), compare(), Normalizer::compare(), compareCodePointOrder(), DecimalFormat::compareComplexAffix(), SimpleDateFormat::compareSimpleAffix(), DecimalFormat::compareSimpleAffix(), UnicodeSet::complement(), RuleBasedCollator::construct(), UnicodeSet::contains(), UnicodeSet::containsAll(), UnicodeSet::containsNone(), TransliteratorAlias::create(), DateIntervalFormat::createInstance(), Calendar::createInstance(), Normalizer::current(), RBBIAPITest::doBoundaryTest(), LocaleTest::doTestDisplayNames(), IntlTestCollator::doTestVariant(), endsWith(), DecimalFormat::expandAffix(), DateIntervalFormatTest::expect(), DateIntervalFormatTest::expectUserDII(), extract(), CanonicalIterator::extract(), LocaleKey::fallback(), TransliteratorRegistry::find(), findAndReplace(), TransliteratorRegistry::findInBundle(), MessageFormat::findKeyword(), PluralRules::forLocale(), TimeUnitFormat::format(), RelativeDateFormat::format(), RuleBasedNumberFormat::format(), TransliteratorTest::formatInput(), DateTimePatternGenerator::getBestPattern(), DateIntervalInfo::getBestSkeleton(), getChar32Limit(), getChar32Start(), RuleBasedCollator::getCollationKey(), DateIntervalFormat::getDateTimeSkeleton(), Transliterator::getDisplayName(), TimeZone::getEquivalentID(), Normalizer::getIndex(), TransliterationRule::getIndexValue(), TestReplaceable::getLength(), getLength(), DateTimePatternGenerator::getPatternForSkeleton(), UnicodeSet::getSingleCP(), RuleBasedCollator::getSortKey(), getTerminatedBuffer(), VTimeZone::getTZURL(), DateTimeStyleSet::handleParseValue(), TestReplaceable::handleReplaceBetween(), ReplaceableGlue::handleReplaceBetween(), UnescapeTransliterator::handleTransliterate(), TitlecaseTransliterator::handleTransliterate(), NormalizationTransliterator::handleTransliterate(), NameUnicodeTransliterator::handleTransliterate(), EscapeTransliterator::handleTransliterate(), CaseMapTransliterator::handleTransliterate(), BreakTransliterator::handleTransliterate(), TransliteratorIDParser::IDtoSTV(), indexOf(), TimeZone::initDefault(), SimpleDateFormat::initGMTFormatters(), DateIntervalFormat::initializePattern(), insert(), TransliteratorIDParser::instantiateList(), LocaleKey::isFallbackOf(), SimpleDateFormat::isFieldUnitIgnored(), MessageFormat::isLegalArgName(), FilteredNormalizer2::isNormalized(), RuleHalf::isValidInput(), RuleHalf::isValidOutput(), izrule_getName(), lastIndexOf(), LocaleKey::LocaleKey(), MessageFormat::makeFormat(), TransliterationRule::masks(), DecimalFormat::match(), StringMatcher::matches(), UnicodeSet::matches(), StringMatcher::matchesIndexValue(), SimpleDateFormat::matchQuarterString(), UnicodeSet::matchRest(), SimpleDateFormat::matchString(), moveIndex32(), StringEnumeration::next(), RuleCharacterIterator::next(), Normalizer::next(), TokenIterator::nextToken(), operator+=(), operator<(), operator<=(), StringSearch::operator=(), operator=(), operator==(), operator>(), operator>=(), padLeading(), padTrailing(), UXMLParser::parse(), SimpleDateFormat::parse(), MessageFormat::parse(), DecimalFormat::parse(), ChoiceFormat::parse(), UXMLParser::parseFile(), TransliteratorIDParser::parseFilterID(), FieldsSet::parseFrom(), TransliteratorIDParser::parseGlobalFilter(), TimeUnitFormat::parseObject(), RuleHalf::parseSection(), DateIntervalInfo::parseSkeleton(), FieldsSet::parseValueDefault(), CanonicalIterator::permute(), SimpleDateFormat::processOverrideString(), FilteredNormalizer2::quickCheck(), TextFile::readLineSkippingComments(), TransliteratorRegistry::registerEntry(), UnicodeSet::remove(), StringReplacer::replace(), replace(), replaceBetween(), UnicodeSet::resemblesPattern(), UnicodeSet::resemblesPropertyPattern(), reverse(), SearchIterator::SearchIterator(), setCharAt(), StringReplacer::setData(), StringMatcher::setData(), Transliterator::setID(), DateIntervalFormat::setIntervalPattern(), DecimalFormat::setPadCharacter(), StringSearch::setPattern(), UnicodeSet::setPattern(), DateIntervalFormat::setSeparateDateTimePtn(), CanonicalIterator::setSource(), StringSearch::setText(), SearchIterator::setText(), CollationElementIterator::setText(), StringCharacterIterator::setText(), setTo(), RuleBasedCollator::setVariableTop(), DecimalFormat::skipPadding(), SimpleDateFormat::skipRuleWhiteSpace(), DecimalFormat::skipRuleWhiteSpace(), SimpleDateFormat::skipUWhiteSpace(), DecimalFormat::skipUWhiteSpace(), UnicodeSet::span(), UnicodeSet::spanBack(), FilteredNormalizer2::spanQuickCheckYes(), TransliteratorIDParser::specsToID(), TransliteratorIDParser::specsToSpecialInverse(), CompoundTransliteratorTest::split(), DateIntervalFormat::splitPatternInto2Part(), startsWith(), DateIntervalFormatTest::stress(), StringSearch::StringSearch(), TransliteratorIDParser::STVtoID(), SimpleDateFormat::subFormat(), DecimalFormat::subformat(), SimpleDateFormat::subParse(), DecimalFormat::subparse(), Format::syntaxError(), DateFormatRegressionTest::Test4052408(), DateFormatTest::TestBadInput135(), DateFormatTest::TestBadInput135a(), TimeUnitTest::testBasic(), UnicodeStringTest::TestBasicManipulation(), UnicodeSetTest::TestCloseOver(), CollationAPITest::TestCompare(), BasicNormalizerTest::TestCompositionExclusion(), TransliteratorTest::TestCompoundFilterID(), CharIterTest::TestConstructionAndEquality(), DateFormatTest::TestDateFormatCalendar(), LocaleTest::TestDisplayNames(), NumberFormatTest::TestExponential(), UnicodeStringTest::TestExtract(), DateFormatTest::TestFieldPosition(), LocaleTest::TestGetLangsAndCountries(), TransliteratorTest::TestIncrementalProgress(), CharIterTest::TestIteration(), CharIterTest::TestIterationUChar32(), TransliteratorTest::TestJ277(), RBBITest::TestJapaneseLineBreak(), TransliteratorTest::TestLiberalizedID(), UnicodeStringTest::TestMiscellaneous(), CollationIteratorTest::TestOffset(), UnicodeStringTest::TestPrefixAndSuffix(), CollationAPITest::TestProperty(), DateFormatTest::TestQuotePattern161(), UnicodeStringTest::TestRemoveReplace(), CollationAPITest::TestRules(), UnicodeStringTest::TestSearching(), NumberFormatTest::TestSecondaryGrouping(), TransliteratorTest::TestSpecialCases(), UnicodeStringTest::TestStackAllocation(), TransliteratorTest::TestSTV(), CollationAPITest::TestSubclass(), TransliteratorTest::TestSurrogateCasing(), DateFormatTest::TestWallyWedel(), StringMatcher::toPattern(), MessageFormat::toPattern(), DecimalFormat::toPattern(), ChoiceFormat::toPattern(), StringReplacer::toReplacerPattern(), toUTF32(), toUTF8(), SimpleDateFormat::translatePattern(), TransliterationRule::TransliterationRule(), Transliterator::Transliterator(), trim(), truncate(), IntlTestNumberFormat::tryIt(), u_hasBinaryProperty(), udatpg_getAppendItemFormat(), udatpg_getAppendItemName(), udatpg_getDateTimeFormat(), udatpg_getDecimal(), udatpg_getPatternForSkeleton(), umsg_vparse(), unescape(), unescapeAt(), StringEnumeration::unext(), UnicodeString(), unorm_compare(), uregex_openC(), uset_resemblesPattern(), uspoof_getSkeleton(), utrans_getUnicodeID(), utrans_open(), vzone_getTZURL(), vzone_write(), vzone_writeFromStart(), vzone_writeSimple(), and zrule_getName().

{ return fShortLength>=0 ? fShortLength : fUnion.fFields.fLength; }


Generated by  Doxygen 1.6.0   Back to index