![]() |
KVIrc 5.2.6
Developer APIs
|
#include <KviCString.h>
Public Types | |
enum | KviFormatConstructorTag { Format , Sprintf } |
Public Member Functions | |
void | append (char c) |
void | append (const char *str) |
void | append (const char *str, int len) |
void | append (const KviCString &str) |
void | append (const QString &str) |
void | append (KviFormatConstructorTag dummy, const char *fmt,...) |
char & | at (int idx) const |
int | base64ToBuffer (char **buffer, bool bNullToNewlines=false) |
void | bufferToBase64 (const char *buffer, int len) |
void | bufferToHex (const char *buffer, int len) |
void | clear () |
bool | contains (char c, bool caseS=true) const |
bool | contains (const char *str, bool caseS=true) const |
KviCString & | cut (int idx, int len) |
KviCString & | cutFromFirst (char c, bool bIncluded=true) |
KviCString & | cutFromFirst (const char *c, bool bIncluded=true) |
KviCString & | cutFromLast (char c, bool bIncluded=true) |
KviCString & | cutFromLast (const char *c, bool bIncluded=true) |
KviCString & | cutLeft (int len) |
KviCString & | cutRight (int len) |
KviCString & | cutToFirst (char c, bool bIncluded=true) |
KviCString & | cutToFirst (const char *c, bool bIncluded=true) |
KviCString & | cutToLast (char c, bool bIncluded=true) |
KviCString & | cutToLast (const char *c, bool bIncluded=true) |
void | ensureLastCharIs (char ch) |
bool | equalsCI (const char *other) const |
bool | equalsCI (const KviCString &other) const |
bool | equalsCIN (const char *other, int len) const |
bool | equalsCS (const char *other) const |
bool | equalsCS (const KviCString &other) const |
bool | equalsCSN (const char *other, int len) const |
void | extractFromString (const char *begin, const char *end) |
int | find (char c, int startIdx) const |
int | find (const char *str, int startIdx, bool caseS=true) const |
int | findFirstIdx (char c) const |
int | findFirstIdx (const char *str, bool caseS=true) const |
int | findLastIdx (char c) const |
int | findLastIdx (const char *str, bool caseS=true) const |
int | findRev (const char *str, int startIdx, bool caseS=true) const |
bool | firstCharIs (char ch) const |
bool | getLine (KviCString &str) |
KviCString | getToken (char sep, bool skipEmpty=false) |
bool | getToken (KviCString &str, char sep, bool skipEmpty=false) |
bool | hasData () const |
bool | hasNonWhiteSpaceData () const |
KviCString & | hexDecode () |
KviCString & | hexDecode (const char *pFrom) |
KviCString & | hexEncodeWhiteSpace () |
KviCString & | hexEncodeWithTable (const unsigned char table[256]) |
int | hexToBuffer (char **buffer, bool bNullToNewlines=false) |
KviCString & | insert (int idx, char c) |
KviCString & | insert (int idx, const char *data) |
bool | isEmpty () const |
bool | isNum () const |
bool | isUnsignedNum () const |
void | joinFromArray (KviCString **strings, const char *sep=nullptr, bool bLastSep=false) |
KviCString () | |
KviCString (char c, int fillLen=1) | |
KviCString (const char *bg, const char *end) | |
KviCString (const char *str) | |
KviCString (const char *str, int len) | |
KviCString (const kvi_wchar_t *unicode) | |
KviCString (const kvi_wchar_t *unicode, int len) | |
KviCString (const KviCString &str) | |
KviCString (const QByteArray &str) | |
KviCString (const QString &str) | |
KviCString (KviFormatConstructorTag tag, const char *fmt,...) | |
bool | lastCharIs (char ch) const |
KviCString | left (int maxLen) const |
KviCString | leftToFirst (char c, bool bIncluded=false) const |
KviCString | leftToLast (char c, bool bIncluded=false) const |
int | len () const |
KviCString | lower () const |
KviCString | lowerISO88591 () const |
KviCString | middle (int idx, int maxLen) const |
int | occurrences (char c, bool caseS=true) const |
int | occurrences (const char *str, bool caseS=true) const |
operator const char * () const | |
KviCString & | operator+= (char c) |
KviCString & | operator+= (const char *str) |
KviCString & | operator+= (const KviCString &str) |
KviCString & | operator+= (const QString &str) |
KviCString & | operator= (char c) |
KviCString & | operator= (const char *str) |
KviCString & | operator= (const KviCString &str) |
KviCString & | operator= (const QByteArray &str) |
KviCString & | operator= (const QString &str) |
KviCString & | padRight (int iLen, const char c='\0') |
void | prepend (const char *str) |
void | prepend (const char *str, int len) |
void | prepend (const KviCString &str) |
char * | ptr () const |
KviCString & | replaceAll (const char *toFind, const char *str, bool bCaseS=true) |
KviCString & | replaceAll (const char c, const char *str) |
KviCString | right (int maxLen) const |
KviCString & | setLen (int len) |
KviCString & | setNum (char num) |
KviCString & | setNum (int num) |
KviCString & | setNum (long num) |
KviCString & | setNum (short num) |
KviCString & | setNum (unsigned char num) |
KviCString & | setNum (unsigned int num) |
KviCString & | setNum (unsigned long num) |
KviCString & | setNum (unsigned short num) |
KviCString & | setStr (const char *str, int len=-1) |
KviCString ** | splitToArray (char sep, int max, int *realCount) const |
KviCString & | sprintf (const char *fmt,...) |
KviCString & | stripLeft (char c) |
KviCString & | stripLeftWhiteSpace () |
KviCString & | stripRight (char c) |
KviCString & | stripRightWhiteSpace () |
KviCString & | stripSpace () |
char | toChar (bool *bOk=nullptr) const |
int | toInt (bool *bOk=nullptr) const |
long | toLong (bool *bOk=nullptr) const |
long | toLongExt (bool *bOk=nullptr, int base=0) |
long long | toLongLong (bool *bOk=nullptr) const |
void | toLower () |
void | toLowerISO88591 () |
short | toShort (bool *bOk=nullptr) const |
unsigned char | toUChar (bool *bOk=nullptr) const |
unsigned int | toUInt (bool *bOk=nullptr) const |
unsigned long | toULong (bool *bOk=nullptr) const |
unsigned long long | toULongLong (bool *bOk=nullptr) const |
void | toUpper () |
void | toUpperISO88591 () |
unsigned short | toUShort (bool *bOk=nullptr) const |
KviCString & | transliterate (const char *szToFind, const char *szReplacement) |
KviCString & | trim () |
KviCString | upper () const |
KviCString | upperISO88591 () const |
KviCString & | vsprintf (const char *fmt, kvi_va_list list) |
~KviCString () | |
Static Public Member Functions | |
static KviCString & | emptyString () |
static bool | ext_contains (const char *data, const char *item, bool caseS=true) |
static void | freeArray (KviCString **strings) |
static void | freeBuffer (char *buffer) |
Public Attributes | |
int | m_len |
char * | m_ptr |
KviCString::KviCString | ( | ) |
References KviMemory::allocate(), m_len, and m_ptr.
Referenced by leftToFirst(), leftToLast(), and splitToArray().
KviCString::KviCString | ( | const char * | str | ) |
References KviMemory::allocate(), KviMemory::copy(), m_len, and m_ptr.
KviCString::KviCString | ( | const char * | str, |
int | len ) |
References KviMemory::allocate(), KviMemory::copy(), KVI_ASSERT, len(), m_len, and m_ptr.
KviCString::KviCString | ( | const char * | bg, |
const char * | end ) |
References KviMemory::allocate(), KviMemory::copy(), end(), KVI_ASSERT, m_len, and m_ptr.
KviCString::KviCString | ( | KviFormatConstructorTag | tag, |
const char * | fmt, | ||
... ) |
References KviMemory::allocate(), kvi_va_end, kvi_va_list, kvi_va_start, kvi_vsnprintf(), m_len, m_ptr, and KviMemory::reallocate().
KviCString::KviCString | ( | const KviCString & | str | ) |
References KviMemory::allocate(), KviMemory::copy(), KVI_ASSERT, m_len, and m_ptr.
KviCString::KviCString | ( | const QString & | str | ) |
References KviMemory::allocate(), KviMemory::copy(), m_len, and m_ptr.
KviCString::KviCString | ( | const QByteArray & | str | ) |
References KviMemory::allocate(), KviMemory::copy(), m_len, and m_ptr.
KviCString::KviCString | ( | char | c, |
int | fillLen = 1 ) |
References KviMemory::allocate(), KVI_ASSERT, m_len, m_ptr, and p.
KviCString::KviCString | ( | const kvi_wchar_t * | unicode | ) |
References KviMemory::allocate(), kvi_wstrlen(), m_len, m_ptr, and p.
KviCString::KviCString | ( | const kvi_wchar_t * | unicode, |
int | len ) |
KviCString::~KviCString | ( | ) |
References KviMemory::free(), and m_ptr.
void KviCString::append | ( | char | c | ) |
References m_len, m_ptr, and KviMemory::reallocate().
void KviCString::append | ( | const char * | str | ) |
References KviMemory::copy(), len(), m_len, m_ptr, and KviMemory::reallocate().
void KviCString::append | ( | const char * | str, |
int | len ) |
References KviMemory::copy(), KVI_ASSERT, len(), m_len, m_ptr, and KviMemory::reallocate().
void KviCString::append | ( | const KviCString & | str | ) |
References KviMemory::copy(), KVI_ASSERT, m_len, m_ptr, and KviMemory::reallocate().
Referenced by DccChatWindow::connectionInProgress(), KviIrcServerParser::decodeCtcpEscape(), KviIrcServerParser::encodeCtcpParameter(), LinksWindow::endOfLinks(), KviIrcServerParser::extractCtcpParameter(), IrcServerDetailsWidget::fillData(), KviIrcConnection::heartbeat(), joinFromArray(), KviDebugContext::KviDebugContext(), options_kvs_module_print_pages(), KviIrcUrl::parse(), KviIrcServerParser::parseNumericStats(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxyLoginV4(), replaceAll(), replaceAll(), KviHttpRequest::slotSocketConnected(), KviIrcContextDisplay::tipRequest(), KviDebugContext::trace(), KviUserListView::updateUsersLabel(), KviConfigurationFile::writeEntry(), and KviDebugContext::~KviDebugContext().
void KviCString::append | ( | const QString & | str | ) |
References KviMemory::copy(), m_len, m_ptr, and KviMemory::reallocate().
void KviCString::append | ( | KviFormatConstructorTag | dummy, |
const char * | fmt, | ||
... ) |
References kvi_va_end, kvi_va_list, kvi_va_start, kvi_vsnprintf(), m_len, m_ptr, and KviMemory::reallocate().
|
inline |
Referenced by KviIrcMessage::parseMessageTags().
int KviCString::base64ToBuffer | ( | char ** | buffer, |
bool | bNullToNewlines = false ) |
References KviMemory::allocate(), KviMemory::free(), get_base64_idx(), len(), m_len, m_ptr, and KviMemory::reallocate().
void KviCString::bufferToBase64 | ( | const char * | buffer, |
int | len ) |
References base64_chars, len(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviKvsCoreFunctions::KVSCF(), KviSASL::plainMethod(), and KviIrcSocket::proxyLoginHttp().
void KviCString::bufferToHex | ( | const char * | buffer, |
int | len ) |
References hexdigits, KVI_ASSERT, len(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviKvsCoreFunctions::KVSCF().
void KviCString::clear | ( | ) |
References m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviIrcMessage::parseMessageTags(), and setStr().
bool KviCString::contains | ( | const char * | str, |
bool | caseS = true ) const |
References KVI_ASSERT, kvi_strEqualCIN(), kvi_strEqualCSN(), len(), m_ptr, and p.
Referenced by dccModuleParseDccChat(), dccModuleParseDccGet(), dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), KviStringConversion::fromString(), IrcServerDetailsWidget::IrcServerDetailsWidget(), OptionsWidget_identityAdvanced::OptionsWidget_identityAdvanced(), KviIrcServerParser::parseCtcpReplyPing(), and KviIrcServerParser::parseNumeric004().
KviCString & KviCString::cut | ( | int | idx, |
int | len ) |
References KVI_ASSERT, len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString & KviCString::cutFromFirst | ( | char | c, |
bool | bIncluded = true ) |
References cutRight(), findFirstIdx(), and m_len.
Referenced by KviLocale::codecForName(), KviLocale::findCatalogue(), KviLocale::KviLocale(), TipWindow::nextTip(), KviIrcServerParser::parseCtcpReplyPing(), TipWindow::prevTip(), KviHttpRequest::processData(), and KviIrcSocket::proxyHandleHttpFinalReply().
KviCString & KviCString::cutFromFirst | ( | const char * | c, |
bool | bIncluded = true ) |
References cutRight(), findFirstIdx(), len(), and m_len.
KviCString & KviCString::cutFromLast | ( | char | c, |
bool | bIncluded = true ) |
References cutRight(), findLastIdx(), and m_len.
KviCString & KviCString::cutFromLast | ( | const char * | c, |
bool | bIncluded = true ) |
References cutRight(), findLastIdx(), len(), and m_len.
KviCString & KviCString::cutLeft | ( | int | len | ) |
References KVI_ASSERT, len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
Referenced by cutToFirst(), cutToFirst(), cutToLast(), cutToLast(), getLine(), getToken(), getToken(), KviIsOnNotifyListManager::handleUserhost(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviHttpRequest::processHeader(), replaceAll(), replaceAll(), and KviIdentDaemon::run().
KviCString & KviCString::cutRight | ( | int | len | ) |
References KVI_ASSERT, len(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by cutFromFirst(), cutFromFirst(), cutFromLast(), cutFromLast(), dccModuleParseDccChat(), dccModuleParseDccGet(), dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), KviIsOnNotifyListManager::handleUserhost(), KviApplication::ipcMessage(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), and KviDebugContext::~KviDebugContext().
KviCString & KviCString::cutToFirst | ( | char | c, |
bool | bIncluded = true ) |
References cutLeft(), and findFirstIdx().
Referenced by LogFile::LogFile(), KviIrcServerParser::parseCtcpReplyPing(), KviHttpRequest::processHeader(), and system_kvs_fnc_dbus().
KviCString & KviCString::cutToFirst | ( | const char * | c, |
bool | bIncluded = true ) |
References cutLeft(), findFirstIdx(), and len().
KviCString & KviCString::cutToLast | ( | char | c, |
bool | bIncluded = true ) |
References cutLeft(), and findLastIdx().
Referenced by dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), and KviMediaManager::findMediaType().
KviCString & KviCString::cutToLast | ( | const char * | c, |
bool | bIncluded = true ) |
References cutLeft(), findLastIdx(), and len().
|
static |
References g_szApplicationWideEmptyString.
Referenced by kvi_hash_key_default(), KviIrcMessage::safeParam(), KviIrcMessage::safeTrailing(), and KviIrcMessage::safeTrailingString().
|
inline |
Referenced by KviMediaManager::findMediaType().
|
inline |
References kvi_strEqualCI().
|
inline |
References kvi_strEqualCI(), m_len, and m_ptr.
Referenced by KviHttpRequest::processHeader().
|
inline |
References kvi_strEqualCIN().
|
inline |
References kvi_strEqualCS().
|
inline |
References kvi_strEqualCS(), m_len, and m_ptr.
|
inline |
References kvi_strEqualCSN().
|
static |
References kvi_strEqualCIN(), kvi_strEqualCSN(), and len().
void KviCString::extractFromString | ( | const char * | begin, |
const char * | end ) |
References begin(), KviMemory::copy(), end(), KVI_ASSERT, m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviIrcMessage::KviIrcMessage().
int KviCString::find | ( | const char * | str, |
int | startIdx, | ||
bool | caseS = true ) const |
References kvi_strEqualCIN(), kvi_strEqualCSN(), len(), m_len, m_ptr, and p.
int KviCString::findFirstIdx | ( | char | c | ) | const |
Referenced by KviLocale::codecForName(), cutFromFirst(), cutFromFirst(), cutToFirst(), cutToFirst(), KviLocale::findCatalogue(), KviIsOnNotifyListManager::handleUserhost(), KviApplication::ipcMessage(), kvi_mayBeSpam(), leftToFirst(), KviHttpRequest::processHeader(), KviIrcSocket::proxyHandleHttpFinalReply(), replaceAll(), and replaceAll().
int KviCString::findFirstIdx | ( | const char * | str, |
bool | caseS = true ) const |
References KVI_ASSERT, kvi_strEqualCIN(), kvi_strEqualCSN(), len(), m_ptr, and p.
int KviCString::findLastIdx | ( | char | c | ) | const |
References m_len, m_ptr, and p.
Referenced by cutFromLast(), cutFromLast(), cutToLast(), cutToLast(), leftToLast(), and DccBroker::renameDccSendFile().
int KviCString::findLastIdx | ( | const char * | str, |
bool | caseS = true ) const |
References KVI_ASSERT, kvi_strEqualCIN(), kvi_strEqualCSN(), len(), m_len, m_ptr, and p.
int KviCString::findRev | ( | const char * | str, |
int | startIdx, | ||
bool | caseS = true ) const |
References kvi_strEqualCIN(), kvi_strEqualCSN(), len(), m_len, m_ptr, and p.
|
inline |
Referenced by KviIsOnNotifyListManager::handleUserhost().
|
static |
References KviMemory::free().
Referenced by KviCommandFormatter::indent(), and KviCommandFormatter::unindent().
|
static |
References KviMemory::free().
Referenced by KviKvsCoreFunctions::KVSCF(), and KviKvsCoreFunctions::KVSCF().
bool KviCString::getLine | ( | KviCString & | str | ) |
References KviMemory::copy(), cutLeft(), KVI_ASSERT, m_len, m_ptr, p, and KviMemory::reallocate().
KviCString KviCString::getToken | ( | char | sep, |
bool | skipEmpty = false ) |
bool KviCString::getToken | ( | KviCString & | str, |
char | sep, | ||
bool | skipEmpty = false ) |
References KviMemory::copy(), cutLeft(), KVI_ASSERT, m_len, m_ptr, p, and KviMemory::reallocate().
Referenced by KviStringConversion::fromString(), KviIrcServerParser::parseNumericWhoReply(), and KviConfigurationFile::readColorEntry().
|
inline |
Referenced by DccChatWindow::connectionInProgress(), dccModuleParseDccChat(), dccModuleParseDccSend(), KviIrcMessage::decodeAndSplitPrefix(), KviIsOnNotifyListManager::handleIsOn(), KviStupidNotifyListManager::handleIsOn(), KviIsOnNotifyListManager::handleUserhost(), KviCommandFormatter::hasLeadingChars(), KviIrcMessage::hasMessageTags(), KviIrcMessage::hasPrefix(), LinksWindow::hostPopupClicked(), DccDescriptor::isZeroPortRequest(), KviInputEditor::keyReleaseEvent(), RegistrationWizard::notifyNickChanged(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericStats(), KviIrcServerParser::parseNumericTopicWhoTime(), KviIrcServerParser::parseNumericWhospcrpl(), KviHttpRequest::processHeader(), KviIrcSocket::proxyLoginV4(), KviIdentDaemon::run(), KviIrcMessage::safePrefix(), and KviConfigurationFile::writeEntry().
bool KviCString::hasNonWhiteSpaceData | ( | ) | const |
References m_ptr.
|
inline |
References hexDecode().
Referenced by hexDecode().
KviCString & KviCString::hexDecode | ( | const char * | pFrom | ) |
References begin(), KviMemory::free(), get_decimal_from_hex_digit_char(), len(), m_len, m_ptr, KviMemory::move(), n, and KviMemory::reallocate().
Referenced by KviConfigurationFile::load(), and LogFile::LogFile().
KviCString & KviCString::hexEncodeWhiteSpace | ( | ) |
References hexEncodeWithTable().
Referenced by KviConfigurationFile::save().
KviCString & KviCString::hexEncodeWithTable | ( | const unsigned char | table[256] | ) |
References begin(), KviMemory::free(), hexdigits, len(), m_len, m_ptr, KviMemory::move(), n, and KviMemory::reallocate().
Referenced by hexEncodeWhiteSpace(), and KviConfigurationFile::save().
int KviCString::hexToBuffer | ( | char ** | buffer, |
bool | bNullToNewlines = false ) |
References KviMemory::allocate(), KviMemory::free(), get_decimal_from_hex_digit_char(), len(), m_len, m_ptr, and ptr().
KviCString & KviCString::insert | ( | int | idx, |
char | c ) |
References m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString & KviCString::insert | ( | int | idx, |
const char * | data ) |
References KviMemory::copy(), KVI_ASSERT, len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
|
inline |
Referenced by OptionsWidget_servers::connectCurrentClicked(), RegisteredUserEntryDialog::editAllPropertiesClicked(), KviStringConversion::fromString(), KviIrcMessage::isEmpty(), KviIdentDaemon::KviIdentDaemon(), KviConfigurationFile::load(), RegistrationWizard::maskChanged(), RegisteredUserMaskDialog::okClicked(), KviIrcServerParser::parseCtcpRequestClientinfo(), KviIrcServerParser::parseCtcpRequestFinger(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcMessage::parseMessageTags(), KviHttpRequest::processHeader(), KviConfigurationFile::readColorEntry(), ListWindow::requestList(), LinksWindow::showHostPopup(), and system_kvs_fnc_dbus().
bool KviCString::isUnsignedNum | ( | ) | const |
void KviCString::joinFromArray | ( | KviCString ** | strings, |
const char * | sep = nullptr, | ||
bool | bLastSep = false ) |
|
inline |
KviCString KviCString::left | ( | int | maxLen | ) | const |
KviCString KviCString::leftToFirst | ( | char | c, |
bool | bIncluded = false ) const |
References findFirstIdx(), KviCString(), and m_ptr.
Referenced by system_kvs_fnc_dbus().
KviCString KviCString::leftToLast | ( | char | c, |
bool | bIncluded = false ) const |
References findLastIdx(), KviCString(), and m_ptr.
|
inline |
Referenced by append(), append(), base64ToBuffer(), bufferToBase64(), bufferToHex(), contains(), cut(), cutFromFirst(), cutFromLast(), cutLeft(), cutRight(), cutToFirst(), cutToLast(), UglyBase64::decode(), ext_contains(), find(), findFirstIdx(), findLastIdx(), findRev(), hexDecode(), hexEncodeWithTable(), hexToBuffer(), insert(), KviApplication::ipcMessage(), KviCString(), KviCString(), KviIpcSentinel::KviIpcSentinel(), KviIrcMessage::KviIrcMessage(), KviConfigurationFile::load(), occurrences(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcMessage::parseMessageTags(), KviIrcServerParser::parseNumeric005(), prepend(), prepend(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxyLoginV4(), DccBroker::renameDccSendFile(), replaceAll(), KviIdentDaemon::run(), KviConfigurationFile::save(), KviFile::save(), setStr(), KviHttpRequest::slotSocketConnected(), KviQString::vsprintf(), and KviDebugContext::~KviDebugContext().
KviCString KviCString::lower | ( | ) | const |
References toLower().
KviCString KviCString::lowerISO88591 | ( | ) | const |
References toLowerISO88591().
KviCString KviCString::middle | ( | int | idx, |
int | maxLen ) const |
References KVI_ASSERT, m_len, and m_ptr.
int KviCString::occurrences | ( | const char * | str, |
bool | caseS = true ) const |
References KVI_ASSERT, kvi_strEqualCIN(), kvi_strEqualCSN(), len(), m_ptr, and p.
Referenced by KviIrcServerParser::parseNumeric004().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
KviCString & KviCString::operator= | ( | char | c | ) |
References m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const char * | str | ) |
References m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const KviCString & | str | ) |
References KviMemory::copy(), KVI_ASSERT, m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const QByteArray & | str | ) |
References KviMemory::copy(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const QString & | str | ) |
References KviMemory::copy(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::padRight | ( | int | iLen, |
const char | c = '\0' ) |
References KVI_ASSERT, m_len, m_ptr, KviMemory::reallocate(), and KviMemory::set().
void KviCString::prepend | ( | const char * | str | ) |
References KviMemory::copy(), len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
void KviCString::prepend | ( | const char * | str, |
int | len ) |
References KviMemory::copy(), KVI_ASSERT, len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
void KviCString::prepend | ( | const KviCString & | str | ) |
References KviMemory::copy(), KVI_ASSERT, m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
Referenced by DccFileTransfer::connectionInProgress(), dcc_kvs_cmd_get(), DccFileTransfer::DccFileTransfer(), dccModuleParseDccGet(), dccModuleParseDccRecv(), and KviMediaManager::findMediaType().
|
inline |
Referenced by DccBroker::activeVideoExecute(), DccBroker::activeVoiceExecute(), KviModuleExtensionManager::allocateExtension(), KviModuleExtensionManager::allocateExtension(), KviModuleExtensionManager::allocateExtensionGetDescriptorList(), KviStatusBarUpdateIndicator::binaryDataReceived(), KviLocale::codecForName(), KviIrcMessage::command(), OptionsWidget_identityAdvanced::commit(), DccVideoWindow::connected(), DccVoiceWindow::connected(), DccChatWindow::connectionInProgress(), DccFileTransfer::connectionInProgress(), DccVideoWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), MediaTypeTreeWidgetItem::copyData(), OptionsWidget_proxy::currentItemChanged(), dcc_kvs_cmd_get(), dcc_module_normalize_target_data(), dcc_module_request_error(), dccModuleCtcpDccParseRoutine(), dccModuleParseDccAccept(), dccModuleParseDccCanvas(), dccModuleParseDccChat(), dccModuleParseDccGet(), dccModuleParseDccRecv(), dccModuleParseDccResume(), dccModuleParseDccRSend(), dccModuleParseDccSend(), dccModuleParseDccVideo(), dccModuleParseDccVoice(), UglyBase64::decode(), KviIrcMessage::decodeAndSplitPrefix(), DccFileTransfer::displayPaint(), DccFileTransfer::doResume(), DccMarshal::doSSLHandshake(), UglyBase64::encode(), LinksWindow::endOfLinks(), DccChatWindow::event(), DccFileTransfer::event(), DccVideoWindow::event(), DccVoiceWindow::event(), DccBroker::executeChat(), IrcServerDetailsWidget::fillData(), KviLocale::findCatalogue(), KviModuleExtensionManager::findExtensionDescriptor(), KviMediaManager::findMediaType(), KviStringConversion::fromString(), KviModuleExtensionManager::getExtensionList(), LinksWindow::getItemByHost(), KviIrcConnection::handleAuthenticate(), KviIsOnNotifyListManager::handleIsOn(), KviStupidNotifyListManager::handleIsOn(), DccBroker::handleResumeRequest(), KviIsOnNotifyListManager::handleUserhost(), KviIrcConnection::heartbeat(), hexToBuffer(), LinksWindow::hostPopupClicked(), KviIconWidget::init(), LinksWindow::insertLink(), KviApplication::ipcMessage(), kvi_compare(), kvi_hash_hash(), kvi_hash_key_equal(), KviDebugContext::KviDebugContext(), KviIpcSentinel::KviIpcSentinel(), KviIrcMessage::KviIrcMessage(), KviLocale::KviLocale(), KviSockaddr::KviSockaddr(), KviSockaddr::KviSockaddr(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviConfigurationFile::load(), KviFile::load(), KviInputHistory::load(), KviMediaManager::load(), KviProxyDataBase::load(), KviStatusBar::load(), KviStatusBarAwayIndicator::loadState(), KviStatusBarClock::loadState(), KviStatusBarConnectionTimer::loadState(), KviStatusBarUpdateIndicator::loadState(), LogFile::LogFile(), KviIrcConnection::loginComplete(), main(), RegistrationWizard::maskChanged(), KviIrcMessage::messageTags(), DccVideoCodec::name(), DccVoiceCodec::name(), KviMenuBar::newConnectionToServer(), TipWindow::nextTip(), objects_kvs_fnc_listObjects(), RegisteredUserMaskDialog::okClicked(), DccVoiceThread::openSoundcard(), options_kvs_module_print_pages(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), KviTopicWidget::paintColoredText(), KviColorWindow::paintEvent(), KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseCtcpReplyLagcheck(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestClientinfo(), KviIrcServerParser::parseCtcpRequestFinger(), KviIrcServerParser::parseCtcpRequestPage(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseLiteralMode(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralQuit(), KviIrcServerParser::parseMessage(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericEndOfWho(), KviIrcServerParser::parseNumericNames(), DccBroker::passiveVideoExecute(), DccBroker::passiveVoiceExecute(), KviIrcMessage::prefix(), TipWindow::prevTip(), KviHttpRequest::processData(), KviHttpRequest::processHeader(), KviIrcSocket::proxyHandleHttpFinalReply(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxyLoginV4(), KviConfigurationFile::readKviCStringEntry(), KviModuleExtensionManager::registerExtension(), DccBroker::renameDccSendFile(), ListWindow::requestList(), NotifierWindow::returnPressed(), DccRecvThread::run(), DccSendThread::run(), KviIdentDaemon::run(), KviIrcMessage::safeParam(), KviIrcMessage::safePrefix(), KviIrcMessage::safeTrailing(), KviConfigurationFile::save(), KviFile::save(), KviInputHistory::save(), KviMediaManager::save(), KviProxyDataBase::save(), KviStatusBar::save(), OptionsWidget_messageColors::save(), KviStatusBarAwayIndicator::saveState(), KviStatusBarClock::saveState(), KviStatusBarConnectionTimer::saveState(), KviStatusBarUpdateIndicator::saveState(), KviConfigurationFile::setFontProperties(), OptionsWidget_mediaTypes::setLineEdits(), LinksWindow::showHostPopup(), KviFile::skipFirst(), KviHttpRequest::slotSocketConnected(), splitToArray(), DccFileTransfer::startConnection(), system_kvs_fnc_dbus(), KviLagMeter::timerEvent(), KviIrcConnectionRequestQueue::timerSlot(), KviIrcContextDisplay::tipRequest(), DccFileTransfer::tipText(), KviChannelWindow::topicSelected(), KviDebugContext::trace(), KviMessageCatalogue::translate(), KviMessageCatalogue::translateToQString(), DccVoiceWindow::updateInfo(), KviChannelWindow::updateModeLabel(), KviUserListView::updateUsersLabel(), KviQString::vsprintf(), KviConfigurationFile::writeEntry(), KviConfigurationFile::writeEntry(), DccDescriptor::zeroPortRequestTag(), and KviDebugContext::~KviDebugContext().
KviCString & KviCString::replaceAll | ( | const char * | toFind, |
const char * | str, | ||
bool | bCaseS = true ) |
References append(), KviMemory::copy(), cutLeft(), findFirstIdx(), left(), len(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::replaceAll | ( | const char | c, |
const char * | str ) |
References append(), KviMemory::copy(), cutLeft(), findFirstIdx(), left(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviLocale::codecForName().
KviCString KviCString::right | ( | int | maxLen | ) | const |
Referenced by DccBroker::renameDccSendFile(), stripRight(), stripRightWhiteSpace(), stripSpace(), and trim().
KviCString & KviCString::setLen | ( | int | len | ) |
References KVI_ASSERT, m_len, m_ptr, and KviMemory::reallocate().
Referenced by UglyBase64::decode(), UglyBase64::encode(), joinFromArray(), and KviFile::load().
|
inline |
|
inline |
KviCString & KviCString::setNum | ( | long | num | ) |
References m_len, m_ptr, p, and KviMemory::reallocate().
Referenced by DccChatWindow::connectionInProgress(), and DccBroker::renameDccSendFile().
|
inline |
|
inline |
|
inline |
KviCString & KviCString::setNum | ( | unsigned long | num | ) |
References m_len, m_ptr, p, and KviMemory::reallocate().
|
inline |
KviCString & KviCString::setStr | ( | const char * | str, |
int | len = -1 ) |
References clear(), len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString ** KviCString::splitToArray | ( | char | sep, |
int | max, | ||
int * | realCount ) const |
References KviMemory::allocate(), KviCString(), m_ptr, ptr(), and KviMemory::reallocate().
Referenced by KviCommandFormatter::indent(), and KviCommandFormatter::unindent().
KviCString & KviCString::sprintf | ( | const char * | fmt, |
... ) |
References kvi_va_end, kvi_va_list, kvi_va_start, kvi_vsnprintf(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by dccModuleParseDccSend(), KviInputHistory::load(), KviMediaManager::load(), KviProxyDataBase::load(), KviStatusBar::load(), TipWindow::nextTip(), TipWindow::prevTip(), KviInputHistory::save(), KviMediaManager::save(), KviProxyDataBase::save(), KviStatusBar::save(), OptionsWidget_messageColors::save(), LinksWindow::showHostPopup(), KviIrcConnectionRequestQueue::timerSlot(), DccVoiceWindow::updateInfo(), and KviUserListView::updateUsersLabel().
KviCString & KviCString::stripLeft | ( | char | c | ) |
References KVI_ASSERT, m_len, m_ptr, KviMemory::move(), p, and KviMemory::reallocate().
KviCString & KviCString::stripLeftWhiteSpace | ( | ) |
References m_len, m_ptr, KviMemory::move(), p, and KviMemory::reallocate().
Referenced by KviConfigurationFile::readColorEntry(), and KviConfigurationFile::readFontEntry().
KviCString & KviCString::stripRight | ( | char | c | ) |
References m_len, m_ptr, KviMemory::reallocate(), and right().
Referenced by KviHttpRequest::emitLines().
KviCString & KviCString::stripRightWhiteSpace | ( | ) |
References m_len, m_ptr, KviMemory::reallocate(), and right().
Referenced by KviConfigurationFile::load().
KviCString & KviCString::stripSpace | ( | ) |
References left(), m_len, m_ptr, KviMemory::move(), KviMemory::reallocate(), and right().
|
inline |
|
inline |
void KviCString::toLower | ( | ) |
Referenced by DccBroker::executeChat(), KviLocale::findCatalogue(), KviLocale::KviLocale(), and lower().
void KviCString::toLowerISO88591 | ( | ) |
References iso88591_toLower_map, m_ptr, and p.
Referenced by lowerISO88591().
|
inline |
|
inline |
|
inline |
Referenced by KviStatusBarUpdateIndicator::binaryDataReceived(), dccModuleParseDccGet(), dccModuleParseDccRecv(), getDateTimeStringFromCharTimeT(), KviIrcServerParser::parseCtcpReplyPing(), KviIrcServerParser::parseNumericCreationTime(), KviIrcServerParser::parseNumericTopicWhoTime(), KviIrcServerParser::parseNumericWhoisIdle(), KviHttpRequest::processHeader(), and system_kvs_fnc_dbus().
unsigned long KviCString::toULong | ( | bool * | bOk = nullptr | ) | const |
Referenced by dcc_module_normalize_target_data().
unsigned long long KviCString::toULongLong | ( | bool * | bOk = nullptr | ) | const |
Referenced by dccModuleParseDccResume().
void KviCString::toUpper | ( | ) |
Referenced by dccModuleCtcpDccParseRoutine(), KviIrcMessage::KviIrcMessage(), and upper().
void KviCString::toUpperISO88591 | ( | ) |
References iso88591_toUpper_map, m_ptr, and p.
Referenced by KviIrcServerParser::parseCtcpRequestClientinfo(), and upperISO88591().
|
inline |
Referenced by KviInputEditor::keyReleaseEvent().
KviCString & KviCString::transliterate | ( | const char * | szToFind, |
const char * | szReplacement ) |
KviCString & KviCString::trim | ( | ) |
KviCString KviCString::upper | ( | ) | const |
References toUpper().
KviCString KviCString::upperISO88591 | ( | ) | const |
References toUpperISO88591().
KviCString & KviCString::vsprintf | ( | const char * | fmt, |
kvi_va_list | list ) |
References kvi_va_copy, kvi_va_end, kvi_va_list, kvi_vsnprintf(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviDebugContext::KviDebugContext(), and KviDebugContext::trace().
int KviCString::m_len |
Referenced by append(), append(), append(), append(), append(), append(), base64ToBuffer(), bufferToBase64(), bufferToHex(), clear(), cut(), cutFromFirst(), cutFromFirst(), cutFromLast(), cutFromLast(), cutLeft(), cutRight(), equalsCI(), equalsCS(), extractFromString(), find(), find(), findLastIdx(), findLastIdx(), findRev(), getLine(), getToken(), hexDecode(), hexEncodeWithTable(), hexToBuffer(), insert(), insert(), kvi_extractToken(), kvi_extractUpTo(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), left(), middle(), operator=(), operator=(), operator=(), operator=(), operator=(), operator==(), padRight(), prepend(), prepend(), prepend(), replaceAll(), replaceAll(), right(), setLen(), setNum(), setNum(), setStr(), sprintf(), stripLeft(), stripLeftWhiteSpace(), stripRight(), stripRightWhiteSpace(), stripSpace(), toLongExt(), trim(), and vsprintf().
char* KviCString::m_ptr |
Referenced by append(), append(), append(), append(), append(), append(), base64ToBuffer(), bufferToBase64(), bufferToHex(), clear(), contains(), contains(), cut(), cutLeft(), cutRight(), equalsCI(), equalsCS(), extractFromString(), find(), find(), findFirstIdx(), findFirstIdx(), findLastIdx(), findLastIdx(), findRev(), getLine(), getToken(), getToken(), hasNonWhiteSpaceData(), hexDecode(), hexEncodeWithTable(), hexToBuffer(), insert(), insert(), isNum(), isUnsignedNum(), kvi_extractToken(), kvi_extractUpTo(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), left(), leftToFirst(), leftToLast(), middle(), occurrences(), occurrences(), operator!=(), operator!=(), operator!=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator==(), operator==(), operator==(), padRight(), prepend(), prepend(), prepend(), replaceAll(), replaceAll(), right(), setLen(), setNum(), setNum(), setStr(), splitToArray(), sprintf(), stripLeft(), stripLeftWhiteSpace(), stripRight(), stripRightWhiteSpace(), stripSpace(), toLong(), toLongExt(), toLongLong(), toLower(), toLowerISO88591(), toULong(), toULongLong(), toUpper(), toUpperISO88591(), transliterate(), trim(), vsprintf(), and ~KviCString().