Logo Search packages:      
Sourcecode: icu version File versions

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

Remove all characters from the UnicodeString object.

Returns:
a reference to this ICU 2.0

Definition at line 4319 of file unistr.h.

References isBogus().

Referenced by PluralFormat::applyPattern(), MessageFormat::applyPattern(), TransliteratorAlias::create(), TimeZone::dereferOlsonLink(), 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(), TransliteratorIDParser::IDtoSTV(), DecimalFormatSymbols::initialize(), CanonicalIterator::next(), UXMLParser::parseFile(), ICUServiceKey::parsePrefix(), ICUServiceKey::parseSuffix(), TextFile::readLine(), TextFile::readLineSkippingComments(), TransliteratorRegistry::reget(), RuleHalf::removeContext(), 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(), 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
  if(isBogus()) {
    unBogus();
  } else {
    setLength(0);
  }
  return *this;
}


Generated by  Doxygen 1.6.0   Back to index