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

UnicodeString & UnicodeString::remove ( void   )  [inline]

Remove all characters from the UnicodeString object.

Returns:
a reference to this ICU 2.0

Definition at line 4381 of file unistr.h.

Referenced by SelectFormat::applyPattern(), PluralFormat::applyPattern(), MessageFormat::applyPattern(), TransliteratorAlias::create(), DecimalFormat::expandAffix(), DateIntervalFormatTest::expect(), DateFormatTest::expect(), DateFormatTest::expectFormat(), DateFormatTest::expectParse(), DateIntervalFormatTest::expectUserDII(), LocaleKey::fallback(), ChoiceFormat::format(), TimeZoneTest::formatOffset(), TimeZoneTest::formatTZID(), DateTimePatternGenerator::getBestPattern(), TimeZone::getCanonicalID(), TimeZone::getCustomID(), TimeZone::getDisplayName(), ICUService::getKey(), SearchIterator::getMatchedText(), RuleBasedCollator::getRules(), NormalizationTransliterator::handleTransliterate(), TransliteratorIDParser::IDtoSTV(), DecimalFormatSymbols::initialize(), CanonicalIterator::next(), FilteredNormalizer2::normalize(), UXMLParser::parseFile(), ICUServiceKey::parsePrefix(), ICUServiceKey::parseSuffix(), TextFile::readLine(), TextFile::readLineSkippingComments(), TransliteratorRegistry::reget(), RuleHalf::removeContext(), SelectFormatTest::selectFormatAPITest(), SelectFormatTest::selectFormatUnitTest(), DateIntervalFormatTest::stress(), CalendarRegressionTest::test4103271(), NumberFormatRegressionTest::Test4134034(), NumberFormatRegressionTest::Test4140009(), TimeZoneRegressionTest::Test4162593(), CalendarRegressionTest::Test4167060(), CalendarRegressionTest::Test4197699(), DateFormatRegressionTest::Test4210209(), NumberFormatRegressionTest::Test4212072(), NumberFormatRegressionTest::Test4243108(), NumberFormatTest::TestAPI(), IntlTestDateTimePatternGeneratorAPI::testAPI(), DateIntervalFormatTest::testAPI(), UnicodeStringTest::TestBasicManipulation(), TestMessageFormat::testBug3(), TimeZoneTest::TestCustomParse(), TimeZoneTest::TestDisplayName(), LocaleTest::TestDisplayNames(), DateFormatTest::TestFieldPosition(), CalendarRegressionTest::TestJ438(), CalendarRegressionTest::TestJ81(), UnicodeStringTest::TestMiscellaneous(), TestMessageFormat::testMsgFormatPlural(), UnicodeStringTest::TestRemoveReplace(), UnicodeStringTest::TestSearching(), UnicodeStringTest::TestStackAllocation(), CollationIteratorTest::TestUnicodeChar(), RelativeDateFormat::toPattern(), DecimalFormat::toPattern(), ChoiceFormat::toPattern(), RelativeDateFormat::toPatternDate(), RelativeDateFormat::toPatternTime(), SimpleDateFormat::translatePattern(), unescape(), VTimeZone::write(), and VTimeZone::writeSimple().

{
  // remove() of a bogus string makes the string empty and non-bogus
  // we also un-alias a read-only alias to deal with NUL-termination
  // issues with getTerminatedBuffer()
  if(fFlags & (kIsBogus|kBufferIsReadonly)) {
    setToEmpty();
  } else {
    fShortLength = 0;
  }
  return *this;
}


Generated by  Doxygen 1.6.0   Back to index