#include <strings.h>
Public Member Functions | |
| String () | |
| String (const char *str) | |
| String (char ch) | |
| String (const char *str, int len) | |
| String (const String &other) | |
| String (StringBase *other) | |
| String (Ref< StringBase > other) | |
| StringBase * | getBase () |
| String (NIL_VAR) | |
| ~String () | |
| String & | operator= (const char *str) |
| String & | operator= (String other) |
| String & | operator= (NIL_VAR) |
| String | operator+ (String other) |
| String | operator+ (const char *str) |
| String | operator+ (char chr) |
| String | operator+ (int x) |
| String | operator+ (unsigned int x) |
| String | operator+ (double x) |
| int | operator== (String other) |
| int | operator== (const char *str) |
| int | operator== (char c) |
| int | operator!= (String other) |
| int | operator!= (const char *str) |
| int | operator!= (char c) |
| int | operator== (NIL_VAR) |
| int | operator!= (NIL_VAR) |
| operator Ref< StringBase > () | |
| int | equals (String other, bool ignoreCase=false) |
| String | toLower () |
| String | toUpper () |
| String | substring (int from) |
| String | substring (int from, int count) |
| String | reduce (char ch) |
| reduces multiple consecutive occurences of the character ch to one occurence | |
| char | charAt (int index) |
| char * | charPtrAt (int index) |
| int | index (char ch) |
| int | index (int start, char ch) |
| int | rindex (char ch) |
| int | rindex (int end, char ch) |
| long | toLong () |
| off_t | toOFF_T () |
| int | toInt () |
| unsigned int | toUInt () |
| double | toDouble () |
| int | length () |
| void | setLength (int length) |
| char * | c_str () |
| void | updateLength () |
| bool | startsWith (String str) |
| int | find (const char *needle) |
| int | find (String needle) |
| String | replace (String needle, String replacement) |
| String | replaceChar (char needle, char replacement) |
Static Public Member Functions | |
| static String | from (int x) |
| static String | from (unsigned int x) |
| static String | from (long x) |
| static String | from (unsigned long x) |
| static String | from (double x) |
| static String | from (long long x) |
| static String | allocate (int size) |
| static String | take (const char *data, int length) |
| static String | take (const char *data) |
| static String | refer (const char *str) |
| static String | refer (const char *str, int len) |
| static String | copy (const char *str) |
Protected Member Functions | |
| String (int capacity) | |
Protected Attributes | |
| StringBase * | base |
Friends | |
| class | StringBuffer |
Definition at line 81 of file strings.h.
| String::String | ( | ) |
| String::String | ( | const char * | str | ) |
Definition at line 85 of file strings.cc.
References base, NULL, and zmm::Object::retain().
| String::String | ( | char | ch | ) | [explicit] |
Definition at line 105 of file strings.cc.
References base, and zmm::Object::retain().
| String::String | ( | const char * | str, | |
| int | len | |||
| ) |
Definition at line 95 of file strings.cc.
References base, NULL, and zmm::Object::retain().
| String::String | ( | const String & | other | ) |
Definition at line 111 of file strings.cc.
References base, and zmm::Object::retain().
| String::String | ( | StringBase * | other | ) |
Definition at line 117 of file strings.cc.
References base, and zmm::Object::retain().
| String::String | ( | Ref< StringBase > | other | ) |
Definition at line 123 of file strings.cc.
References base, zmm::Ref< T >::getPtr(), and zmm::Object::retain().
| zmm::String::String | ( | NIL_VAR | ) | [inline] |
| String::~String | ( | ) |
Definition at line 129 of file strings.cc.
References base, and zmm::Object::release().
| String::String | ( | int | capacity | ) | [protected] |
Definition at line 80 of file strings.cc.
References base, and zmm::Object::retain().
| String String::allocate | ( | int | size | ) | [static] |
Definition at line 241 of file strings.cc.
References String().
| char * String::c_str | ( | ) |
Definition at line 142 of file strings.cc.
References base, zmm::StringBase::data, and NULL.
Referenced by StringConverter::_convert(), ContentManager::_rescanDirectory(), ContentManager::addContainerChain(), zmm::IntArray::addCSV(), ContentManager::addRecursive(), CdsResourceManager::addResources(), WebRequestHandler::addUpdateIDs(), check_path(), check_path_ex(), FDIOHandler::close(), RExp::compile(), ConfigManager::ConfigManager(), ContentManager::ContentManager(), copy_file(), create_request_handler(), ConfigManager::createDefaultConfig(), ContentManager::createObjectFromFile(), CacheObject::debug(), Dictionary::decode(), error_string(), mxml::Node::escape(), FsObjectComparator(), WebRequestHandler::get_info(), ServeRequestHandler::get_info(), FileRequestHandler::get_info(), getAVIFourCC(), XPath::getAxis(), XPath::getAxisPart(), ConfigManager::getOption(), XPath::getPathPart(), XPath::getSpec(), Filesystem::have(), hex_decode_string(), hex_string_md5(), HMSToSeconds(), ContentManager::initLayout(), ContentManager::invalidateAddTask(), is_executable(), isTheora(), main(), DSOHash< zmm::Array< CacheObject > >::match(), DSBHash< VT >::match(), MemIOHandler::MemIOHandler(), Matcher::next(), zmm::StringTokenizer::nextToken(), normalizePath(), ServeRequestHandler::open(), FileRequestHandler::open(), FileIOHandler::open(), FDIOHandler::open(), web::files::process(), web::directories::process(), web::addObject::process(), web::action::process(), ConnectionManagerService::process_subscription_request(), ContentDirectoryService::process_subscription_request(), ProcessExecutor::ProcessExecutor(), read_text_file(), Filesystem::readDirectory(), CMAddFileTask::run(), run_simple_process(), ConfigManager::save_text(), split_path(), split_string(), StringConverter::StringConverter(), stringHash(), ConnectionManagerService::subscription_update(), ContentDirectoryService::subscription_update(), tempName(), UpdateManager::threadProc(), IOHandlerChainer::threadProc(), ContentManager::threadProc(), BufferedIOHandler::threadProc(), trim_string(), ActionRequest::update(), Server::upnp_callback(), Server::upnp_init(), url_escape(), url_unescape(), ConfigManager::validate(), web_close(), web_get_info(), web_open(), web_seek(), WebAutoscanProcessListComparator(), write_text_file(), and ConfigManager::writeBookmark().
| char zmm::String::charAt | ( | int | index | ) | [inline] |
Definition at line 170 of file strings.h.
References base, and zmm::StringBase::data.
Referenced by ContentManager::_addFile(), ContentManager::addRecursive(), ConfigManager::construct_path(), SQLStorage::ensurePathExistence(), get_filename(), getValidUTF8CutPosition(), normalizePath(), Filesystem::readDirectory(), Storage::stripAndUnescapeVirtualContainerFromPath(), and SQLStorage::stripLocationPrefix().
| char* zmm::String::charPtrAt | ( | int | index | ) | [inline] |
Definition at line 171 of file strings.h.
References base, and zmm::StringBase::data.
Referenced by normalizePath().
| String String::copy | ( | const char * | str | ) | [static] |
Definition at line 277 of file strings.cc.
References base, and String().
Referenced by operator+().
| int String::equals | ( | String | other, | |
| bool | ignoreCase = false | |||
| ) |
Definition at line 334 of file strings.cc.
References base, and zmm::StringBase::data.
| int String::find | ( | String | needle | ) |
Definition at line 541 of file strings.cc.
References base, zmm::StringBase::data, and find().
| int String::find | ( | const char * | needle | ) |
Definition at line 527 of file strings.cc.
References base, and zmm::StringBase::data.
| String String::from | ( | long long | x | ) | [static] |
Definition at line 227 of file strings.cc.
References zmm::StringBase::data, zmm::StringBase::len, MAX_LONG_LONG_STRING_LENGTH, and String().
| String String::from | ( | double | x | ) | [static] |
Definition at line 221 of file strings.cc.
References zmm::StringBase::data, zmm::StringBase::len, MAX_DOUBLE_STRING_LENGTH, and String().
| String String::from | ( | unsigned long | x | ) | [static] |
Definition at line 215 of file strings.cc.
References zmm::StringBase::data, zmm::StringBase::len, MAX_LONG_STRING_LENGTH, and String().
| String String::from | ( | long | x | ) | [static] |
Definition at line 209 of file strings.cc.
References zmm::StringBase::data, zmm::StringBase::len, MAX_LONG_STRING_LENGTH, and String().
| String String::from | ( | unsigned int | x | ) | [static] |
Definition at line 203 of file strings.cc.
References zmm::StringBase::data, zmm::StringBase::len, MAX_INT_STRING_LENGTH, and String().
| String String::from | ( | int | x | ) | [static] |
Definition at line 197 of file strings.cc.
References zmm::StringBase::data, zmm::StringBase::len, MAX_INT_STRING_LENGTH, and String().
Referenced by operator+().
| StringBase* zmm::String::getBase | ( | ) | [inline] |
Definition at line 94 of file strings.h.
References base.
Referenced by DSOHash< zmm::Array< CacheObject > >::put(), and DSBHash< VT >::put().
| int String::index | ( | int | start, | |
| char | ch | |||
| ) |
Definition at line 441 of file strings.cc.
References base, zmm::StringBase::data, and zmm::StringBase::len.
| int zmm::String::index | ( | char | ch | ) | [inline] |
Definition at line 172 of file strings.h.
References index().
Referenced by FallbackLayout::addAudio(), FallbackLayout::addImage(), Dictionary::decodeSimple(), getProtocol(), index(), normalizePath(), CdsResourceManager::renderExtension(), and RequestHandler::split_url().
| int String::length | ( | ) |
Definition at line 135 of file strings.cc.
References base, and zmm::StringBase::len.
Referenced by StringConverter::_convert(), zmm::IntArray::addCSV(), FallbackLayout::addImage(), FallbackLayout::addVideo(), ConfigManager::construct_path(), StringConverter::convert(), Dictionary::decode(), Dictionary::decodeSimple(), SQLStorage::ensurePathExistence(), mxml::Node::escape(), get_filename(), ServeRequestHandler::get_info(), FileRequestHandler::get_info(), get_last_path(), getValidUTF8CutPosition(), hex_decode_string(), hex_string_md5(), main(), MemIOHandler::MemIOHandler(), normalizePath(), ServeRequestHandler::open(), FileRequestHandler::open(), zmm::StringBuffer::operator<<(), web::files::process(), web::directories::process(), run_simple_process(), ConfigManager::save_text(), split_string(), zmm::StringTokenizer::StringTokenizer(), trim_string(), Server::upnp_init(), UpnpXML_DIDLRenderObject(), url_escape(), url_unescape(), write_text_file(), and ConfigManager::writeBookmark().
| zmm::String::operator Ref< StringBase > | ( | ) | [inline] |
| int zmm::String::operator!= | ( | NIL_VAR | ) | [inline] |
| int zmm::String::operator!= | ( | char | c | ) | [inline] |
Definition at line 137 of file strings.h.
References operator==().
| int zmm::String::operator!= | ( | const char * | str | ) | [inline] |
Definition at line 133 of file strings.h.
References operator==().
| int zmm::String::operator!= | ( | String | other | ) | [inline] |
Definition at line 129 of file strings.h.
References operator==().
| String String::operator+ | ( | double | x | ) |
Definition at line 192 of file strings.cc.
References from(), and operator+().
| String String::operator+ | ( | unsigned int | x | ) |
Definition at line 188 of file strings.cc.
References from(), and operator+().
| String String::operator+ | ( | int | x | ) |
Definition at line 184 of file strings.cc.
References from(), and operator+().
| String String::operator+ | ( | char | chr | ) |
Definition at line 176 of file strings.cc.
References operator+().
| String String::operator+ | ( | const char * | str | ) |
Definition at line 163 of file strings.cc.
References base, copy(), zmm::StringBase::data, and zmm::StringBase::len.
Definition at line 149 of file strings.cc.
References base, zmm::StringBase::data, and zmm::StringBase::len.
Referenced by operator+().
Definition at line 110 of file strings.h.
References base, NULL, and zmm::Object::release().
Definition at line 322 of file strings.cc.
References base, zmm::Object::release(), and zmm::Object::retain().
| String & String::operator= | ( | const char * | str | ) |
Definition at line 309 of file strings.cc.
References base, NULL, zmm::Object::release(), and zmm::Object::retain().
| int zmm::String::operator== | ( | NIL_VAR | ) | [inline] |
| int String::operator== | ( | char | c | ) |
Definition at line 303 of file strings.cc.
References base, zmm::StringBase::data, and zmm::StringBase::len.
| int String::operator== | ( | const char * | str | ) |
Definition at line 295 of file strings.cc.
References base, and zmm::StringBase::data.
| int String::operator== | ( | String | other | ) |
Definition at line 287 of file strings.cc.
References base, and zmm::StringBase::data.
Referenced by operator!=().
| String String::reduce | ( | char | ch | ) |
reduces multiple consecutive occurences of the character ch to one occurence
| ch | the character to reduce |
Definition at line 476 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, nil, and updateLength().
Referenced by SQLStorage::_findObjectByPath(), SQLStorage::addContainerChain(), and SQLStorage::ensurePathExistence().
| String String::refer | ( | const char * | str, | |
| int | len | |||
| ) | [static] |
Definition at line 269 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, zmm::StringBase::store, and String().
| String String::refer | ( | const char * | str | ) | [static] |
Definition at line 261 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, zmm::StringBase::store, and String().
Definition at line 546 of file strings.cc.
References base, zmm::StringBase::data, find(), zmm::StringBase::len, and nil.
Referenced by parseCommandLine().
| String String::replaceChar | ( | char | needle, | |
| char | replacement | |||
| ) |
Definition at line 561 of file strings.cc.
References base, zmm::StringBase::data, and zmm::StringBase::len.
| int String::rindex | ( | int | end, | |
| char | ch | |||
| ) |
Definition at line 463 of file strings.cc.
References base, zmm::StringBase::data, and zmm::StringBase::len.
| int String::rindex | ( | char | ch | ) |
Definition at line 453 of file strings.cc.
References base, and zmm::StringBase::data.
Referenced by FallbackLayout::addImage(), CdsResourceManager::addResources(), FallbackLayout::addVideo(), ContentManager::createObjectFromFile(), get_filename(), FileRequestHandler::get_info(), get_last_path(), XPath::getAxisPart(), XPath::getPathPart(), FileRequestHandler::open(), CdsResourceManager::renderExtension(), split_path(), RequestHandler::split_url(), and Storage::stripAndUnescapeVirtualContainerFromPath().
| void zmm::String::setLength | ( | int | length | ) | [inline] |
Definition at line 184 of file strings.h.
References base, and zmm::StringBase::len.
Referenced by error_string().
| bool zmm::String::startsWith | ( | String | str | ) | [inline] |
Definition at line 194 of file strings.h.
References base, and zmm::StringBase::startsWith().
Referenced by FallbackLayout::addImage(), CdsResourceManager::addResources(), FallbackLayout::addVideo(), create_request_handler(), find_in_path(), FallbackLayout::processCdsObject(), and CdsItemInternalURL::validate().
| String String::substring | ( | int | from, | |
| int | count | |||
| ) |
Definition at line 428 of file strings.cc.
References _, base, zmm::StringBase::data, zmm::StringBase::len, and nil.
| String String::substring | ( | int | from | ) |
Definition at line 421 of file strings.cc.
References base, zmm::StringBase::len, and nil.
Referenced by FallbackLayout::addAudio(), FallbackLayout::addImage(), CdsResourceManager::addResources(), FallbackLayout::addVideo(), StringConverter::convert(), ContentManager::createObjectFromFile(), Dictionary::decodeSimple(), SQLStorage::ensurePathExistence(), get_filename(), ServeRequestHandler::get_info(), FileRequestHandler::get_info(), get_last_path(), XPath::getAxis(), XPath::getAxisPart(), XPath::getPathPart(), getProtocol(), zmm::StringTokenizer::nextToken(), ServeRequestHandler::open(), FileRequestHandler::open(), CdsResourceManager::renderExtension(), RequestHandler::split_url(), Storage::stripAndUnescapeVirtualContainerFromPath(), SQLStorage::stripLocationPrefix(), trim_string(), and UpnpXML_DIDLRenderObject().
| String String::take | ( | const char * | data | ) | [static] |
Definition at line 245 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, zmm::StringBase::store, and String().
| String String::take | ( | const char * | data, | |
| int | length | |||
| ) | [static] |
Definition at line 253 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, zmm::StringBase::store, and String().
| double String::toDouble | ( | ) |
Definition at line 388 of file strings.cc.
References base, and zmm::StringBase::data.
| int zmm::String::toInt | ( | ) | [inline] |
Definition at line 179 of file strings.h.
References toLong().
Referenced by SQLStorage::_fillAutoscanDirectory(), FileRequestHandler::get_info(), ConfigManager::getIntOption(), WebRequestHandler::intParam(), ConfigManager::migrate(), FileRequestHandler::open(), web::edit_save::process(), web::edit_load::process(), SQLStorage::removeObject(), ContentDirectoryService::upnp_action_Browse(), and ConfigManager::validate().
| long String::toLong | ( | ) |
Definition at line 377 of file strings.cc.
References base, and zmm::StringBase::data.
| String String::toLower | ( | ) |
Definition at line 350 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, nil, and String().
Referenced by ConfigManager::createDictionaryFromNodeset(), and ContentManager::extension2mimetype().
| off_t String::toOFF_T | ( | ) |
Definition at line 401 of file strings.cc.
References base, zmm::StringBase::data, and toLong().
| unsigned int zmm::String::toUInt | ( | ) | [inline] |
Definition at line 180 of file strings.h.
References toLong().
Referenced by ConfigManager::createAutoscanListFromNodeset().
| String String::toUpper | ( | ) |
Definition at line 363 of file strings.cc.
References base, zmm::StringBase::data, zmm::StringBase::len, nil, and String().
| void zmm::String::updateLength | ( | ) | [inline] |
Definition at line 189 of file strings.h.
References base, zmm::StringBase::data, and zmm::StringBase::len.
Referenced by reduce().
friend class StringBuffer [friend] |
StringBase* zmm::String::base [protected] |
Definition at line 84 of file strings.h.
Referenced by c_str(), charAt(), charPtrAt(), copy(), equals(), find(), getBase(), index(), length(), operator Ref< StringBase >(), operator!=(), operator+(), zmm::StringBuffer::operator<<(), operator=(), operator==(), reduce(), refer(), replace(), replaceChar(), rindex(), setLength(), startsWith(), String(), substring(), take(), toDouble(), toLong(), toLower(), toOFF_T(), toUpper(), updateLength(), and ~String().
1.6.1