xoreos
0.0.5
|
A class holding an UTF-8 string. More...
#include <ustring.h>
Classes | |
struct | iless |
struct | sless |
Public Types | |
typedef utf8::iterator< std::string::const_iterator > | iterator |
Public Member Functions | |
UString () | |
Construct an empty string. More... | |
UString (const UString &str) | |
Copy constructor. More... | |
UString (const std::string &str) | |
Construct UString from an UTF-8 string. More... | |
UString (const char *str) | |
Construct UString from an UTF-8 string. More... | |
UString (const char *str, size_t n) | |
Construct UString from the first n bytes of an UTF-8 string. More... | |
UString (uint32 c, size_t n=1) | |
Construct UString by creating n copies of Unicode codepoint c. More... | |
UString (iterator sBegin, iterator sEnd) | |
Construct UString by copying the characters between [sBegin,sEnd). More... | |
~UString () | |
UString & | operator= (const UString &str) |
UString & | operator= (const std::string &str) |
UString & | operator= (const char *str) |
bool | operator== (const UString &str) const |
bool | operator!= (const UString &str) const |
bool | operator< (const UString &str) const |
bool | operator> (const UString &str) const |
UString | operator+ (const UString &str) const |
UString | operator+ (const std::string &str) const |
UString | operator+ (const char *str) const |
UString | operator+ (uint32 c) const |
UString & | operator+= (const UString &str) |
UString & | operator+= (const std::string &str) |
UString & | operator+= (const char *str) |
UString & | operator+= (uint32 c) |
int | strcmp (const UString &str) const |
int | stricmp (const UString &str) const |
bool | equals (const UString &str) const |
bool | equalsIgnoreCase (const UString &str) const |
bool | less (const UString &str) const |
bool | lessIgnoreCase (const UString &str) const |
void | swap (UString &str) |
Swap the contents of the string with this string's. More... | |
void | clear () |
Clear the string's contents. More... | |
size_t | size () const |
Return the size of the string, in characters. More... | |
bool | empty () const |
Is the string empty? More... | |
const char * | c_str () const |
Return the (utf8 encoded) string data. More... | |
iterator | begin () const |
iterator | end () const |
iterator | findFirst (uint32 c) const |
iterator | findFirst (const UString &what) const |
iterator | findLast (uint32 c) const |
bool | beginsWith (const UString &with) const |
bool | endsWith (const UString &with) const |
bool | contains (const UString &what) const |
bool | contains (uint32 c) const |
void | truncate (const iterator &it) |
void | truncate (size_t n) |
void | trimLeft () |
void | trimRight () |
void | trim () |
void | replaceAll (uint32 what, uint32 with) |
Replace all occurrences of a character with another character. More... | |
void | replaceAll (const UString &what, const UString &with) |
Replace all occurrences of a substring with another substring. More... | |
void | makeLower () |
Convert the string to lowercase. More... | |
void | makeUpper () |
Convert the string to uppercase. More... | |
UString | toLower () const |
Return a lowercased copy of the string. More... | |
UString | toUpper () const |
Return an uppercased copy of the string. More... | |
iterator | getPosition (size_t n) const |
Convert a numerical position into an iterator. More... | |
size_t | getPosition (iterator it) const |
Convert an iterator into a numerical position. More... | |
void | insert (iterator pos, uint32 c) |
Insert character c in front of this position. More... | |
void | insert (iterator pos, const UString &str) |
Insert a string in front of this position. More... | |
void | replace (iterator pos, uint32 c) |
Replace the character at this position with c. More... | |
void | replace (iterator pos, const UString &str) |
Replace the characters at this position with str. More... | |
void | erase (iterator from, iterator to) |
Erase the character within this range. More... | |
void | erase (iterator pos) |
Erase the character at this position. More... | |
void | split (iterator splitPoint, UString &left, UString &right, bool remove=false) const |
UString | substr (iterator from, iterator to) const |
Static Public Member Functions | |
static UString | format (const char *s,...) GCC_PRINTF(1 |
Print formatted data into an UString object, similar to sprintf(). More... | |
static UString static size_t | split (const UString &text, uint32 delim, std::vector< UString > &texts) |
static void | splitTextTokens (const UString &text, std::vector< UString > &tokens) |
static uint32 | toLower (uint32 c) |
static uint32 | toUpper (uint32 c) |
static bool | isASCII (uint32 c) |
Is the character an ASCII character? More... | |
static bool | isSpace (uint32 c) |
Is the character an ASCII space character? More... | |
static bool | isDigit (uint32 c) |
Is the character an ASCII digit character? More... | |
static bool | isAlpha (uint32 c) |
Is the character an ASCII alphabetic character? More... | |
static bool | isAlNum (uint32 c) |
Is the character an ASCII alphanumeric character? More... | |
static bool | isCntrl (uint32 c) |
Is the character an ASCII control character? More... | |
static uint32 | fromUTF16 (uint16 c) |
Private Member Functions | |
void | recalculateSize () |
Private Attributes | |
std::string | _string |
Internal string holding the actual data. More... | |
size_t | _size |
A class holding an UTF-8 string.
WARNING: Copy constructors and assignment operators copying from std::string and const char * assume the data is either clean (non-extended) ASCII or already UTF-8.
typedef utf8::iterator<std::string::const_iterator> Common::UString::iterator |
Common::UString::UString | ( | ) |
Construct an empty string.
Definition at line 37 of file ustring.cpp.
Referenced by format(), and Common::operator+().
Common::UString::UString | ( | const UString & | str | ) |
Copy constructor.
Definition at line 40 of file ustring.cpp.
Common::UString::UString | ( | const std::string & | str | ) |
Construct UString from an UTF-8 string.
Definition at line 44 of file ustring.cpp.
Common::UString::UString | ( | const char * | str | ) |
Construct UString from an UTF-8 string.
Definition at line 48 of file ustring.cpp.
Common::UString::UString | ( | const char * | str, |
size_t | n | ||
) |
Construct UString from the first n bytes of an UTF-8 string.
Definition at line 52 of file ustring.cpp.
|
explicit |
Construct UString by creating n copies of Unicode codepoint c.
Definition at line 56 of file ustring.cpp.
Construct UString by copying the characters between [sBegin,sEnd).
Definition at line 61 of file ustring.cpp.
Common::UString::~UString | ( | ) |
Definition at line 66 of file ustring.cpp.
UString::iterator Common::UString::begin | ( | ) | const |
Definition at line 253 of file ustring.cpp.
References _string.
Referenced by Common::ReadLine::addCurrentLineToHistory(), Common::ReadLine::addInput(), beginsWith(), Graphics::Aurora::TTFFont::buildChars(), Engines::DragonAge::Functions::charToInt(), Engines::DragonAge2::Functions::charToInt(), Common::FoxPro::checkName(), Graphics::Aurora::convertToUTF32(), Graphics::Aurora::NFTRFont::convertToUTF32(), Engines::NWN2::createDisplayName(), Engines::NWN::Area::createDisplayName(), Common::ConfigManager::createGameID(), Graphics::Aurora::Text::drawLine(), Graphics::Aurora::Text::drawLineImmediate(), endsWith(), erase(), findFirst(), findLast(), Common::ReadLine::findLastWordStart(), Engines::ConsoleWindow::findWordStart(), Engines::KotOR::SaveLoadMenu::getBaseNameFromDirectory(), Graphics::Font::getLineWidth(), getPosition(), Engines::KotOR2::Functions::getStringLeft(), Engines::NWN::Functions::getStringLeft(), Engines::NWN2::Functions::getStringLeft(), Engines::KotOR::Functions::getStringLeft(), Engines::Witcher::Functions::getStringLeft(), Engines::Jade::Functions::getStringLeft(), insert(), Common::ConfigFile::isValidName(), Common::hashUStringCaseSensitive::operator()(), Common::hashUStringCaseInsensitive::operator()(), Graphics::Aurora::Text::parseColors(), Common::ConfigFile::parseConfigLine(), parseOption(), Common::ReadLine::processKeyDown(), replace(), split(), Engines::Console::splitArguments(), Common::splitDirectories(), splitTextTokens(), strcmp(), stricmp(), Engines::DragonAge2::Functions::stringLeft(), Engines::DragonAge::Functions::stringLeft(), substr(), toLower(), toUpper(), trim(), trimLeft(), trimRight(), and truncate().
bool Common::UString::beginsWith | ( | const UString & | with | ) | const |
Definition at line 295 of file ustring.cpp.
References begin(), empty(), and end().
Referenced by Engines::KotOR::PartySelectionGUI::callbackActive(), Engines::KotOR::MenuEquipment::callbackActive(), Engines::KotOR::DialogGUIBase::callbackActive(), Engines::NWN::CharSpells::fixWidgetType(), Engines::KotOR2::Creature::getPartModels(), Engines::KotOR::Creature::getPartModels(), Graphics::WindowManager::initRender(), Graphics::Aurora::Model_Witcher::load(), Engines::KotOR::Creature::loadPortrait(), Common::FilePath::relativize(), and Engines::WidgetListBox::selectItemByWidgetTag().
const char * Common::UString::c_str | ( | ) | const |
Return the (utf8 encoded) string data.
Definition at line 249 of file ustring.cpp.
References _string.
Referenced by Common::FilePath::absolutize(), Aurora::ActionScript::ASBuffer::actionDefineFunction(), Aurora::ActionScript::ASBuffer::actionDefineFunction2(), Aurora::ActionScript::ASBuffer::actionGetURL(), Aurora::ActionScript::ASBuffer::actionGetURL2(), Engines::Jade::Functions::actionStartConversation(), Engines::NWN::Functions::actionStartConversation(), Aurora::ERFWriter::add(), Graphics::Aurora::CursorManager::add(), Graphics::Aurora::FontManager::add(), Graphics::Aurora::TextureManager::add(), Common::FileList::addDirectory(), Common::ConfigFile::addDomain(), Common::ConfigFile::addDomainKey(), Engines::KotOR::SaveLoadMenu::addSavedGameItems(), Common::FileList::addSubDirectories(), Aurora::TalkManager::addTable(), Engines::GUI::addWidget(), Engines::DragonAge::Area::Area(), Engines::DragonAge2::Area::Area(), Aurora::LYTFile::assertTokenCount(), Engines::NWN::Functions::beginConversation(), Aurora::Lua::ScriptManager::beginRegisterClass(), Aurora::Lua::ScriptManager::beginRegisterNamespace(), Graphics::Shader::ShaderProgram::bindAttribute(), Aurora::NWScript::FunctionManager::call(), Aurora::NWScript::NCSFile::callEngine(), Aurora::Lua::ScriptManager::callFunction(), Common::FilePath::changeExtension(), Engines::Jade::Module::changeModule(), Engines::checkConfigDouble(), Engines::checkConfigInt(), Graphics::Aurora::ModelNode_NWN_Binary::checkDuplicateNode(), Aurora::ResourceManager::checkHashCollision(), Aurora::ResourceManager::checkResourceIsArchive(), Engines::Console::cmdDump2DA(), Engines::Console::cmdDumpAll2DA(), Engines::Console::cmdDumpRes(), Engines::Console::cmdDumpResList(), Engines::Console::cmdDumpTGA(), Engines::KotOR::Console::cmdGetPCRoom(), Engines::KotOR2::Console::cmdGetPCRoom(), Engines::NWN2::Console::cmdGotoArea(), Engines::Witcher::Console::cmdGotoArea(), Engines::NWN::Console::cmdGotoArea(), Engines::NWN2::Console::cmdListAreas(), Engines::Witcher::Console::cmdListAreas(), Engines::NWN::Console::cmdListAreas(), Engines::NWN2::Console::cmdListCampaigns(), Engines::KotOR::Console::cmdListModules(), Engines::KotOR2::Console::cmdListModules(), Engines::NWN2::Console::cmdListModules(), Engines::Witcher::Console::cmdListModules(), Engines::DragonAge::Console::cmdLoadArea(), Engines::DragonAge2::Console::cmdLoadArea(), Engines::DragonAge::Console::cmdLoadCampaign(), Engines::DragonAge2::Console::cmdLoadCampaign(), Engines::NWN2::Console::cmdLoadCampaign(), Engines::NWN::Console::cmdLoadCampaign(), Engines::Witcher::Console::cmdLoadCampaign(), Engines::Jade::Console::cmdLoadModule(), Engines::KotOR::Console::cmdLoadModule(), Engines::KotOR2::Console::cmdLoadModule(), Engines::NWN2::Console::cmdLoadModule(), Engines::NWN::Console::cmdLoadModule(), Engines::Witcher::Console::cmdLoadModule(), Engines::NWN::Creature::constructPartName(), Common::ConversionManager::convert(), Common::convertString(), Graphics::Aurora::Texture::create(), Common::FilePath::createDirectories(), Engines::Jade::Creature::createFakePC(), Engines::KotOR2::Creature::createFakePC(), Engines::DragonAge2::Creature::createFakePC(), Engines::DragonAge::Creature::createFakePC(), Engines::KotOR::Creature::createFakePC(), Graphics::Aurora::FontManager::createFont(), Common::ConfigManager::createGameID(), Engines::WidgetListBox::createItemWidgets(), Common::Thread::createThread(), Engines::KotOR::GUI::createWidget(), Engines::KotOR::Creature::Creature(), Common::DateTime::DateTime(), Common::debugTag(), Aurora::Lua::ScriptManager::declareClass(), Common::Thread::destroyThread(), Engines::Console::disableCommand(), displayUsage(), Aurora::ResourceManager::dumpResourcesList(), Engines::Console::enableCommand(), Engines::DragonAge::Placeable::enter(), Engines::DragonAge2::Placeable::enter(), Engines::Sonic::Placeable::enter(), Engines::DragonAge::Creature::enter(), Engines::DragonAge2::Creature::enter(), Engines::NWN2::Module::enter(), Engines::KotOR2::Module::enter(), Engines::Jade::Module::enter(), Engines::Witcher::Module::enter(), Engines::NWN::Module::enter(), Engines::KotOR::Module::enter(), Engines::Witcher::Module::enterArea(), Engines::NWN2::Module::enterArea(), Engines::NWN::Module::enterArea(), Engines::KotOR::Creature::equipItem(), Common::FilePath::escapeStringLiteral(), Aurora::NWScript::NCSFile::execute(), Engines::Console::execute(), Aurora::Lua::ScriptManager::executeFile(), Engines::Witcher::Functions::executeScript(), Engines::Jade::Functions::executeScript(), Engines::NWN::Functions::executeScript(), Engines::NWN2::Functions::executeScript(), Aurora::Lua::ScriptManager::executeString(), Aurora::FEVFile::FEVFile(), Engines::KotOR::MenuEquipment::fillEquipableItemsList(), Engines::KotOR::ContainerMenu::fillFromInventory(), Engines::KotOR::SavedGame::fillFromSAV(), Common::StringListMap::find(), Common::FileList::findFirstGlob(), Graphics::Aurora::Model_Sonic::findStackBones(), Common::FilePath::findSubDirectory(), Common::findSubDirectory_internal(), Engines::NWN::Functions::findSubString(), Engines::NWN2::Functions::findSubString(), Engines::DragonAge::Functions::findSubString(), Engines::DragonAge2::Functions::findSubString(), Sound::FMODSampleBank::FMODSampleBank(), Common::DateTime::formatDateISO(), Common::DateTime::formatDateTimeISO(), Common::DateTime::formatTimeISO(), Aurora::ActionScript::AVM::fsCommand(), Engines::NWN::Creature::getArmorModels(), Aurora::TextureAtlasFile::getAtlasTexture(), Aurora::Lua::TableRef::getBooleanAt(), Engines::NWN::GUI::getButton(), Engines::Jade::GUI::getButton(), Engines::KotOR::GUI::getButton(), Sound::SoundManager::getChannelPosition(), Engines::NWN::GUI::getCheckBox(), Engines::Jade::GUI::getCheckBox(), Engines::KotOR::GUI::getCheckBox(), Engines::NWN::GUI::getClose(), Common::ConfigManager::getDefaultKey(), Common::FilePath::getDirectory(), Engines::Witcher::Campaign::getDirectory(), Engines::NWN::GUI::getEditBox(), Aurora::Lua::TableRef::getExactTypeAt(), Common::FilePath::getExtension(), Common::FilePath::getFile(), Common::FilePath::getFileSize(), Sound::WwiseSoundBank::getFileStruct(), Aurora::Lua::TableRef::getFloatAt(), Engines::NWN::GUI::getFrame(), Aurora::Lua::TableRef::getFunctionAt(), Aurora::Lua::ScriptManager::getGlobalVariable(), Engines::KotOR::Item::getIcon(), Graphics::Aurora::FontManager::getIndexName(), Aurora::Lua::TableRef::getIntAt(), Engines::NWN::GUI::getLabel(), Engines::Jade::GUI::getLabel(), Engines::KotOR::GUI::getLabel(), Engines::NWN::GUI::getListBox(), Engines::Jade::GUI::getListBox(), Engines::KotOR::GUI::getListBox(), Engines::KotOR::Item::getModelName(), Aurora::NSBTXFile::getPalette(), Engines::NWN::GUI::getPanel(), Engines::Jade::GUI::getPanel(), Engines::KotOR::GUI::getPanel(), Engines::NWN::Creature::getPartModels(), Engines::NWN::Creature::getPCListInfo(), Engines::KotOR::PartySelectionGUI::getPortrait(), Engines::Jade::GUI::getProgressbar(), Engines::KotOR::GUI::getProgressbar(), Engines::Jade::GUI::getProtoItem(), Engines::KotOR::GUI::getProtoItem(), Aurora::Lua::Stack::getRawUserTypeAt(), Aurora::Lua::TableRef::getRawUserTypeAt(), Sound::FMODSampleBank::getSample(), Sound::FMODSampleBank::getSampleName(), Engines::NWN::GUI::getScrollbar(), Engines::Jade::GUI::getScrollbar(), Engines::KotOR::GUI::getScrollbar(), Graphics::Shader::ShaderManager::getShaderObject(), Engines::NWN::GUI::getSlider(), Engines::Jade::GUI::getSlider(), Engines::KotOR::GUI::getSlider(), Sound::WwiseSoundBank::getSoundData(), Sound::WwiseSoundBank::getSoundStruct(), Common::FilePath::getStem(), Aurora::Lua::TableRef::getStringAt(), Engines::KotOR2::Functions::getStringLeft(), Engines::NWN::Functions::getStringLeft(), Engines::NWN2::Functions::getStringLeft(), Engines::KotOR::Functions::getStringLeft(), Engines::Witcher::Functions::getStringLeft(), Engines::Jade::Functions::getStringLeft(), Engines::KotOR2::Functions::getStringRight(), Engines::NWN2::Functions::getStringRight(), Engines::NWN::Functions::getStringRight(), Engines::KotOR::Functions::getStringRight(), Engines::Witcher::Functions::getStringRight(), Engines::Jade::Functions::getStringRight(), Common::FilePath::getSubDirectories(), Common::FileList::getSubListGlob(), Engines::KotOR2::Functions::getSubString(), Engines::NWN::Functions::getSubString(), Engines::NWN2::Functions::getSubString(), Engines::KotOR::Functions::getSubString(), Engines::Witcher::Functions::getSubString(), Engines::Jade::Functions::getSubString(), Aurora::Lua::TableRef::getTableAt(), Aurora::Lua::TableRef::getTypeAt(), Aurora::NWScript::VariableContainer::getVariable(), Aurora::Lua::TableRef::getVariableAt(), Sound::XACTWaveBank_ASCII::getWave(), Sound::XACTWaveBank_Binary::getWave(), Engines::GUI::getWidget(), Aurora::ResourceManager::indexArchive(), Engines::indexMandatoryArchive(), Engines::indexMandatoryDirectory(), Engines::indexOptionalArchive(), Engines::indexOptionalDirectory(), Aurora::ResourceManager::indexResourceDir(), Aurora::ResourceManager::indexResourceFile(), Engines::NWN::CharPremadeMenu::initCharacterList(), Video::QuickTimeDecoder::VideoSampleDesc::initCodec(), Graphics::WindowManager::initWindow(), Engines::KotOR2::Functions::insertString(), Engines::NWN::Functions::insertString(), Engines::NWN2::Functions::insertString(), Engines::Witcher::Functions::insertString(), Engines::KotOR::Functions::insertString(), Engines::Jade::Functions::insertString(), Engines::DragonAge::Functions::insertString(), Engines::DragonAge2::Functions::insertString(), Common::FilePath::isAbsolute(), Video::QuickTimeDecoder::AudioSampleDesc::isAudioCodecSupported(), Common::FilePath::isDirectory(), Common::FilePath::isRegularFile(), Aurora::Lua::Stack::isUserTypeAt(), Engines::NWN::Functions::jumpTo(), Engines::NWN2::Functions::jumpTo(), Engines::Witcher::Functions::jumpTo(), Engines::Jade::Functions::jumpTo(), Aurora::TextureAtlasFile::load(), Engines::KotOR::Walkmesh::load(), Engines::KotOR::Trigger::load(), Engines::KotOR2::Trigger::load(), Video::Aurora::VideoPlayer::load(), Engines::Jade::Room::load(), Graphics::Aurora::Cursor::load(), Engines::KotOR::Room::load(), Sound::XACTWaveBank::load(), Engines::KotOR2::Room::load(), Common::ConfigManager::load(), Engines::NWN::GUI::load(), Engines::Jade::Placeable::load(), Engines::Jade::Trigger::load(), Graphics::Aurora::Model_Jade::load(), Graphics::Aurora::ModelNode_Witcher::load(), Engines::Jade::Creature::load(), Graphics::Aurora::ABCFont::load(), Engines::KotOR2::Placeable::load(), Engines::Jade::GUI::load(), Engines::KotOR::GUI::load(), Graphics::Aurora::ModelNode_DragonAge::load(), Graphics::Aurora::ModelNode_Jade::load(), Engines::KotOR::Placeable::load(), Graphics::Aurora::ModelNode_NWN_Binary::load(), Engines::KotOR::Door::load(), Engines::KotOR2::Door::load(), Engines::KotOR2::Situated::load(), Engines::KotOR::Situated::load(), Sound::WwiseSoundBank::load(), Graphics::Aurora::ModelNode_NWN_ASCII::load(), Engines::KotOR2::Creature::load(), Graphics::TXI::load(), Common::ConfigFile::load(), Sound::ASFStream::load(), Engines::DragonAge::Campaign::load(), Engines::DragonAge2::Campaign::load(), Engines::KotOR::Creature::load(), Aurora::TwoDARegistry::load2DA(), Engines::KotOR2::Door::loadAppearance(), Engines::KotOR::Door::loadAppearance(), Engines::Jade::Placeable::loadAppearance(), Engines::KotOR2::Creature::loadAppearance(), Engines::KotOR::Creature::loadAppearance(), Engines::DragonAge::Campaign::loadArea(), Engines::DragonAge2::Campaign::loadArea(), Engines::Witcher::Area::loadAreaModel(), Engines::NWN2::Creature::loadArmorModel(), Engines::Jade::AreaLayout::loadART(), Graphics::Aurora::Model_NWN::loadASCII(), Graphics::Aurora::Model_NWN::loadBinary(), Engines::DragonAge2::Campaigns::loadCampaign(), Engines::DragonAge::Campaigns::loadCampaign(), Engines::Witcher::Campaign::loadCampaignFile(), Engines::NWN2::Campaign::loadCampaignResource(), Engines::NWN2::Creature::loadCharacter(), Engines::NWN::Creature::loadCharacter(), Aurora::TwoDARegistry::loadGDA(), Engines::NWN2::Creature::loadHairModel(), Aurora::GFF4File::loadHeader(), Engines::NWN2::Creature::loadHeadModel(), Graphics::Aurora::Texture::loadImage(), Engines::DragonAge::Room::loadLayout(), Engines::DragonAge2::Room::loadLayout(), Engines::Jade::AreaLayout::loadLYT(), Engines::KotOR2::Area::loadLYT(), Engines::KotOR::Area::loadLYT(), Aurora::TwoDARegistry::loadMGDA(), Engines::Sonic::AreaMiniMap::loadMiniMap(), Engines::NWN2::Situated::loadModel(), Engines::NWN::Situated::loadModel(), Engines::Witcher::Situated::loadModel(), Engines::NWN2::Creature::loadModel(), Engines::NWN::Item::loadModel(), Engines::NWN::Creature::loadModel(), Engines::loadModelGUI(), Engines::loadModelObject(), Engines::Jade::Module::loadModule(), Engines::Witcher::Module::loadModule(), Engines::NWN2::Module::loadModule(), Engines::KotOR2::Module::loadModule(), Engines::NWN::Module::loadModule(), Engines::KotOR::Module::loadModule(), Engines::Sonic::loadNCGR(), Engines::NWN2::TRXFile::loadPacket(), Engines::Jade::Placeable::loadProperties(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Engines::NWN2::Object::loadSSF(), Engines::NWN::Object::loadSSF(), Engines::Sonic::AreaBackground::loadTexture(), Engines::NWN::Tileset::loadTile(), Engines::NWN2::Area::loadTile(), Engines::NWN::Area::loadTiles(), Engines::NWN::Area::loadTileset(), Graphics::Aurora::Texture::loadTXI(), Engines::Jade::AreaLayout::loadVIS(), Engines::KotOR2::Area::loadVIS(), Engines::KotOR::Area::loadVIS(), Engines::DragonAge::Functions::logTrace(), Engines::DragonAge2::Functions::logTrace(), main(), Engines::NWN::CharSpells::makeSpellsList(), Engines::NWN::ModelWidget::ModelWidget(), Aurora::NWScript::NCSFile::NCSFile(), Graphics::Aurora::NFTRFont::NFTRFont(), Common::FilePath::normalize(), Aurora::NWScript::NCSFile::o_action(), Common::ReadFile::open(), Common::Platform::openFile(), Engines::Witcher::Campaign::openMMD(), Graphics::Aurora::Model_Sonic::parseBoneCommands(), parseCommandline(), parseOption(), Graphics::Aurora::Model_Witcher::ParserContext::ParserContext(), Graphics::Aurora::Model_KotOR::ParserContext::ParserContext(), Graphics::Aurora::Model_NWN2::ParserContext::ParserContext(), Graphics::Aurora::Model_NWN::ParserContext::ParserContext(), Graphics::Aurora::Model_DragonAge::ParserContext::ParserContext(), Graphics::Aurora::Model_Jade::ParserContext::ParserContext(), Graphics::Aurora::Model_Sonic::ParserContext::ParserContext(), Graphics::Shader::ShaderManager::parseShaderVariables(), Common::parseString(), Graphics::parseTXICommand(), Aurora::IFOFile::parseVersion(), Engines::Jade::Object::playAnimation(), Engines::NWN::Object::playAnimation(), Engines::NWN::Functions::playAnimation(), Engines::NWN::Creature::playAnimation(), Engines::playSound(), Engines::playVideo(), Aurora::NWScript::NCSStack::print(), Common::printException(), Engines::Console::printException(), Engines::Witcher::Functions::printObject(), Engines::DragonAge2::Functions::printToLog(), Engines::DragonAge::Functions::printToLog(), Engines::DragonAge2::Functions::printToLogAndFlush(), Engines::DragonAge::Functions::printToLogAndFlush(), Engines::Witcher::Functions::printVector(), Aurora::Lua::Stack::pushRawUserType(), Aurora::Lua::Stack::pushString(), Aurora::Lua::Stack::pushVariable(), Graphics::Aurora::Model_KotOR::readAnim(), Graphics::Aurora::Model_NWN::readAnimBinary(), Common::ReadFile::ReadFile(), Engines::DragonAge::Campaign::readManifest(), Engines::DragonAge2::Campaign::readManifest(), Graphics::Aurora::ModelNode_DragonAge::readMAO(), Graphics::Aurora::ModelNode_DragonAge::readMAOXML(), Graphics::Aurora::ModelNode_Jade::readMaterialTextures(), Graphics::CBGT::readPaletteIndices(), Engines::NWN2::Object::readVarTable(), Sound::CodebookLibrary::rebuild(), Engines::NWN::Tooltip::redoBubble(), Engines::KotOR::DialogGUIBase::refresh(), Aurora::Lua::ScriptManager::registerConstant(), Aurora::ResourceManager::registerDataBase(), Aurora::NWScript::FunctionManager::registerFunction(), Aurora::Lua::ScriptManager::registerFunction(), Aurora::Lua::ScriptManager::registerVariable(), Graphics::Aurora::Texture::reload(), Aurora::Lua::TableRef::removeAt(), Aurora::Lua::ScriptManager::requireDeclaredClass(), Engines::resolveLangInvalid(), Engines::resolveLangUnavailable(), Aurora::NWScript::NCSFile::run(), Engines::KotOR2::ScriptContainer::runScript(), Engines::NWN2::ScriptContainer::runScript(), Engines::Jade::ScriptContainer::runScript(), Engines::NWN::ScriptContainer::runScript(), Engines::Witcher::ScriptContainer::runScript(), Engines::KotOR::ScriptContainer::runScript(), Engines::DragonAge::ScriptContainer::runScript(), Engines::DragonAge2::ScriptContainer::runScript(), Aurora::DLGFile::runScript(), Common::ConfigManager::save(), Common::FoxPro::saveFields(), Engines::KotOR2::Functions::sendMessageToPC(), Engines::NWN2::Functions::sendMessageToPC(), Engines::NWN::Functions::sendMessageToPC(), Engines::Witcher::Functions::sendMessageToPC(), Engines::KotOR::Functions::sendMessageToPC(), Engines::Jade::Functions::sendMessageToPC(), Sound::SoundManager::setChannelPosition(), setOption(), Engines::ConsoleWindow::setRedirect(), Common::FoxPro::setString(), Engines::Witcher::Campaign::setupStandaloneModule(), Aurora::Lua::TableRef::setVariableAt(), Graphics::WindowManager::setWindowTitle(), Engines::KotOR::SoundObject::SoundObject(), Engines::Witcher::Object::speakOneLiner(), Engines::NWN2::Object::speakOneLiner(), Engines::NWN::Object::speakOneLiner(), Aurora::SSFFile::SSFFile(), Engines::KotOR::DialogGUIBase::startConversation(), Engines::NWN::IngameGUI::startConversation(), Engines::NWN::Functions::startNewModule(), Engines::LoadProgress::step(), Engines::DragonAge::Functions::stringLeft(), Engines::DragonAge2::Functions::stringLeft(), Engines::DragonAge::Functions::stringRight(), Engines::DragonAge2::Functions::stringRight(), Engines::NWN2::Functions::stringToFloat(), Engines::KotOR2::Functions::stringToFloat(), Engines::NWN::Functions::stringToFloat(), Engines::KotOR::Functions::stringToFloat(), Engines::Witcher::Functions::stringToFloat(), Engines::Jade::Functions::stringToFloat(), Engines::DragonAge::Functions::stringToFloat(), Engines::DragonAge2::Functions::stringToFloat(), Engines::NWN::Functions::stringToInt(), Engines::KotOR2::Functions::stringToInt(), Engines::NWN2::Functions::stringToInt(), Engines::KotOR::Functions::stringToInt(), Engines::Witcher::Functions::stringToInt(), Engines::DragonAge2::Functions::stringToInt(), Engines::DragonAge::Functions::stringToInt(), Engines::Jade::Functions::stringToInt(), Engines::DragonAge::Functions::stringToVector(), Engines::DragonAge2::Functions::stringToVector(), Engines::DragonAge::Functions::subString(), Engines::DragonAge2::Functions::subString(), Graphics::takeScreenshot(), Engines::NWN::Tileset::Tileset(), Engines::NWN2::TRXFile::TRXFile(), Engines::Jade::GUIBackground::tryBackground(), Engines::KotOR::GUIBackground::tryBackground(), Engines::KotOR::SaveLoadMenu::tryLoadGame(), Graphics::Aurora::TTFFont::TTFFont(), Graphics::Aurora::ModelNode_Jade::unfoldFaces(), Engines::Witcher::unimplementedFunction(), Engines::DragonAge::Functions::unimplementedFunction(), Engines::DragonAge2::Functions::unimplementedFunction(), Engines::NWN::Functions::unimplementedFunction(), Engines::Witcher::Functions::unimplementedFunction(), Engines::KotOR2::Functions::unimplementedFunction(), Engines::NWN2::Functions::unimplementedFunction(), Engines::KotOR::Functions::unimplementedFunction(), Engines::Jade::Functions::unimplementedFunction(), Engines::Witcher::unimplementedVariable(), Engines::NWN::PartyLeader::updatePortraitTooltip(), Engines::NWN::OptionsFeedbackMenu::updateTooltipDelay(), Engines::NWN2::Campaign::usePC(), Engines::Witcher::Campaign::usePC(), Engines::NWN::Module::usePC(), Aurora::GFF3Writer::write(), Aurora::TwoDAFile::writeASCII(), Common::WriteFile::WriteFile(), Common::WriteStream::writeString(), Engines::KotOR2::Functions::writeTimestampedLogEntry(), Engines::NWN2::Functions::writeTimestampedLogEntry(), Engines::NWN::Functions::writeTimestampedLogEntry(), Engines::KotOR::Functions::writeTimestampedLogEntry(), Engines::Witcher::Functions::writeTimestampedLogEntry(), Engines::Jade::Functions::writeTimestampedLogEntry(), Sound::WwiseSoundBank::WwiseSoundBank(), and Common::XMLParser::XMLParser().
void Common::UString::clear | ( | ) |
Clear the string's contents.
Definition at line 236 of file ustring.cpp.
References _size, and _string.
Referenced by Common::ReadLine::addCurrentLineToHistory(), Graphics::Aurora::CursorManager::clear(), Aurora::LYTFile::clear(), Common::ConfigFile::clear(), Aurora::IFOFile::clear(), Engines::NWN::DialogBox::clearEntry(), Aurora::ResourceManager::clearResources(), Engines::DragonAge::ScriptContainer::clearScript(), Engines::DragonAge2::ScriptContainer::clearScript(), Engines::NWN::Creature::constructPartName(), Engines::KotORJadeWidget::createText(), Engines::NWN::Functions::get2DAString(), Engines::NWN2::Functions::get2DAString(), Engines::Witcher::Functions::get2DAString(), Engines::NWN::Creature::getPCListInfo(), Aurora::SSFFile::getSound(), Engines::KotOR2::Functions::getStringLeft(), Engines::NWN::Functions::getStringLeft(), Engines::NWN2::Functions::getStringLeft(), Engines::Witcher::Functions::getStringLeft(), Engines::KotOR::Functions::getStringLeft(), Engines::Jade::Functions::getStringLeft(), Engines::KotOR2::Functions::getStringRight(), Engines::NWN::Functions::getStringRight(), Engines::NWN2::Functions::getStringRight(), Engines::Witcher::Functions::getStringRight(), Engines::KotOR::Functions::getStringRight(), Engines::Jade::Functions::getStringRight(), Engines::KotOR2::Functions::getSubString(), Engines::NWN::Functions::getSubString(), Engines::NWN2::Functions::getSubString(), Engines::Witcher::Functions::getSubString(), Engines::KotOR::Functions::getSubString(), Engines::Jade::Functions::getSubString(), Engines::Witcher::Functions::getTag(), Engines::NWN::Functions::getTag(), Engines::Jade::Functions::getTag(), Engines::NWN2::Functions::getTag(), Engines::DragonAge::Functions::getTag(), Engines::DragonAge2::Functions::getTag(), Aurora::GFF4Struct::getTalkString(), Graphics::Shader::ShaderManager::init(), Engines::KotOR2::Functions::insertString(), Engines::NWN::Functions::insertString(), Engines::NWN2::Functions::insertString(), Engines::Witcher::Functions::insertString(), Engines::KotOR::Functions::insertString(), Engines::Jade::Functions::insertString(), Engines::DragonAge::Functions::insertString(), Engines::DragonAge2::Functions::insertString(), Common::ConfigFile::load(), Engines::NWN2::Door::loadAppearance(), Engines::NWN2::Placeable::loadAppearance(), Engines::NWN::Door::loadAppearance(), Engines::Jade::Module::loadModule(), Engines::Witcher::Module::loadModule(), Engines::NWN2::Module::loadModule(), Engines::KotOR2::Module::loadModule(), Engines::NWN::Module::loadModule(), Engines::KotOR::Module::loadModule(), main(), Engines::NWN2::Module::movedPC(), Engines::Witcher::Module::movedPC(), Engines::NWN::Module::movedPC(), Engines::ConsoleWindow::openLogFile(), Graphics::Aurora::Text::parseColors(), parseCommandline(), Engines::KotOR::DialogGUIBase::pickReply(), Common::ReadLine::processEvent(), Graphics::Aurora::ModelNode_Witcher::readMesh(), Engines::DragonAge::Campaigns::replaceCampaign(), Engines::DragonAge2::Campaigns::replaceCampaign(), Graphics::Aurora::CursorManager::reset(), setOption(), Graphics::Font::split(), split(), Common::splitDirectories(), splitTextTokens(), Engines::DragonAge2::Functions::stringLeft(), Engines::DragonAge::Functions::stringLeft(), Engines::DragonAge::Functions::stringRight(), Engines::DragonAge2::Functions::stringRight(), Engines::DragonAge::Functions::subString(), Engines::DragonAge2::Functions::subString(), Engines::DragonAge2::Campaigns::unload(), Engines::NWN2::Campaign::unload(), Engines::DragonAge::Campaigns::unload(), Engines::Witcher::Campaign::unload(), Engines::Jade::Module::unload(), Engines::KotOR2::Module::unload(), Engines::KotOR::Module::unload(), Engines::NWN2::Module::unloadAreas(), Engines::Witcher::Module::unloadAreas(), Engines::NWN::Module::unloadAreas(), Engines::NWN2::Module::unloadModule(), Engines::Witcher::Module::unloadModule(), and Engines::NWN::Module::unloadModule().
bool Common::UString::contains | ( | const UString & | what | ) | const |
Definition at line 335 of file ustring.cpp.
References _string.
Referenced by Engines::KotOR::SaveLoadMenu::addSavedGameItems(), Engines::KotOR::SaveLoadMenu::getBaseNameFromDirectory(), Engines::KotOR2::HUD::initWidget(), Engines::KotOR::HUD::initWidget(), and Engines::KotOR::Module::loadModule().
bool Common::UString::contains | ( | uint32 | c | ) | const |
Definition at line 339 of file ustring.cpp.
References end(), and findFirst().
bool Common::UString::empty | ( | ) | const |
Is the string empty?
Definition at line 245 of file ustring.cpp.
References _string.
Referenced by Aurora::ActionScript::ASBuffer::actionCallMethod(), Engines::Witcher::Functions::actionDoCommand(), Engines::Jade::Functions::actionDoCommand(), Engines::NWN::Functions::actionDoCommand(), Engines::NWN2::Functions::actionDoCommand(), Engines::Jade::Functions::actionStartConversation(), Engines::NWN::Functions::actionStartConversation(), Graphics::Aurora::TextureManager::add(), Engines::DragonAge::Campaigns::addCampaign(), Engines::DragonAge2::Campaigns::addCampaign(), Common::ReadLine::addCurrentLineToHistory(), Common::ConfigFile::addDomainKey(), Engines::KotOR::Inventory::addItem(), Engines::NWN::Tooltip::addLine(), Engines::GUI::addWidget(), Engines::KotOR2::Functions::assignCommand(), Engines::KotOR::Functions::assignCommand(), Engines::Witcher::Functions::assignCommand(), Engines::Jade::Functions::assignCommand(), Engines::NWN::Functions::assignCommand(), Engines::NWN2::Functions::assignCommand(), Engines::NWN::Functions::beginConversation(), Aurora::Lua::ScriptManager::beginRegisterClass(), Aurora::Lua::ScriptManager::beginRegisterNamespace(), beginsWith(), Graphics::Aurora::ModelNode_Witcher::buildMaterial(), Graphics::Aurora::ModelNode::buildMaterial(), Aurora::NWScript::FunctionManager::call(), Engines::KotOR::CharacterGenerationNameMenu::callbackKeyInput(), Engines::KotOR2::CharacterGenerationNameMenu::callbackKeyInput(), Aurora::Lua::ScriptManager::callFunction(), Engines::DragonAge::Functions::charToInt(), Engines::DragonAge2::Functions::charToInt(), Aurora::ResourceManager::checkHashCollision(), Aurora::ResourceManager::checkResourceIsArchive(), Engines::NWN::DialogBox::clearEntry(), Engines::KotOR::Door::click(), Engines::KotOR2::Door::click(), Engines::Witcher::Door::click(), Engines::KotOR2::Module::clickObject(), Engines::KotOR::Module::clickObject(), Engines::KotOR::Console::cmdAddItem(), Engines::Console::cmdDump2DA(), Engines::Console::cmdDumpRes(), Engines::Console::cmdDumpResList(), Engines::Console::cmdDumpTGA(), Engines::Console::cmdGetString(), Engines::Sonic::Console::cmdGotoArea(), Engines::NWN2::Console::cmdGotoArea(), Engines::Witcher::Console::cmdGotoArea(), Engines::NWN::Console::cmdGotoArea(), Engines::Console::cmdHelp(), Engines::NWN2::Console::cmdListModules(), Engines::Witcher::Console::cmdListModules(), Engines::KotOR::Console::cmdListRoomsVisibleFrom(), Engines::KotOR2::Console::cmdListRoomsVisibleFrom(), Engines::DragonAge::Console::cmdLoadArea(), Engines::DragonAge2::Console::cmdLoadArea(), Engines::DragonAge::Console::cmdLoadCampaign(), Engines::DragonAge2::Console::cmdLoadCampaign(), Engines::NWN2::Console::cmdLoadCampaign(), Engines::NWN::Console::cmdLoadCampaign(), Engines::Witcher::Console::cmdLoadCampaign(), Engines::Jade::Console::cmdLoadModule(), Engines::KotOR::Console::cmdLoadModule(), Engines::KotOR2::Console::cmdLoadModule(), Engines::NWN2::Console::cmdLoadModule(), Engines::NWN::Console::cmdLoadModule(), Engines::Witcher::Console::cmdLoadModule(), Engines::KotOR::Console::cmdPlayAnim(), Engines::KotOR2::Console::cmdPlayAnim(), Engines::Console::cmdPlaySound(), Engines::Console::cmdPlayVideo(), Engines::Console::cmdShowFPS(), Engines::NWN::Creature::constructModelName(), Common::FileList::contains(), Common::FileList::containsGlob(), Graphics::Aurora::convertToUTF32(), Graphics::Aurora::NFTRFont::convertToUTF32(), Common::ConfigManager::createGame(), Common::ConfigManager::createGameID(), Graphics::Aurora::Model_Sonic::createGeometry(), Engines::DragonAge::Creature::createModelPart(), Engines::DragonAge2::Creature::createModelPart(), Engines::DragonAge::Creature::createModelPrefix(), Engines::DragonAge2::Creature::createModelPrefix(), Common::Thread::createThread(), Graphics::Aurora::ModelNode_NWN2::createTint(), Aurora::Lua::ScriptManager::declareClass(), Engines::KotOR2::Functions::delayCommand(), Engines::KotOR::Functions::delayCommand(), Engines::Witcher::Functions::delayCommand(), Engines::Jade::Functions::delayCommand(), Engines::NWN::Functions::delayCommand(), Engines::NWN2::Functions::delayCommand(), Engines::KotOR2::KotOR2Engine::detectLanguages(), Engines::KotOR::KotOREngine::detectLanguages(), Engines::NWN2::NWN2Engine::detectLanguages(), Engines::Sonic::SonicEngine::detectLanguages(), Engines::DragonAge2::DragonAge2Engine::detectLanguages(), Engines::DragonAge::DragonAgeEngine::detectLanguages(), Engines::NWN::NWNEngine::detectLanguages(), Engines::Witcher::WitcherEngine::detectLanguages(), Engines::KotOR::Version::detectMacOSX(), Engines::NWN::Version::detectMacOSX(), Engines::dump2DA(), Engines::dumpResource(), Engines::dumpTGA(), Aurora::LocString::empty(), Graphics::Aurora::Text::empty(), Aurora::TwoDARow::empty(), Engines::NWN::Functions::endGame(), endsWith(), Engines::WidgetProtoItem::enter(), Engines::NWN2::Module::enter(), Engines::KotOR2::Module::enter(), Engines::Witcher::Module::enter(), Engines::NWN::Module::enter(), Engines::KotOR::Module::enter(), Engines::Witcher::Module::enterArea(), Engines::NWN2::Module::enterArea(), Engines::NWN::Module::enterArea(), Engines::KotOR::Creature::equipItem(), Engines::Engine::evaluateLanguage(), Engines::NWN2::Door::evaluateLink(), Engines::NWN::Door::evaluateLink(), Engines::Console::execute(), Engines::KotOR::MenuEquipment::fillEquipedItems(), Engines::Jade::findAndroidVOLanguageDir(), Common::ConfigManager::findGame(), findLast(), Graphics::Aurora::Model_NWN::ParserContext::findNode(), Common::FilePath::findSubDirectory(), Engines::NWN::Functions::get2DAString(), Engines::NWN2::Functions::get2DAString(), Engines::Witcher::Functions::get2DAString(), Engines::NWN2::Game::getCampaigns(), Engines::Witcher::Game::getCampaigns(), Engines::NWN2::Game::getCharacters(), Engines::NWN::Game::getCharacters(), Engines::NWN::Creature::getClassString(), Common::Platform::getConfigDirectory(), Common::ConfigManager::getConfigFile(), Aurora::ResourceManager::getDataBase(), Engines::NWN::Module::getDescription(), Aurora::TwoDARow::getFloat(), Aurora::TwoDARow::getInt(), Engines::DragonAge2::Creature::getItemModel(), Graphics::Aurora::ModelNode::getMesh(), Engines::KotOR2::Game::getModules(), Engines::KotOR::Game::getModules(), Engines::NWN::Game::getModules(), Engines::Witcher::Game::getModules(), Engines::DragonAge::Area::getName(), Engines::DragonAge2::Area::getName(), Engines::NWN2::Area::getName(), Engines::NWN::Area::getName(), Engines::DragonAge::Functions::getName(), Engines::DragonAge2::Functions::getName(), Engines::Witcher::Functions::getNearestObjectByTag(), Engines::NWN::Functions::getNearestObjectByTag(), Engines::NWN2::Functions::getNearestObjectByTag(), Engines::DragonAge::Functions::getNearestObjectByTag(), Engines::DragonAge2::Functions::getNearestObjectByTag(), Engines::Witcher::Functions::getObjectByTag(), Engines::NWN::Functions::getObjectByTag(), Engines::Jade::Functions::getObjectByTag(), Engines::NWN2::Functions::getObjectByTag(), Engines::DragonAge::Functions::getObjectByTag(), Engines::DragonAge2::Functions::getObjectByTag(), Engines::NWN::Dialog::getSpeaker(), Aurora::TwoDARow::getString(), Common::StreamTokenizer::getTokens(), Common::Platform::getUserDataDirectory(), Engines::Witcher::Functions::getWaypointByTag(), Engines::NWN::Functions::getWaypointByTag(), Engines::Jade::Functions::getWaypointByTag(), Engines::NWN2::Functions::getWaypointByTag(), Graphics::Aurora::GUIQuad::GUIQuad(), Aurora::ResourceManager::hasResourceDir(), Engines::Jade::ScriptContainer::hasScript(), Engines::KotOR::ScriptContainer::hasScript(), Engines::KotOR2::ScriptContainer::hasScript(), Engines::NWN::ScriptContainer::hasScript(), Engines::NWN2::ScriptContainer::hasScript(), Engines::Witcher::ScriptContainer::hasScript(), Engines::DragonAge::ScriptContainer::hasScript(), Engines::DragonAge2::ScriptContainer::hasScript(), Aurora::ResourceManager::indexResourceDir(), Aurora::ResourceManager::indexResourceFile(), Engines::Jade::JadeEngine::initResources(), Engines::NWN::OKCancelDialog::initWidget(), Engines::NWN::YesNoCancelDialog::initWidget(), Engines::Witcher::Module::isRunning(), Engines::NWN2::Module::isRunning(), Engines::NWN::Module::isRunning(), Aurora::Lua::Stack::isUserTypeAt(), Aurora::Lua::TableRef::isUserTypeAt(), Engines::WidgetScrollbar::load(), Engines::WidgetCheckBox::load(), Engines::KotOR::Trigger::load(), Engines::KotOR2::Trigger::load(), Engines::KotORJadeWidget::load(), Engines::KotOR::Waypoint::load(), Engines::KotOR2::Waypoint::load(), Engines::NWN2::Waypoint::load(), Engines::NWN::Waypoint::load(), Engines::Witcher::Waypoint::load(), Engines::DragonAge::Placeable::load(), Engines::DragonAge2::Placeable::load(), Common::ZipFile::load(), Aurora::IFOFile::load(), Engines::Jade::Placeable::load(), Engines::Jade::Trigger::load(), Engines::Sonic::Placeable::load(), Engines::Jade::Creature::load(), Engines::Witcher::Door::load(), Engines::Witcher::Placeable::load(), Engines::KotOR2::Placeable::load(), Engines::NWN2::Placeable::load(), Engines::KotOR::Placeable::load(), Engines::NWN::Item::load(), Engines::NWN::Placeable::load(), Engines::KotOR::Door::load(), Engines::KotOR2::Door::load(), Engines::KotOR2::Situated::load(), Engines::NWN2::Door::load(), Engines::KotOR::Situated::load(), Engines::NWN::Door::load(), Graphics::Aurora::ModelNode_NWN_ASCII::load(), Engines::KotOR2::Creature::load(), Graphics::TXI::load(), Common::ConfigFile::load(), Engines::KotOR::Creature::load(), Engines::NWN2::Creature::load(), Engines::NWN::Creature::load(), Engines::NWN2::Placeable::loadAppearance(), Engines::Jade::Placeable::loadAppearance(), Engines::NWN::Door::loadAppearance(), Engines::NWN2::Door::loadAppearance(), Engines::KotOR2::Creature::loadAppearance(), Engines::KotOR::Creature::loadAppearance(), Engines::NWN::Area::loadARE(), Engines::NWN2::Area::loadARE(), Engines::DragonAge::Campaign::loadArea(), Engines::DragonAge2::Campaign::loadArea(), Engines::Witcher::Area::loadAreaModel(), Graphics::Aurora::Model_NWN::loadASCII(), Engines::Witcher::Campaign::loadCampaignFile(), Engines::NWN2::Campaign::loadCampaignResource(), Engines::KotOR::PartySelectionGUI::loadConfiguration(), Engines::Sonic::Area::loadDefinition(), Engines::DragonAge::Area::loadEnvironment(), Engines::DragonAge2::Area::loadEnvironment(), Engines::NWN2::Creature::loadHairModel(), Engines::KotOR2::Creature::loadHead(), Engines::KotOR::Creature::loadHead(), Engines::NWN2::Creature::loadHeadModel(), Engines::Jade::Placeable::loadInstance(), Aurora::TwoDARegistry::loadMGDA(), Engines::Sonic::Area::loadMiniMap(), Engines::NWN::Situated::loadModel(), Engines::NWN2::Situated::loadModel(), Engines::Witcher::Situated::loadModel(), Engines::NWN2::Creature::loadModel(), Engines::NWN::Item::loadModel(), Engines::NWN::Creature::loadModel(), Engines::loadModelGUI(), Engines::loadModelObject(), Engines::DragonAge2::Creature::loadModelsHead(), Engines::DragonAge::Creature::loadModelsHead(), Engines::DragonAge2::Creature::loadModelsParts(), Engines::DragonAge::Creature::loadModelsParts(), Engines::Witcher::Module::loadModule(), Engines::NWN2::Module::loadModule(), Engines::NWN::Module::loadModule(), Engines::NWN::Situated::loadPortrait(), Engines::NWN::Item::loadPortrait(), Engines::KotOR2::Situated::loadPortrait(), Engines::KotOR::Situated::loadPortrait(), Engines::KotOR2::Creature::loadPortrait(), Engines::KotOR::Creature::loadPortrait(), Engines::NWN::Creature::loadPortrait(), Engines::DragonAge::Campaign::loadResources(), Engines::DragonAge2::Campaign::loadResources(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Engines::NWN2::Object::loadSSF(), Engines::NWN::Object::loadSSF(), Graphics::Aurora::Model_KotOR::loadSuperModel(), Graphics::Aurora::Model_NWN::loadSuperModel(), Aurora::loadTable(), Graphics::Aurora::ModelNode::loadTextures(), Engines::NWN::Area::loadTileset(), Engines::NWN2::Module::loadTLK(), Engines::NWN::Module::loadTLK(), Common::DebugManager::logString(), main(), Engines::WidgetProtoItem::mouseUp(), Engines::Witcher::Module::movePC(), Engines::KotOR2::Module::movePC(), Engines::Jade::Module::movePC(), Engines::KotOR::Module::movePC(), Common::WriteFile::open(), Engines::ConsoleWindow::openLogFile(), parseCommandline(), Common::ConfigFile::parseConfigLine(), Aurora::TwoDAFile::parseFloat(), Aurora::TwoDAFile::parseInt(), Aurora::LanguageManager::parseLanguage(), parseOption(), Common::parseString(), Engines::KotOR::DialogGUIBase::pickReply(), Engines::KotOR2::Area::playAmbientMusic(), Engines::Witcher::Area::playAmbientMusic(), Engines::NWN2::Area::playAmbientMusic(), Engines::NWN::Area::playAmbientMusic(), Engines::KotOR::Area::playAmbientMusic(), Engines::KotOR2::Area::playAmbientSound(), Engines::NWN2::Area::playAmbientSound(), Engines::NWN::Area::playAmbientSound(), Engines::KotOR::Area::playAmbientSound(), Engines::NWN::Creature::playAnimation(), Engines::KotOR2::Module::playAnimationOnActiveObject(), Engines::KotOR::Module::playAnimationOnActiveObject(), Engines::KotOR2::Game::playMenuMusic(), Engines::KotOR::Game::playMenuMusic(), Engines::NWN::Game::playMenuMusic(), Engines::KotOR2::Object::playSound(), Engines::KotOR::Object::playSound(), Engines::Witcher::Object::playSound(), Engines::NWN2::Object::playSound(), Engines::NWN::Object::playSound(), Engines::NWN::Dialog::playSound(), Engines::KotOR::DialogGUIBase::playSounds(), Engines::Witcher::EngineProbe::probe(), Engines::NWN::EngineProbeMac::probe(), Engines::KotOR::EngineProbeMac::probe(), Engines::KotOR2::EngineProbeLinux::probe(), Engines::KotOR::EngineProbeXbox::probe(), Engines::KotOR2::EngineProbeXbox::probe(), Common::ReadLine::processKeyDown(), Common::ReadLine::processTextInput(), Engines::DragonAge::Campaign::read(), Engines::DragonAge2::Campaign::read(), Engines::DragonAge::Campaigns::readCampaign(), Engines::DragonAge2::Campaigns::readCampaign(), Engines::KotOR::Version::readFile(), Engines::NWN::Version::readFile(), Aurora::TwoDAFile::readHeaders2b(), Engines::DragonAge::Campaign::readManifest(), Engines::DragonAge2::Campaign::readManifest(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Graphics::Aurora::ModelNode_KotOR::readMesh(), Graphics::Aurora::ModelNode_Jade::readMesh(), Graphics::Aurora::ModelNode_DragonAge::readMesh(), Engines::KotOR::ScriptContainer::readScripts(), Aurora::TalkTable_TLK::readString(), Engines::NWN2::Object::readVarTable(), Engines::NWN::Tooltip::redoLayout(), Engines::KotOR::DialogGUIBase::refresh(), Aurora::Lua::ScriptManager::registerConstant(), Aurora::Lua::ScriptManager::registerFunction(), Aurora::Lua::ScriptManager::registerVariable(), Graphics::Aurora::Texture::reload(), Engines::KotOR::Inventory::removeItem(), Graphics::Aurora::ModelNode::render(), Engines::NWN2::Campaign::replaceCampaign(), Engines::DragonAge::Campaigns::replaceCampaign(), Engines::DragonAge2::Campaigns::replaceCampaign(), Engines::Witcher::Campaign::replaceCampaign(), Engines::Jade::Module::replaceModule(), Engines::Witcher::Module::replaceModule(), Engines::NWN2::Module::replaceModule(), Engines::KotOR2::Module::replaceModule(), Engines::NWN::Module::replaceModule(), Engines::KotOR::Module::replaceModule(), Aurora::Lua::ScriptManager::requireDeclaredClass(), Engines::resolveLangInvalid(), Engines::Witcher::ScriptContainer::runScript(), Engines::Jade::ScriptContainer::runScript(), Engines::NWN2::ScriptContainer::runScript(), Engines::KotOR2::ScriptContainer::runScript(), Engines::KotOR::ScriptContainer::runScript(), Engines::NWN::ScriptContainer::runScript(), Engines::DragonAge2::ScriptContainer::runScript(), Engines::DragonAge::ScriptContainer::runScript(), Aurora::DLGFile::runScript(), Common::ConfigFile::save(), Engines::NWN::NewModuleMenu::selectedModule(), Engines::NWN::NewPremiumMenu::selectedModule(), Common::DebugManager::setConfigToVerbosityLevels(), Engines::NWN::DialogBox::setEntry(), Graphics::Aurora::ModelNode::setEnvironmentMap(), Engines::KotORJadeWidget::setFill(), Common::ConfigManager::setGame(), Engines::KotORJadeWidget::setHighlight(), Engines::ConsoleWindow::setRedirect(), Engines::Widget::setTag(), Graphics::Aurora::GUIQuad::setTexture(), Aurora::Lua::Variable::setType(), Engines::Witcher::Campaign::setupStandaloneModule(), Graphics::WindowManager::setWindowTitle(), Engines::KotOR::SoundObject::SoundObject(), Engines::Witcher::Object::speakOneLiner(), Engines::NWN2::Object::speakOneLiner(), Engines::NWN::Object::speakOneLiner(), Graphics::Font::split(), split(), Common::splitDirectories(), splitTextTokens(), Engines::NWN::IngameGUI::startConversation(), Engines::KotOR2::Module::startConversation(), Engines::KotOR::Module::startConversation(), Engines::NWN::Dialog::updateBox(), Engines::Witcher::Console::updateMusic(), Engines::NWN::OptionsSoundMenu::updateVolume(), Engines::NWN2::Campaign::usePC(), Engines::Witcher::Campaign::usePC(), Engines::NWN::Module::usePC(), Engines::DragonAge::Functions::UT_getNearestObjectByTag(), Engines::DragonAge2::Functions::UT_getNearestObjectByTag(), Aurora::Lua::Variable::Variable(), Engines::NWN::WidgetListItemButton::WidgetListItemButton(), Aurora::TwoDAFile::writeASCII(), and Common::XMLParser::XMLParser().
UString::iterator Common::UString::end | ( | ) | const |
Definition at line 257 of file ustring.cpp.
References _string.
Referenced by Common::ReadLine::addInput(), beginsWith(), Graphics::Aurora::TTFFont::buildChars(), Engines::KotOR::CharacterGenerationNameMenu::callbackKeyInput(), Engines::KotOR2::CharacterGenerationNameMenu::callbackKeyInput(), Common::FoxPro::checkName(), contains(), Engines::NWN2::createDisplayName(), Engines::NWN::Area::createDisplayName(), Common::ConfigManager::createGameID(), Graphics::Aurora::Text::drawLine(), Graphics::Aurora::Text::drawLineImmediate(), endsWith(), erase(), Engines::KotOR::DialogGUIBase::eraseDeveloperNotes(), Common::StringListMap::find(), findFirst(), findLast(), Common::ReadLine::findNextWordEnd(), Engines::KotOR2::Functions::findSubString(), Engines::NWN::Functions::findSubString(), Engines::NWN2::Functions::findSubString(), Engines::KotOR::Functions::findSubString(), Engines::Witcher::Functions::findSubString(), Engines::Jade::Functions::findSubString(), Engines::DragonAge::Functions::findSubString(), Engines::DragonAge2::Functions::findSubString(), Engines::ConsoleWindow::findWordEnd(), Engines::ConsoleWindow::findWordStart(), Engines::KotOR::SaveLoadMenu::getBaseNameFromDirectory(), Graphics::Font::getLineWidth(), Engines::NWN2::Area::getName(), Engines::NWN::Area::getName(), getPosition(), Engines::KotOR2::Functions::getStringRight(), Engines::NWN::Functions::getStringRight(), Engines::NWN2::Functions::getStringRight(), Engines::Witcher::Functions::getStringRight(), Engines::KotOR::Functions::getStringRight(), Engines::Jade::Functions::getStringRight(), Common::StreamTokenizer::getToken(), insert(), Common::ConfigFile::isValidName(), Aurora::TextureAtlasFile::load(), Common::ZipFile::load(), Engines::NWN::Area::loadARE(), Engines::NWN2::Area::loadARE(), Engines::KotOR::Module::loadModule(), Common::DebugManager::logString(), Common::hashUStringCaseSensitive::operator()(), Common::hashUStringCaseInsensitive::operator()(), Common::ConfigFile::parseConfigLine(), parseOption(), Common::ReadLine::processKeyDown(), Common::FilePath::relativize(), replace(), split(), Engines::Console::splitArguments(), Common::splitDirectories(), splitTextTokens(), strcmp(), stricmp(), Engines::DragonAge::Functions::stringRight(), Engines::DragonAge2::Functions::stringRight(), Common::ReadLine::tabComplete(), toLower(), toUpper(), trim(), trimLeft(), and trimRight().
bool Common::UString::endsWith | ( | const UString & | with | ) | const |
Definition at line 315 of file ustring.cpp.
References begin(), empty(), and end().
Referenced by Engines::NWN::CharAttributes::callbackActive(), Common::FileList::findFirst(), Engines::KotOR2::Game::getModules(), Engines::KotOR::Game::getModules(), Common::FileList::getSubList(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Engines::NWN::WidgetListItemDomain::subActive(), Engines::NWN::WidgetGridBox::subActive(), Engines::NWN::WidgetListItemSkill::subActive(), Engines::NWN::WidgetListItemFeat::subActive(), Engines::NWN::WidgetListItemSpell::subActive(), and Engines::NWN::WidgetListBox::subActive().
bool Common::UString::equals | ( | const UString & | str | ) | const |
Definition at line 214 of file ustring.cpp.
References strcmp().
bool Common::UString::equalsIgnoreCase | ( | const UString & | str | ) | const |
Definition at line 218 of file ustring.cpp.
References stricmp().
Referenced by Aurora::ResourceManager::findArchive(), Engines::Witcher::Module::findModule(), Engines::NWN2::Game::getCampaigns(), Engines::Witcher::Game::getCampaigns(), Engines::NWN2::Game::getCharacters(), Engines::NWN::Game::getCharacters(), Engines::Witcher::Campaign::getDirectory(), Engines::NWN::Game::getModules(), Engines::NWN2::Game::getModules(), Engines::Witcher::Game::getModules(), Engines::NWN::Game::isPremiumModule(), Sound::XACTWaveBank_ASCII::load(), Engines::NWN::Creature::loadModel(), Engines::DragonAge::Game::loadResourceDir(), Engines::DragonAge2::Game::loadResourceDir(), Graphics::Aurora::ModelNode_DragonAge::loadTextures(), Engines::Witcher::Campaign::openMMD(), Common::PEResourceID::operator==(), Common::parseString(), Engines::NWN::Creature::setArea(), setOption(), Engines::KotOR2::Console::updateMusic(), and Engines::KotOR::Console::updateMusic().
Erase the character within this range.
Definition at line 598 of file ustring.cpp.
References begin(), end(), and swap().
Referenced by Engines::KotOR::CharacterGenerationNameMenu::callbackKeyInput(), Engines::KotOR2::CharacterGenerationNameMenu::callbackKeyInput(), erase(), Engines::KotOR::DialogGUIBase::eraseDeveloperNotes(), Engines::NWN2::Area::getName(), Engines::NWN::Area::getName(), Aurora::TextureAtlasFile::load(), Engines::NWN2::Area::loadARE(), Engines::NWN::Area::loadARE(), and Common::ReadLine::processKeyDown().
void Common::UString::erase | ( | iterator | pos | ) |
Erase the character at this position.
Definition at line 616 of file ustring.cpp.
References erase().
UString::iterator Common::UString::findFirst | ( | uint32 | c | ) | const |
Definition at line 261 of file ustring.cpp.
References begin(), and end().
Referenced by contains(), Engines::KotOR::DialogGUIBase::eraseDeveloperNotes(), Engines::Console::execute(), Common::StringListMap::find(), Engines::NWN2::Functions::findSubString(), Engines::KotOR2::Functions::findSubString(), Engines::NWN::Functions::findSubString(), Engines::Witcher::Functions::findSubString(), Engines::KotOR::Functions::findSubString(), Engines::Jade::Functions::findSubString(), Engines::DragonAge::Functions::findSubString(), Engines::DragonAge2::Functions::findSubString(), Common::StreamTokenizer::getToken(), Aurora::TextureAtlasFile::load(), Engines::KotOR::Module::loadModule(), parseOption(), split(), Common::ReadLine::tabComplete(), and Engines::NWN::Console::updateCampaigns().
UString::iterator Common::UString::findFirst | ( | const UString & | what | ) | const |
Definition at line 269 of file ustring.cpp.
References _string, and end().
UString::iterator Common::UString::findLast | ( | uint32 | c | ) | const |
Definition at line 279 of file ustring.cpp.
References begin(), empty(), and end().
|
static |
Print formatted data into an UString object, similar to sprintf().
Definition at line 718 of file ustring.cpp.
References STRINGBUFLEN, and UString().
Referenced by Engines::NWN::WidgetListBox::add(), Common::composeString(), Engines::NWN::Creature::constructPartName(), Engines::Jade::Creature::createFakePC(), Engines::KotOR2::Creature::createFakePC(), Engines::DragonAge::Creature::createFakePC(), Engines::DragonAge2::Creature::createFakePC(), Engines::KotOR::Creature::createFakePC(), Common::ConfigManager::createGameID(), Engines::WidgetListBox::createItemWidgets(), Common::debugTag(), Engines::Witcher::WitcherEngine::detectLanguages(), Aurora::ResourceManager::dumpResourcesList(), Engines::KotOR::MenuEquipment::fillEquipableItemsList(), Engines::KotOR::ContainerMenu::fillFromInventory(), Engines::NWN::DialogBox::finishReplies(), Common::DateTime::formatDateISO(), Common::DateTime::formatDateTimeISO(), Engines::DragonAge::Functions::formatFloat(), Engines::DragonAge2::Functions::formatFloat(), Engines::KotOR2::Functions::formatFloat(), Engines::NWN::Functions::formatFloat(), Engines::NWN2::Functions::formatFloat(), Engines::Witcher::Functions::formatFloat(), Engines::Jade::Functions::formatFloat(), Engines::KotOR::Functions::formatFloat(), Common::formatHash(), Common::DateTime::formatTimeISO(), Engines::NWN::Tooltip::getBubbleModel(), Common::FilePath::getHumanReadableSize(), Engines::KotOR::Item::getIcon(), Graphics::Aurora::FontManager::getIndexName(), Engines::Jade::Functions::getLocalBool(), Engines::Jade::Functions::getLocalFloat(), Engines::Jade::Functions::getLocalInt(), Engines::Jade::Functions::getLocalObject(), Engines::Jade::Functions::getLocalString(), Engines::KotOR::Item::getModelName(), Engines::KotOR::Version::getOptimumVersionString(), Engines::NWN::Version::getOptimumVersionString(), Engines::NWN::Creature::getPartModels(), Engines::KotOR::Creature::getPartModelsPC(), Aurora::GFF4Struct::getString(), Engines::KotOR::Version::getVersionString(), Engines::NWN::Version::getVersionString(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::KotOR2::Functions::intToHexString(), Engines::NWN::Functions::intToHexString(), Engines::NWN2::Functions::intToHexString(), Engines::KotOR::Functions::intToHexString(), Engines::Witcher::Functions::intToHexString(), Engines::Jade::Functions::intToHexString(), Engines::DragonAge::Functions::intToHexString(), Engines::DragonAge2::Functions::intToHexString(), Aurora::PEFile::load(), Aurora::TwoDAFile::load(), Engines::NWN2::Creature::loadArmorModel(), Engines::NWN2::Creature::loadCharacter(), Engines::NWN::Creature::loadCharacter(), Engines::NWN2::Creature::loadHairModel(), Engines::NWN2::Creature::loadHeadModel(), Engines::Sonic::SonicEngine::loadLanguageFiles(), Engines::Witcher::WitcherEngine::loadLanguageFiles(), Engines::NWN::Tileset::loadTile(), Engines::NWN2::Area::loadTile(), Engines::Jade::Placeable::nextState(), Engines::DragonAge::Functions::objectToString(), Engines::DragonAge2::Functions::objectToString(), Engines::NWN2::Functions::objectToString(), Engines::KotOR2::Functions::objectToString(), Engines::NWN::Functions::objectToString(), Engines::Witcher::Functions::objectToString(), Engines::KotOR::Functions::objectToString(), Engines::Jade::Functions::objectToString(), Aurora::LanguageManager::preParseColorCodes(), Engines::Console::printList(), Engines::Witcher::Functions::printObject(), Engines::Witcher::Functions::printVector(), Engines::NWN::QuickbarButton::QuickbarButton(), Graphics::Aurora::ModelNode_Jade::readMaterialTextures(), Engines::NWN2::readTint(), Engines::KotOR::DialogGUIBase::refresh(), Graphics::Aurora::FPS::render(), Engines::NWN::Functions::setCustomToken(), Engines::Jade::Functions::setCustomToken(), Engines::Jade::Functions::setLocalBool(), Engines::Jade::Functions::setLocalFloat(), Engines::Jade::Functions::setLocalInt(), Engines::Jade::Functions::setLocalObject(), Engines::Jade::Functions::setLocalString(), Engines::ConsoleWindow::setRedirect(), Engines::LoadProgress::step(), Common::tagToString(), Sound::ASFGUID::toString(), Engines::Jade::GUIBackground::tryBackground(), Engines::KotOR::GUIBackground::tryBackground(), Engines::Sonic::Console::updateAreas(), Engines::Jade::AreaLayout::updateCamera(), Engines::NWN::OptionsVideoAdvancedMenu::updateFSAALabel(), Engines::NWN::PartyLeader::updatePortraitTooltip(), Engines::NWN::OptionsFeedbackMenu::updateTooltipDelay(), Engines::NWN::OptionsSoundMenu::updateVolume(), Engines::DragonAge::Functions::vectorToString(), Engines::DragonAge2::Functions::vectorToString(), and Aurora::TwoDAFile::writeASCII().
Definition at line 809 of file ustring.cpp.
Referenced by Graphics::Aurora::ABCFont::load().
UString::iterator Common::UString::getPosition | ( | size_t | n | ) | const |
Convert a numerical position into an iterator.
Definition at line 501 of file ustring.cpp.
References begin(), and end().
Referenced by Common::ReadLine::findLastWordStart(), Common::ReadLine::findNextWordEnd(), Engines::KotOR2::Functions::findSubString(), Engines::NWN::Functions::findSubString(), Engines::NWN2::Functions::findSubString(), Engines::KotOR::Functions::findSubString(), Engines::Witcher::Functions::findSubString(), Engines::Jade::Functions::findSubString(), Engines::DragonAge2::Functions::findSubString(), Engines::DragonAge::Functions::findSubString(), Engines::ConsoleWindow::findWordEnd(), Engines::ConsoleWindow::findWordStart(), Common::ReadLine::getCurrentPosition(), Engines::ConsoleWindow::getHighlight(), Engines::NWN::Functions::getStringLeft(), Engines::NWN2::Functions::getStringLeft(), Engines::KotOR2::Functions::getStringLeft(), Engines::Witcher::Functions::getStringLeft(), Engines::KotOR::Functions::getStringLeft(), Engines::Jade::Functions::getStringLeft(), Engines::NWN::Functions::getStringRight(), Engines::NWN2::Functions::getStringRight(), Engines::KotOR2::Functions::getStringRight(), Engines::Witcher::Functions::getStringRight(), Engines::KotOR::Functions::getStringRight(), Engines::Jade::Functions::getStringRight(), Engines::KotOR2::Functions::getSubString(), Engines::NWN::Functions::getSubString(), Engines::NWN2::Functions::getSubString(), Engines::Witcher::Functions::getSubString(), Engines::KotOR::Functions::getSubString(), Engines::Jade::Functions::getSubString(), Engines::NWN2::Functions::insertString(), Engines::NWN::Functions::insertString(), Engines::KotOR2::Functions::insertString(), Engines::Witcher::Functions::insertString(), Engines::KotOR::Functions::insertString(), Engines::Jade::Functions::insertString(), Engines::DragonAge2::Functions::insertString(), Engines::DragonAge::Functions::insertString(), Engines::KotOR::Module::loadModule(), Common::ReadLine::processKeyDown(), Common::FilePath::relativize(), Engines::DragonAge2::Functions::stringLeft(), Engines::DragonAge::Functions::stringLeft(), Engines::DragonAge2::Functions::stringRight(), Engines::DragonAge::Functions::stringRight(), Engines::DragonAge2::Functions::subString(), and Engines::DragonAge::Functions::subString().
size_t Common::UString::getPosition | ( | iterator | it | ) | const |
Convert an iterator into a numerical position.
Definition at line 507 of file ustring.cpp.
References begin().
Insert character c in front of this position.
Definition at line 513 of file ustring.cpp.
References begin(), end(), and swap().
Referenced by Common::ReadLine::addInput(), Engines::NWN::Functions::insertString(), Engines::NWN2::Functions::insertString(), Engines::KotOR2::Functions::insertString(), Engines::Witcher::Functions::insertString(), Engines::KotOR::Functions::insertString(), Engines::Jade::Functions::insertString(), Engines::DragonAge2::Functions::insertString(), Engines::DragonAge::Functions::insertString(), and Common::ReadLine::processTextInput().
void Common::UString::insert | ( | UString::iterator | pos, |
const UString & | str | ||
) |
Insert a string in front of this position.
Definition at line 533 of file ustring.cpp.
References begin(), end(), and swap().
|
static |
Is the character an ASCII alphanumeric character?
Definition at line 801 of file ustring.cpp.
References isASCII().
Referenced by Common::ConfigManager::createGameID(), and Common::ReadLine::isWordCharacter().
|
static |
Is the character an ASCII alphabetic character?
Definition at line 797 of file ustring.cpp.
References isASCII().
|
static |
Is the character an ASCII character?
Definition at line 785 of file ustring.cpp.
Referenced by Engines::DragonAge::Functions::charToInt(), Engines::DragonAge2::Functions::charToInt(), Common::FoxPro::checkName(), Aurora::SSFFile::existNonASCIISoundFile(), Graphics::Aurora::ABCFont::findChar(), isAlNum(), isAlpha(), isCntrl(), isDigit(), isSpace(), Common::ConfigFile::isValidName(), Common::ReadLine::isWordCharacter(), toLower(), and toUpper().
|
static |
Is the character an ASCII control character?
Definition at line 805 of file ustring.cpp.
References isASCII().
Referenced by Events::EventsManager::getTextInput().
|
static |
Is the character an ASCII digit character?
Definition at line 793 of file ustring.cpp.
References isASCII().
|
static |
Is the character an ASCII space character?
Definition at line 789 of file ustring.cpp.
References isASCII().
Referenced by Graphics::Font::split().
bool Common::UString::less | ( | const UString & | str | ) | const |
Definition at line 222 of file ustring.cpp.
References strcmp().
Referenced by Common::UString::sless::operator()().
bool Common::UString::lessIgnoreCase | ( | const UString & | str | ) | const |
Definition at line 226 of file ustring.cpp.
References stricmp().
Referenced by Common::UString::iless::operator()().
void Common::UString::makeLower | ( | ) |
Convert the string to lowercase.
Definition at line 473 of file ustring.cpp.
References toLower().
Referenced by Aurora::NDSFile::hasResource(), Common::XMLNode::load(), and Aurora::TwoDARegistry::loadMGDA().
void Common::UString::makeUpper | ( | ) |
Convert the string to uppercase.
Definition at line 477 of file ustring.cpp.
References toUpper().
bool Common::UString::operator!= | ( | const UString & | str | ) | const |
Definition at line 94 of file ustring.cpp.
References strcmp().
Definition at line 106 of file ustring.cpp.
UString Common::UString::operator+ | ( | const std::string & | str | ) | const |
Definition at line 114 of file ustring.cpp.
UString Common::UString::operator+ | ( | const char * | str | ) | const |
Definition at line 122 of file ustring.cpp.
Definition at line 130 of file ustring.cpp.
Definition at line 138 of file ustring.cpp.
UString & Common::UString::operator+= | ( | const std::string & | str | ) |
Definition at line 145 of file ustring.cpp.
UString & Common::UString::operator+= | ( | const char * | str | ) |
Definition at line 151 of file ustring.cpp.
Definition at line 157 of file ustring.cpp.
bool Common::UString::operator< | ( | const UString & | str | ) | const |
Definition at line 98 of file ustring.cpp.
References strcmp().
Definition at line 69 of file ustring.cpp.
UString & Common::UString::operator= | ( | const std::string & | str | ) |
Definition at line 76 of file ustring.cpp.
References _string, and recalculateSize().
UString & Common::UString::operator= | ( | const char * | str | ) |
Definition at line 84 of file ustring.cpp.
bool Common::UString::operator== | ( | const UString & | str | ) | const |
Definition at line 90 of file ustring.cpp.
References strcmp().
bool Common::UString::operator> | ( | const UString & | str | ) | const |
Definition at line 102 of file ustring.cpp.
References strcmp().
|
private |
Definition at line 756 of file ustring.cpp.
References _size, and _string.
Referenced by operator=(), trim(), trimLeft(), and trimRight().
Replace the character at this position with c.
Definition at line 553 of file ustring.cpp.
References begin(), end(), and swap().
Referenced by Common::ReadLine::addInput(), and Common::ReadLine::processTextInput().
void Common::UString::replace | ( | UString::iterator | pos, |
const UString & | str | ||
) |
Replace the characters at this position with str.
Definition at line 573 of file ustring.cpp.
References begin(), end(), and swap().
Replace all occurrences of a character with another character.
Definition at line 435 of file ustring.cpp.
References _string.
Referenced by Engines::KotOR::SaveLoadMenu::addSavedGameItems(), Engines::KotOR::PartySelectionGUI::callbackActive(), Engines::NWN2::Creature::getBaseModel(), Engines::KotOR::Creature::getPartModelsPC(), Aurora::TheWitcherSaveFile::load(), and Engines::WidgetListBox::selectItemByWidgetTag().
Replace all occurrences of a substring with another substring.
Definition at line 469 of file ustring.cpp.
References _string.
size_t Common::UString::size | ( | ) | const |
Return the size of the string, in characters.
Definition at line 241 of file ustring.cpp.
References _size.
Referenced by Aurora::ERFWriter::add(), Common::ReadLine::browseBottom(), Common::ReadLine::browseDown(), Common::ReadLine::browseTop(), Common::ReadLine::browseUp(), Engines::KotOR::CharacterGenerationNameMenu::callbackTextInput(), Engines::KotOR2::CharacterGenerationNameMenu::callbackTextInput(), Engines::NWN::Functions::findSubString(), Engines::NWN2::Functions::findSubString(), Engines::DragonAge::Functions::findSubString(), Engines::DragonAge2::Functions::findSubString(), Aurora::TheWitcherSaveWriter::finish(), Engines::KotOR2::Game::getModules(), Engines::KotOR::Game::getModules(), Engines::KotOR2::Functions::getStringLeft(), Engines::NWN::Functions::getStringLeft(), Engines::NWN2::Functions::getStringLeft(), Engines::KotOR::Functions::getStringLeft(), Engines::Witcher::Functions::getStringLeft(), Engines::Jade::Functions::getStringLeft(), Engines::KotOR2::Functions::getStringRight(), Engines::NWN::Functions::getStringRight(), Engines::NWN2::Functions::getStringRight(), Engines::KotOR::Functions::getStringRight(), Engines::Witcher::Functions::getStringRight(), Engines::Jade::Functions::getStringRight(), Engines::KotOR2::Functions::getSubString(), Engines::NWN::Functions::getSubString(), Engines::NWN2::Functions::getSubString(), Engines::KotOR::Functions::getSubString(), Engines::Witcher::Functions::getSubString(), Engines::Jade::Functions::getSubString(), Engines::ConsoleWindow::highlightLine(), Engines::KotOR::HUD::initWidget(), Graphics::Aurora::ModelNode_NWN_ASCII::load(), Engines::DragonAge::Game::loadTalkTables(), Engines::DragonAge2::Game::loadTalkTables(), Graphics::Aurora::Text::parseColors(), parseOption(), Engines::Console::printList(), Common::ReadLine::processKeyDown(), Common::ReadLine::processTextInput(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Common::FilePath::relativize(), split(), Engines::DragonAge::Functions::stringLeft(), Engines::DragonAge2::Functions::stringLeft(), Engines::DragonAge::Functions::stringRight(), Engines::DragonAge2::Functions::stringRight(), Engines::DragonAge::Functions::subString(), Engines::DragonAge2::Functions::subString(), Common::ReadLine::tabComplete(), Aurora::GFF3Writer::write(), and Aurora::TwoDAFile::writeASCII().
void Common::UString::split | ( | iterator | splitPoint, |
UString & | left, | ||
UString & | right, | ||
bool | remove = false |
||
) | const |
Definition at line 621 of file ustring.cpp.
References begin(), clear(), and end().
Referenced by Aurora::ActionScript::ASBuffer::actionGetMember(), Aurora::ActionScript::ASBuffer::actionGetVariable(), Engines::NWN::Tooltip::addLine(), Aurora::Lua::ScriptManager::callFunction(), Engines::KotOR::Console::cmdAddItem(), Engines::KotOR::Console::cmdPlayAnim(), Engines::KotOR2::Console::cmdPlayAnim(), Engines::Console::execute(), Aurora::TextureAtlasFile::load(), Engines::KotORInventoryItem::setContents(), Common::DebugManager::setVerbosityLevelsFromConfig(), split(), Engines::DragonAge::Functions::stringToVector(), Engines::DragonAge2::Functions::stringToVector(), Common::ReadLine::tabComplete(), and Engines::Jade::AreaLayout::updateCamera().
|
static |
Definition at line 729 of file ustring.cpp.
References empty(), end(), findFirst(), MAX(), size(), and split().
|
static |
Definition at line 645 of file ustring.cpp.
References begin(), clear(), empty(), and end().
Referenced by Engines::TokenManager::parse(), Graphics::Aurora::Text::parseColors(), and Graphics::Font::split().
int Common::UString::strcmp | ( | const UString & | str | ) | const |
Definition at line 170 of file ustring.cpp.
References begin(), and end().
Referenced by equals(), less(), operator!=(), operator<(), Engines::NWN::CharPremadeMenu::Character::operator<(), operator==(), and operator>().
int Common::UString::stricmp | ( | const UString & | str | ) | const |
Definition at line 192 of file ustring.cpp.
References begin(), end(), and toLower().
Referenced by equalsIgnoreCase(), Engines::KotOR::SavedGame::fillFromSAV(), lessIgnoreCase(), Engines::KotOR::Creature::loadBody(), and Graphics::Aurora::Animation::updateSkinnedModel().
Definition at line 706 of file ustring.cpp.
References begin().
Referenced by Engines::NWN::Functions::findSubString(), Engines::NWN2::Functions::findSubString(), Engines::DragonAge2::Functions::findSubString(), Engines::DragonAge::Functions::findSubString(), Engines::ConsoleWindow::getHighlight(), Engines::KotOR2::Functions::getStringLeft(), Engines::NWN::Functions::getStringLeft(), Engines::NWN2::Functions::getStringLeft(), Engines::KotOR::Functions::getStringLeft(), Engines::Witcher::Functions::getStringLeft(), Engines::Jade::Functions::getStringLeft(), Engines::KotOR2::Functions::getStringRight(), Engines::NWN::Functions::getStringRight(), Engines::NWN2::Functions::getStringRight(), Engines::Witcher::Functions::getStringRight(), Engines::KotOR::Functions::getStringRight(), Engines::Jade::Functions::getStringRight(), Engines::KotOR2::Functions::getSubString(), Engines::NWN::Functions::getSubString(), Engines::NWN2::Functions::getSubString(), Engines::KotOR::Functions::getSubString(), Engines::Witcher::Functions::getSubString(), Engines::Jade::Functions::getSubString(), Engines::KotOR::Module::loadModule(), parseOption(), Graphics::Aurora::ModelNode_Witcher::readTextures(), Common::FilePath::relativize(), Engines::DragonAge2::Functions::stringLeft(), Engines::DragonAge::Functions::stringLeft(), Engines::DragonAge::Functions::stringRight(), Engines::DragonAge2::Functions::stringRight(), Engines::DragonAge2::Functions::subString(), and Engines::DragonAge::Functions::subString().
void Common::UString::swap | ( | UString & | str | ) |
Swap the contents of the string with this string's.
Definition at line 230 of file ustring.cpp.
References _size, _string, and SWAP().
Referenced by erase(), insert(), Engines::TokenManager::parse(), replace(), and truncate().
UString Common::UString::toLower | ( | ) | const |
Return a lowercased copy of the string.
Definition at line 481 of file ustring.cpp.
References _string, begin(), and end().
Referenced by Aurora::ResourceManager::findArchive(), Aurora::GDAFile::findColumn(), Common::FileList::findFirst(), Aurora::FileTypeManager::getFileType(), Aurora::ResourceManager::getHash(), Engines::KotOR2::Game::getModules(), Engines::KotOR::Game::getModules(), Common::FileList::getSubList(), Aurora::VISFile::getVisibilityArray(), Common::ZipFile::load(), makeLower(), Engines::NWN::CharSpells::makeSpellsList(), Graphics::Aurora::Model_DragonAge::ParserContext::open(), Common::hashUStringCaseInsensitive::operator()(), Aurora::LanguageManager::parseLanguage(), Aurora::HERFFile::readDictionary(), Graphics::Aurora::Model_Sonic::readInfoOffset(), Graphics::Aurora::Model_Sonic::readInfoOffsetCount(), Aurora::NDSFile::readNames(), Aurora::NSBTXFile::readPalettes(), Aurora::NSBTXFile::readTextures(), and stricmp().
Definition at line 769 of file ustring.cpp.
References isASCII().
UString Common::UString::toUpper | ( | ) | const |
Return an uppercased copy of the string.
Definition at line 491 of file ustring.cpp.
References _string, begin(), and end().
Referenced by Aurora::LTRFile::generateRandomName(), and makeUpper().
Definition at line 777 of file ustring.cpp.
References isASCII().
void Common::UString::trim | ( | ) |
Definition at line 364 of file ustring.cpp.
References _string, begin(), end(), and recalculateSize().
Referenced by Engines::Console::execute(), Engines::NWN::Creature::getPCListInfo(), Engines::NWN2::Creature::loadProperties(), Engines::NWN::Creature::loadProperties(), Graphics::Aurora::ModelNode::loadTextures(), Common::ConfigFile::parseConfigLine(), Common::tagToString(), and Engines::NWN::Console::updateCampaigns().
void Common::UString::trimLeft | ( | ) |
Definition at line 395 of file ustring.cpp.
References _string, begin(), end(), and recalculateSize().
Referenced by Common::ReadLine::tabComplete().
void Common::UString::trimRight | ( | ) |
Definition at line 410 of file ustring.cpp.
References _string, begin(), end(), and recalculateSize().
Referenced by Common::FoxPro::getString().
void Common::UString::truncate | ( | const iterator & | it | ) |
Definition at line 343 of file ustring.cpp.
References begin(), and swap().
Referenced by Engines::Witcher::Functions::executeScript(), Engines::Jade::Functions::executeScript(), Engines::NWN::Functions::executeScript(), Engines::NWN2::Functions::executeScript(), Common::StringListMap::find(), Engines::KotOR::SaveLoadMenu::getBaseNameFromDirectory(), Engines::KotOR2::Game::getModules(), Engines::KotOR::Game::getModules(), Common::StreamTokenizer::getToken(), Engines::DragonAge::Game::loadTalkTables(), Engines::DragonAge2::Game::loadTalkTables(), Engines::Console::printList(), Engines::ConsoleWindow::recalcCursor(), and Engines::NWN::Console::updateCampaigns().
void Common::UString::truncate | ( | size_t | n | ) |
Definition at line 352 of file ustring.cpp.
References _size, begin(), and swap().
|
private |
Definition at line 205 of file ustring.h.
Referenced by clear(), operator+=(), operator=(), recalculateSize(), size(), swap(), and truncate().
|
private |
Internal string holding the actual data.
Definition at line 203 of file ustring.h.
Referenced by begin(), c_str(), clear(), contains(), empty(), end(), findFirst(), operator+=(), operator=(), recalculateSize(), replaceAll(), swap(), toLower(), toUpper(), trim(), trimLeft(), and trimRight().