Logo Search packages:      
Sourcecode: icu version File versions

UnicodeString & UnicodeString::setTo ( const UnicodeString srcText,
int32_t  srcStart 
) [inline]

Set the text in the UnicodeString object to the characters in srcText in the range [srcStart, srcText.length()). srcText is not modified.

Parameters:
srcText the source for the new characters
srcStart the offset into srcText where new characters will be obtained
Returns:
a reference to this ICU 2.2

Definition at line 4198 of file unistr.h.

References length(), and pinIndex().

Referenced by SimpleDateFormat::construct(), DecimalFormat::construct(), NumberingSystem::createInstanceByName(), VTimeZone::createVTimeZoneByID(), TimeZone::dereferOlsonLink(), RelativeDateFormat::format(), TimeZone::formatCustomID(), UXMLElement::getAttribute(), SearchIterator::getMatchedText(), RuleBasedCollator::getRules(), UnicodeSetIterator::getString(), TitlecaseTransliterator::handleTransliterate(), CaseMapTransliterator::handleTransliterate(), DecimalFormatSymbols::initialize(), DateFormatSymbols::initializeData(), NumberFormat::makeInstance(), SimpleDateFormat::processOverrideString(), TransliteratorRegistry::put(), SimpleDateFormat::SimpleDateFormat(), UStringEnumeration::snext(), RegexMatcher::split(), UnicodeStringTest::TestBasicManipulation(), UnicodeSetTest::TestCloseOver(), LocaleTest::TestEuroSupport(), CollationAPITest::TestMaxExpansion(), UnicodeStringTest::TestMiscellaneous(), UnicodeStringTest::TestSpacePadding(), UnicodeStringTest::TestStackAllocation(), NewResourceBundleTest::testTag(), RelativeDateFormat::toPattern(), ucol_getDisplayName(), udat_format(), udat_getSymbols(), udat_toPattern(), udat_toPatternRelativeDate(), udat_toPatternRelativeTime(), umsg_toPattern(), UnicodeString(), unum_formatDouble(), unum_formatDoubleCurrency(), unum_formatInt64(), unum_getTextAttribute(), and unum_toPattern().

{
  unBogus();
  srcText.pinIndex(srcStart);
  return doReplace(0, length(), srcText, srcStart, srcText.length() - srcStart);
}


Generated by  Doxygen 1.6.0   Back to index