#include <ascstring.h>
Inheritance diagram for ASCString:

Public Types | |
| typedef ASCStringHelpers::charT | charT |
| typedef ASCStringHelpers::NoncharT | NoncharT |
Public Member Functions | |
| ASCString () | |
| ASCString (const charT *pS) | |
| ASCString (const charT *pS, size_type n) | |
| ASCString (size_type n, charT c) | |
| ASCString (const_iterator first, const_iterator last) | |
| ASCString (const ASCCharTString &s) | |
| ASCString (const ASCCharTString &s, size_type pos, size_type n) | |
| ASCString (const ASCAdaptatorString &s) | |
| ASCString (const ASCAdaptatorString &s, size_type pos, size_type n) | |
| ASCString & | operator= (const ASCAdaptatorString &s) |
| ASCString & | operator= (const ASCCharTString &s) |
| ASCString & | operator= (const charT *pS) |
| int | compare_ci (const ASCCharTString &s) const |
| int | compare_ci (size_type p0, size_type n0, const ASCCharTString &s) |
| int | compare_ci (size_type p0, size_type n0, const ASCCharTString &s, size_type pos, size_type n) |
| int | compare_ci (const charT *pS) const |
| int | compare_ci (size_type p0, size_type n0, const charT *pS, size_type pos) const |
| ASCString & | replaceAll (const ASCString &old, const ASCString &newString) |
| replaces all occurances of old with newString | |
| ASCString & | replaceAll_ci (const ASCString &old, const ASCString &newString) |
| replaces all occurances of old with newString ; case insensitive | |
| ASCString & | toLower () |
| ASCString & | toUpper () |
| ASCString & | format (const charT *pFormat,...) |
| ASCString & | vaformat (const charT *pFormat, va_list ap) |
| void | printf () |
| bool | endswith (const ASCString &s) const |
| Checks if the last characters of string are equal to s. | |
Static Public Member Functions | |
| static ASCString | toString (int i) |
| converts the parameter to a String | |
| static ASCString | toString (double d) |
| converts the parameter to a String | |
Related Functions | |
| (Note that these are not member functions.) | |
| ASCString | copytoLower (const ASCString &String) |
| ASCString | copytoUpper (const ASCString &String) |
Depending on the prepocessor definition _UNICODE, ASCString will use Unicode text or C-null terminated char array.
ASCString* pStr = new ASCString( "My string" ); ASCInheritedString* pInherited = ( ASCInheritedString* ) pStr; // pStr's destructor will not be called when deleting pInherited. // If ASCString has been modified to free memory in its destructor, // this memory will never be freed up. delete pInherited;
Definition at line 13 of file ascstring.h.
|
|
charT is an alias to ASCStringHelpers::charT, the character type used to represent strings internally. Definition at line 21 of file ascstring.h. |
|
|
NoncharT is an alias to ASCStringHelpers::NoncharT, the complementary character type used to convert strings not using charT types. Definition at line 29 of file ascstring.h. |
|
|
Construct an ASCString object. Definition at line 103 of file ascstring.h. |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 113 of file ascstring.h. |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 125 of file ascstring.h. |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 137 of file ascstring.h. |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 151 of file ascstring.h. |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 162 of file ascstring.h. |
|
||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 176 of file ascstring.h. |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 195 of file ascstring.h. References ASCStringHelpers::_ConvertToCharT(). |
|
||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 223 of file ascstring.h. References ASCStringHelpers::_ConvertToCharT(). |
|
||||||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Compare the range [ p0 , n0 ] of this ASCString with up to [ 0, pos ] elements of pS. Definition at line 335 of file ascstring.h. References ASCStringHelpers::_Stricmp(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Definition at line 325 of file ascstring.h. References ASCStringHelpers::_Stricmp(). |
|
||||||||||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Compare the range [ p0 , n0 ] of this ASCString with the range [ pos, n ] of ASCCharTString. Definition at line 315 of file ascstring.h. References ASCStringHelpers::_Stricmp(). |
|
||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Compare the range [ p0 , n0 ] of this ASCString with the whole ASCCharTString. Definition at line 304 of file ascstring.h. References ASCStringHelpers::_Stricmp(). |
|
|
Compare two strings, case insensitive.
Definition at line 294 of file ascstring.h. References ASCStringHelpers::_Stricmp(). Referenced by NamedIntProperty::operation_eq(), TagIntProperty::operation_eq(), TagArrayProperty::operation_eq(), BoolProperty::operation_eq(), ASCGUI_Window::parsePanelASCTXT(), and TextFormatParser::startLevel(). |
|
|
Checks if the last characters of string are equal to s.
Definition at line 146 of file ascstring.cpp. Referenced by FileTransfer::constructFileName(), and IconRepository::getIcon(). |
|
||||||||||||
|
|
Definition at line 280 of file ascstring.h. |
|
|
Assign a new value to an ASCString object.
Definition at line 273 of file ascstring.h. |
|
|
Definition at line 254 of file ascstring.h. Referenced by FileName::operator=(). |
|
|
Print this ASCString to the standard output stream.
See standard system documentation for more information on printf. Definition at line 137 of file ascstring.cpp. References ASCStringHelpers::_Printf(). |
|
||||||||||||
|
replaces all occurances of old with newString
Definition at line 231 of file ascstring.cpp. Referenced by FileTransfer::send(). |
|
||||||||||||
|
replaces all occurances of old with newString ; case insensitive
Definition at line 240 of file ascstring.cpp. References copytoLower(). Referenced by FileTransfer::send(). |
|
|
Convert this ASCString to lowercase.
Definition at line 36 of file ascstring.cpp. References ASCStringHelpers::_Strcpy(), and ASCStringHelpers::_Strlwr(). Referenced by copytoLower(), editTechAdapter(), TextPropertyGroup::Entry::Entry(), PropertyContainer::find(), PropertyContainer::Property::findEntry(), loadASCFieldImage(), ItemSelectorWidget::nameMatch(), TextFormatParser::parseLine(), TextPropertyGroup::processAlias(), TechAdapter::runTextIO(), PropertyContainer::Property::setName(), ASCGUI_Window::setup(), and TextFormatParser::startLevel(). |
|
|
converts the parameter to a String
Definition at line 210 of file ascstring.cpp. References format(). |
|
|
converts the parameter to a String
Definition at line 193 of file ascstring.cpp. References format(). Referenced by AllianceSetupWidget::AllianceSetupWidget(), tsearchreactionfireingunits::attack(), BuildingTypeCountWidget::BuildingTypeCountWidget(), BuildingTypeResourceWidget::BuildingTypeResourceWidget(), ChanceSettingsDialog::buildUpForm(), checkForUniqueUnitIDs(), ChooseTech::ChooseTech(), FileTransfer::constructFileName(), DashboardPanel::DashboardPanel(), ExperienceOverview::eventDraw(), EventEditor::EventEditor(), execaction_pg(), execuseraction2(), CGameOptions::Mouse::getButtonName(), SoundSystem::getDiagnosticText(), getDiplomaticStateImage(), WeatherAreaInformation::getInformation(), WindInformation::getInformation(), Player::getName(), CargoGuiFunctions::RecycleUnit::getName(), getnextfilenumname(), getPlayerStrength(), getProductionString(), getVisibilityStatistics(), WeapDist::getWeaponStrength(), InvalidID::InvalidID(), Maped_MainScreenWidget::Maped_MainScreenWidget(), DashboardPanel::painter(), AttackPanel::painter(), VisibilityLayer::paintSingleField(), ASCGUI_Window::parsePanelASCTXT(), PlayerColorPanel::PlayerColorPanel(), ObjectStorage< T >::print(), VehicleTypeRenderer::renderWidget(), ReplayRecorderDialog::ReplayRecorderDialog(), resourceAnalysis(), ObjectType::runTextIO(), Maped_MainScreenWidget::selectionChanged(), FileTransfer::send(), ASCGUI_Window::setLabelText(), Transferrable::show(), showCargoSummary(), showSDLInfo(), showtechnology(), DashboardPanel::showUnitData(), showUnitEndurance(), WeaponInfoPanel::showWeapon(), TechWidget::TechWidget(), VehicleCounterFactory::toString(), ASCImageArrayProperty::toString(), ResearchWindow::update(), BuildingControlWindow::update(), Maped_MainScreenWidget::updateStatusBar(), UnitInfoDialog::userHandler(), VehicleTypeCountWidget::VehicleTypeCountWidget(), VehicleTypeResourceWidget::VehicleTypeResourceWidget(), viewMiningPower(), viewterraininfo(), viewUnitSetinfo(), WeatherDialog::WeatherDialog(), and WindSpeedSettingsDialog::WindSpeedSettingsDialog(). |
|
|
Convert this ASCString to uppercase.
Definition at line 55 of file ascstring.cpp. References ASCStringHelpers::_Strcpy(), and ASCStringHelpers::_Strupr(). Referenced by copytoUpper(), and BuildingType::LocalCoordinate::LocalCoordinate(). |
|
||||||||||||
|
Definition at line 91 of file ascstring.cpp. References ASCStringHelpers::_Vsnprintf(). Referenced by displaymessage2(), fatalError(), format(), and MessagingHubBase::message(). |
|
|
Duplicate and convert to lowercase.
Definition at line 167 of file ascstring.cpp. References toLower(). Referenced by replaceAll_ci(). |
|
|
Duplicate and convert to uppercase.
Definition at line 185 of file ascstring.cpp. References toUpper(). |
1.4.2