![]() |
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 append(), cut(), cutFromFirst(), cutFromFirst(), cutFromLast(), cutFromLast(), cutLeft(), cutRight(), cutToFirst(), cutToFirst(), cutToLast(), cutToLast(), emptyString(), equalsCI(), equalsCS(), freeArray(), getLine(), getToken(), getToken(), hexDecode(), hexDecode(), hexEncodeWhiteSpace(), hexEncodeWithTable(), insert(), insert(), joinFromArray(), KviCString(), left(), leftToFirst(), leftToLast(), lower(), lowerISO88591(), middle(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator=(), operator=(), operator=(), padRight(), prepend(), replaceAll(), replaceAll(), right(), setLen(), setNum(), setNum(), setNum(), setNum(), setNum(), setNum(), setNum(), setNum(), setStr(), splitToArray(), sprintf(), stripLeft(), stripLeftWhiteSpace(), stripRight(), stripRightWhiteSpace(), stripSpace(), transliterate(), trim(), upper(), upperISO88591(), and vsprintf().
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, KviCString(), 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, KviCString(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by DccChatWindow::connectionInProgress(), KviIrcServerParser::decodeCtcpEscape(), KviIrcServerParser::encodeCtcpParameter(), LinksWindow::endOfLinks(), ensureLastCharIs(), KviIrcServerParser::extractCtcpParameter(), IrcServerDetailsWidget::fillData(), KviIrcConnection::heartbeat(), joinFromArray(), KviDebugContext::KviDebugContext(), operator+=(), operator+=(), operator+=(), operator+=(), 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().
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(), KviIrcServerParser::parseCtcpReplyPing(), and KviIrcServerParser::parseNumeric004().
KviCString & KviCString::cut | ( | int | idx, |
int | len ) |
References KVI_ASSERT, KviCString(), len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString & KviCString::cutFromFirst | ( | char | c, |
bool | bIncluded = true ) |
References cutRight(), findFirstIdx(), KviCString(), 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(), KviCString(), len(), and m_len.
KviCString & KviCString::cutFromLast | ( | char | c, |
bool | bIncluded = true ) |
References cutRight(), findLastIdx(), KviCString(), and m_len.
KviCString & KviCString::cutFromLast | ( | const char * | c, |
bool | bIncluded = true ) |
References cutRight(), findLastIdx(), KviCString(), len(), and m_len.
KviCString & KviCString::cutLeft | ( | int | len | ) |
References KVI_ASSERT, KviCString(), 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(), and replaceAll().
KviCString & KviCString::cutRight | ( | int | len | ) |
References KVI_ASSERT, KviCString(), 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(), and KviIrcServerParser::parseLiteralPrivmsg().
KviCString & KviCString::cutToFirst | ( | char | c, |
bool | bIncluded = true ) |
References cutLeft(), findFirstIdx(), and KviCString().
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(), KviCString(), and len().
KviCString & KviCString::cutToLast | ( | char | c, |
bool | bIncluded = true ) |
References cutLeft(), findLastIdx(), and KviCString().
Referenced by dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), and KviMediaManager::findMediaType().
KviCString & KviCString::cutToLast | ( | const char * | c, |
bool | bIncluded = true ) |
References cutLeft(), findLastIdx(), KviCString(), and len().
|
static |
References g_szApplicationWideEmptyString, and KviCString().
Referenced by kvi_hash_key_default(), KviIrcMessage::safeParam(), KviIrcMessage::safeTrailing(), and KviIrcMessage::safeTrailingString().
|
inline |
References append(), and lastCharIs().
Referenced by KviMediaManager::findMediaType().
|
inline |
References kvi_strEqualCI(), and m_ptr.
|
inline |
References kvi_strEqualCI(), KviCString(), m_len, and m_ptr.
Referenced by KviHttpRequest::processHeader().
|
inline |
References kvi_strEqualCIN(), len(), and m_ptr.
|
inline |
References kvi_strEqualCS(), and m_ptr.
|
inline |
References kvi_strEqualCS(), KviCString(), m_len, and m_ptr.
|
inline |
References kvi_strEqualCSN(), len(), and m_ptr.
|
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().
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 |
References m_ptr.
Referenced by KviIsOnNotifyListManager::handleUserhost().
|
static |
References KviMemory::free(), and KviCString().
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, KviCString(), m_len, m_ptr, p, and KviMemory::reallocate().
KviCString KviCString::getToken | ( | char | sep, |
bool | skipEmpty = false ) |
References cutLeft(), KviCString(), m_ptr, and p.
bool KviCString::getToken | ( | KviCString & | str, |
char | sep, | ||
bool | skipEmpty = false ) |
References KviMemory::copy(), cutLeft(), KVI_ASSERT, KviCString(), m_len, m_ptr, p, and KviMemory::reallocate().
Referenced by KviStringConversion::fromString(), KviIrcServerParser::parseNumericWhoReply(), and KviConfigurationFile::readColorEntry().
|
inline |
References m_len.
Referenced by DccChatWindow::connectionInProgress(), dccModuleParseDccChat(), dccModuleParseDccSend(), KviIsOnNotifyListManager::handleIsOn(), KviStupidNotifyListManager::handleIsOn(), KviIsOnNotifyListManager::handleUserhost(), KviCommandFormatter::hasLeadingChars(), LinksWindow::hostPopupClicked(), RegistrationWizard::notifyNickChanged(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericStats(), KviIrcServerParser::parseNumericTopicWhoTime(), KviIrcServerParser::parseNumericWhospcrpl(), KviHttpRequest::processHeader(), KviIrcSocket::proxyLoginV4(), KviIdentDaemon::run(), and KviConfigurationFile::writeEntry().
bool KviCString::hasNonWhiteSpaceData | ( | ) | const |
References m_ptr.
|
inline |
References hexDecode(), KviCString(), and m_ptr.
Referenced by hexDecode().
KviCString & KviCString::hexDecode | ( | const char * | pFrom | ) |
References begin(), KviMemory::free(), get_decimal_from_hex_digit_char(), KviCString(), len(), m_len, m_ptr, KviMemory::move(), n, and KviMemory::reallocate().
Referenced by KviConfigurationFile::load(), and LogFile::LogFile().
KviCString & KviCString::hexEncodeWhiteSpace | ( | ) |
References hexEncodeWithTable(), and KviCString().
Referenced by KviConfigurationFile::save().
KviCString & KviCString::hexEncodeWithTable | ( | const unsigned char | table[256] | ) |
References begin(), KviMemory::free(), hexdigits, KviCString(), 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 KviCString(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString & KviCString::insert | ( | int | idx, |
const char * | data ) |
References KviMemory::copy(), KVI_ASSERT, KviCString(), len(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
|
inline |
References m_len.
Referenced by OptionsWidget_servers::connectCurrentClicked(), RegisteredUserEntryDialog::editAllPropertiesClicked(), KviStringConversion::fromString(), KviConfigurationFile::load(), RegistrationWizard::maskChanged(), RegisteredUserMaskDialog::okClicked(), KviIrcServerParser::parseCtcpRequestClientinfo(), KviIrcServerParser::parseCtcpRequestFinger(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), 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 ) |
References append(), KviCString(), and setLen().
|
inline |
KviCString KviCString::left | ( | int | maxLen | ) | const |
References KviCString(), m_len, and m_ptr.
Referenced by KviIsOnNotifyListManager::handleUserhost(), KviHttpRequest::processHeader(), DccBroker::renameDccSendFile(), replaceAll(), replaceAll(), stripSpace(), and trim().
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 |
References m_len.
Referenced by append(), append(), base64ToBuffer(), bufferToBase64(), bufferToHex(), contains(), cut(), cutFromFirst(), cutFromLast(), cutLeft(), cutRight(), cutToFirst(), cutToLast(), UglyBase64::decode(), equalsCIN(), equalsCSN(), ext_contains(), find(), findFirstIdx(), findLastIdx(), findRev(), hexDecode(), hexEncodeWithTable(), hexToBuffer(), insert(), KviApplication::ipcMessage(), KviCString(), KviCString(), KviIpcSentinel::KviIpcSentinel(), KviConfigurationFile::load(), occurrences(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseNumeric005(), prepend(), prepend(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxyLoginV4(), DccBroker::renameDccSendFile(), replaceAll(), KviIdentDaemon::run(), KviConfigurationFile::save(), KviFile::save(), setStr(), KviHttpRequest::slotSocketConnected(), and KviQString::vsprintf().
KviCString KviCString::lower | ( | ) | const |
References KviCString(), and toLower().
KviCString KviCString::lowerISO88591 | ( | ) | const |
References KviCString(), and toLowerISO88591().
KviCString KviCString::middle | ( | int | idx, |
int | maxLen ) const |
References KVI_ASSERT, KviCString(), 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 |
References m_ptr.
|
inline |
References append(), and KviCString().
|
inline |
References append(), and KviCString().
|
inline |
References append(), and KviCString().
|
inline |
References append(), and KviCString().
KviCString & KviCString::operator= | ( | char | c | ) |
References KviCString(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const char * | str | ) |
References KviCString(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const KviCString & | str | ) |
References KviMemory::copy(), KVI_ASSERT, KviCString(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const QByteArray & | str | ) |
References KviMemory::copy(), KviCString(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::operator= | ( | const QString & | str | ) |
References KviMemory::copy(), KviCString(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::padRight | ( | int | iLen, |
const char | c = '\0' ) |
References KVI_ASSERT, KviCString(), 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, KviCString(), m_len, m_ptr, KviMemory::move(), and KviMemory::reallocate().
Referenced by DccFileTransfer::connectionInProgress(), dcc_kvs_cmd_get(), dccModuleParseDccGet(), dccModuleParseDccRecv(), and KviMediaManager::findMediaType().
|
inline |
References m_ptr.
Referenced by DccBroker::activeVideoExecute(), DccBroker::activeVoiceExecute(), KviModuleExtensionManager::allocateExtension(), KviModuleExtensionManager::allocateExtension(), KviModuleExtensionManager::allocateExtensionGetDescriptorList(), KviStatusBarUpdateIndicator::binaryDataReceived(), KviLocale::codecForName(), DccChatWindow::connectionInProgress(), DccFileTransfer::connectionInProgress(), DccVideoWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), 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(), 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(), 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(), 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::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericEndOfWho(), KviIrcServerParser::parseNumericNames(), DccBroker::passiveVideoExecute(), DccBroker::passiveVoiceExecute(), TipWindow::prevTip(), KviHttpRequest::processData(), KviHttpRequest::processHeader(), KviIrcSocket::proxyHandleHttpFinalReply(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxyLoginV4(), KviConfigurationFile::readKviCStringEntry(), KviModuleExtensionManager::registerExtension(), DccBroker::renameDccSendFile(), ListWindow::requestList(), NotifierWindow::returnPressed(), KviIdentDaemon::run(), KviIrcMessage::safeParam(), 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(), LinksWindow::showHostPopup(), KviFile::skipFirst(), KviHttpRequest::slotSocketConnected(), splitToArray(), system_kvs_fnc_dbus(), KviLagMeter::timerEvent(), KviIrcConnectionRequestQueue::timerSlot(), KviIrcContextDisplay::tipRequest(), KviChannelWindow::topicSelected(), KviDebugContext::trace(), KviMessageCatalogue::translate(), KviMessageCatalogue::translateToQString(), DccVoiceWindow::updateInfo(), KviChannelWindow::updateModeLabel(), KviUserListView::updateUsersLabel(), KviQString::vsprintf(), KviConfigurationFile::writeEntry(), KviConfigurationFile::writeEntry(), and KviDebugContext::~KviDebugContext().
KviCString & KviCString::replaceAll | ( | const char * | toFind, |
const char * | str, | ||
bool | bCaseS = true ) |
References append(), KviMemory::copy(), cutLeft(), findFirstIdx(), KviCString(), left(), len(), m_len, m_ptr, and KviMemory::reallocate().
KviCString & KviCString::replaceAll | ( | const char | c, |
const char * | str ) |
References append(), KviMemory::copy(), cutLeft(), findFirstIdx(), KviCString(), left(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviLocale::codecForName().
KviCString KviCString::right | ( | int | maxLen | ) | const |
References KviCString(), m_len, and m_ptr.
Referenced by DccBroker::renameDccSendFile(), stripRight(), stripRightWhiteSpace(), stripSpace(), and trim().
KviCString & KviCString::setLen | ( | int | len | ) |
References KVI_ASSERT, KviCString(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by UglyBase64::decode(), UglyBase64::encode(), joinFromArray(), and KviFile::load().
|
inline |
References KviCString(), and setNum().
Referenced by setNum().
|
inline |
References KviCString(), and setNum().
Referenced by setNum().
KviCString & KviCString::setNum | ( | long | num | ) |
References KviCString(), m_len, m_ptr, p, and KviMemory::reallocate().
Referenced by DccChatWindow::connectionInProgress(), and DccBroker::renameDccSendFile().
|
inline |
References KviCString(), and setNum().
Referenced by setNum().
|
inline |
References KviCString(), and setNum().
Referenced by setNum().
|
inline |
References KviCString(), and setNum().
Referenced by setNum().
KviCString & KviCString::setNum | ( | unsigned long | num | ) |
References KviCString(), m_len, m_ptr, p, and KviMemory::reallocate().
|
inline |
References KviCString(), and setNum().
Referenced by setNum().
KviCString & KviCString::setStr | ( | const char * | str, |
int | len = -1 ) |
References clear(), KviCString(), 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().
KviCString & KviCString::sprintf | ( | const char * | fmt, |
... ) |
References kvi_va_end, kvi_va_list, kvi_va_start, kvi_vsnprintf(), KviCString(), 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, KviCString(), m_len, m_ptr, KviMemory::move(), p, and KviMemory::reallocate().
KviCString & KviCString::stripLeftWhiteSpace | ( | ) |
References KviCString(), m_len, m_ptr, KviMemory::move(), p, and KviMemory::reallocate().
Referenced by KviConfigurationFile::readColorEntry(), and KviConfigurationFile::readFontEntry().
KviCString & KviCString::stripRight | ( | char | c | ) |
References KviCString(), m_len, m_ptr, KviMemory::reallocate(), and right().
Referenced by KviHttpRequest::emitLines().
KviCString & KviCString::stripRightWhiteSpace | ( | ) |
References KviCString(), m_len, m_ptr, KviMemory::reallocate(), and right().
Referenced by KviConfigurationFile::load().
KviCString & KviCString::stripSpace | ( | ) |
References KviCString(), left(), m_len, m_ptr, KviMemory::move(), KviMemory::reallocate(), and right().
|
inline |
long KviCString::toLong | ( | bool * | bOk = nullptr | ) | const |
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 |
References toULong().
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(), toUChar(), and toUInt().
unsigned long long KviCString::toULongLong | ( | bool * | bOk = nullptr | ) | const |
Referenced by dccModuleParseDccResume().
void KviCString::toUpper | ( | ) |
Referenced by dccModuleCtcpDccParseRoutine(), and upper().
void KviCString::toUpperISO88591 | ( | ) |
References iso88591_toUpper_map, m_ptr, and p.
Referenced by KviIrcServerParser::parseCtcpRequestClientinfo(), and upperISO88591().
KviCString & KviCString::transliterate | ( | const char * | szToFind, |
const char * | szReplacement ) |
References KviCString(), m_ptr, and p.
KviCString & KviCString::trim | ( | ) |
References KviCString(), left(), m_len, m_ptr, KviMemory::move(), KviMemory::reallocate(), and right().
Referenced by KviCommandFormatter::hasLeadingChars(), KviIrcServerParser::parseCtcpRequestClientinfo(), KviHttpRequest::processHeader(), KviIrcSocket::proxyHandleHttpFinalReply(), and KviIdentDaemon::run().
KviCString KviCString::upper | ( | ) | const |
References KviCString(), and toUpper().
KviCString KviCString::upperISO88591 | ( | ) | const |
References KviCString(), and toUpperISO88591().
KviCString & KviCString::vsprintf | ( | const char * | fmt, |
kvi_va_list | list ) |
References kvi_va_copy, kvi_va_end, kvi_va_list, kvi_vsnprintf(), KviCString(), m_len, m_ptr, and KviMemory::reallocate().
Referenced by KviDebugContext::trace().
int KviCString::m_len |
Referenced by append(), append(), append(), append(), append(), append(), at(), base64ToBuffer(), bufferToBase64(), bufferToHex(), clear(), cut(), cutFromFirst(), cutFromFirst(), cutFromLast(), cutFromLast(), cutLeft(), cutRight(), equalsCI(), equalsCS(), extractFromString(), find(), find(), findLastIdx(), findLastIdx(), findRev(), getLine(), getToken(), hasData(), hexDecode(), hexEncodeWithTable(), hexToBuffer(), insert(), insert(), isEmpty(), kvi_extractToken(), kvi_extractUpTo(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), lastCharIs(), left(), len(), 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(), at(), base64ToBuffer(), bufferToBase64(), bufferToHex(), clear(), contains(), contains(), cut(), cutLeft(), cutRight(), equalsCI(), equalsCI(), equalsCIN(), equalsCS(), equalsCS(), equalsCSN(), extractFromString(), find(), find(), findFirstIdx(), findFirstIdx(), findLastIdx(), findLastIdx(), findRev(), firstCharIs(), getLine(), getToken(), getToken(), hasNonWhiteSpaceData(), hexDecode(), hexDecode(), hexEncodeWithTable(), hexToBuffer(), insert(), insert(), isNum(), isUnsignedNum(), kvi_extractToken(), kvi_extractUpTo(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), KviCString(), lastCharIs(), left(), leftToFirst(), leftToLast(), middle(), occurrences(), occurrences(), operator const char *(), operator!=(), operator!=(), operator!=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator==(), operator==(), operator==(), padRight(), prepend(), prepend(), prepend(), ptr(), 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().