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

void UnicodeString::extract ( int32_t  start,
int32_t  length,
UChar *  dst,
int32_t  dstStart = 0 
) const [inline]

Copy the characters in the range [start, start + length) into the array dst, beginning at dstStart. If the string aliases to dst itself as an external buffer, then extract() will not copy the contents.

Parameters:
start offset of first character which will be copied into the array
length the number of characters to extract
dst array in which to copy characters. The length of dst must be at least (dstStart + length).
dstStart the offset in dst where the first character will be extracted ICU 2.0

Definition at line 4066 of file unistr.h.

Referenced by TransliteratorAlias::create(), DateIntervalFormat::createInstance(), Calendar::createInstance(), DecimalFormat::expandAffix(), DateIntervalFormatTest::expect(), DateIntervalFormatTest::expectUserDII(), extract(), TimeUnitFormat::format(), DateIntervalInfo::getBestSkeleton(), Transliterator::getDisplayName(), TimeZone::getDisplayName(), ICUResourceBundleFactory::handleCreate(), NameUnicodeTransliterator::handleTransliterate(), DateIntervalFormat::initializePattern(), TimeZone::loadRule(), RuleCharacterIterator::lookahead(), NumberFormat::makeInstance(), SimpleDateFormat::matchQuarterString(), SimpleDateFormat::matchString(), StringEnumeration::next(), MessageFormat::parse(), UXMLParser::parseFile(), TimeUnitFormat::parseObject(), SimpleDateFormat::processOverrideString(), DateIntervalFormat::setIntervalPattern(), CanonicalIterator::setSource(), DateIntervalFormatTest::stress(), Format::syntaxError(), DateFormatRegressionTest::Test4103340(), DateFormatTest::TestBadInput135a(), TimeUnitTest::testBasic(), UnicodeStringTest::TestBasicManipulation(), UnicodeStringTest::TestExtract(), DateFormatTest::TestWallyWedel(), u_getFC_NFKC_Closure(), ucal_getCanonicalTimeZoneID(), ucal_getTimeZoneDisplayName(), ucol_getDisplayName(), udat_format(), udat_getSymbols(), udat_toPattern(), udat_toPatternRelativeDate(), udat_toPatternRelativeTime(), udatpg_addPattern(), udatpg_getBaseSkeleton(), udatpg_getBestPatternWithOptions(), udatpg_getSkeleton(), udatpg_replaceFieldTypesWithOptions(), uldn_keyDisplayName(), uldn_keyValueDisplayName(), uldn_languageDisplayName(), uldn_localeDisplayName(), uldn_regionDisplayName(), uldn_scriptDisplayName(), uldn_variantDisplayName(), umsg_toPattern(), umsg_vformat(), umsg_vparse(), unorm2_normalize(), unum_formatDouble(), unum_formatDoubleCurrency(), unum_formatInt64(), unum_getTextAttribute(), unum_toPattern(), uset_getItem(), uset_toPattern(), utrans_getAvailableID(), utrans_transIncrementalUChars(), and utrans_transUChars().

{ doExtract(start, _length, target, targetStart); }


Generated by  Doxygen 1.6.0   Back to index