KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
KviCString.cpp File Reference
#include "kvi_debug.h"
#include "KviCString.h"
#include "KviMemory.h"

Macros

#define _KVI_STRING_CPP_
 
#define NOT_AT_END(__str)   (*__str && (*__str != terminator))
 
#define NOT_AT_END(__str)   (*__str && (*__str != terminator))
 

Functions

static unsigned char get_base64_idx (char base64)
 
static char get_decimal_from_hex_digit_char (char dgt)
 
const char * kvi_extractToken (KviCString &str, const char *aux_ptr, char sep)
 
const char * kvi_extractUpTo (KviCString &str, const char *aux_ptr, char sep)
 
int kvi_irc_vsnprintf (char *buffer, const char *fmt, kvi_va_list list, bool *bTruncated)
 
bool kvi_matchStringCI (const char *exp, const char *str)
 
bool kvi_matchStringCS (const char *exp, const char *str)
 
bool kvi_matchStringWithTerminator (const char *exp, const char *str, char terminator, const char **r1, const char **r2)
 
bool kvi_matchWildExpr (const char *m1, const char *m2)
 
bool kvi_matchWildExprWithTerminator (const char *m1, const char *m2, char terminator, const char **r1, const char **r2)
 
bool kvi_qstringEqualCI (const QString &s1, const QString &s2)
 
int kvi_strcmpCI (const char *str1, const char *str2)
 
int kvi_strcmpCS (const char *str1, const char *str2)
 
bool kvi_strEqualCI (const char *str1, const char *str2)
 
bool kvi_strEqualCIN (const char *str1, const char *str2, int len)
 
bool kvi_strEqualCS (const char *str1, const char *str2)
 
bool kvi_strEqualCSN (const char *str1, const char *str2, int len)
 
int kvi_strMatchRevCS (const char *str1, const char *str2, int index)
 
int kvi_vsnprintf (char *buffer, int len, const char *fmt, kvi_va_list list)
 
kvi_wslen_t kvi_wstrlen (const kvi_wchar_t *str)
 

Variables

static const char * base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 
static KviCString g_szApplicationWideEmptyString
 
static char hexdigits [16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }
 
unsigned char iso88591_toLower_map [256]
 
unsigned char iso88591_toUpper_map [256]
 

Macro Definition Documentation

#define _KVI_STRING_CPP_
#define NOT_AT_END (   __str)    (*__str && (*__str != terminator))
#define NOT_AT_END (   __str)    (*__str && (*__str != terminator))

Function Documentation

static unsigned char get_base64_idx ( char  base64)
static
static char get_decimal_from_hex_digit_char ( char  dgt)
static
const char* kvi_extractToken ( KviCString str,
const char *  aux_ptr,
char  sep 
)
const char* kvi_extractUpTo ( KviCString str,
const char *  aux_ptr,
char  sep 
)
int kvi_irc_vsnprintf ( char *  buffer,
const char *  fmt,
kvi_va_list  list,
bool *  bTruncated 
)

References KVI_ASSERT, kvi_va_arg, p, s, and t().

Referenced by KviIrcConnection::sendFmtData().

bool kvi_matchStringCI ( const char *  exp,
const char *  str 
)
bool kvi_matchStringCS ( const char *  exp,
const char *  str 
)
bool kvi_matchStringWithTerminator ( const char *  exp,
const char *  str,
char  terminator,
const char **  r1,
const char **  r2 
)

References NOT_AT_END.

bool kvi_matchWildExpr ( const char *  m1,
const char *  m2 
)
bool kvi_matchWildExprWithTerminator ( const char *  m1,
const char *  m2,
char  terminator,
const char **  r1,
const char **  r2 
)

References NOT_AT_END.

bool kvi_qstringEqualCI ( const QString &  s1,
const QString &  s2 
)

References l.

int kvi_strcmpCI ( const char *  str1,
const char *  str2 
)

References KVI_ASSERT.

Referenced by kvi_compare().

int kvi_strcmpCS ( const char *  str1,
const char *  str2 
)

References KVI_ASSERT.

bool kvi_strEqualCI ( const char *  str1,
const char *  str2 
)
bool kvi_strEqualCIN ( const char *  str1,
const char *  str2,
int  len 
)
bool kvi_strEqualCS ( const char *  str1,
const char *  str2 
)
bool kvi_strEqualCSN ( const char *  str1,
const char *  str2,
int  len 
)
int kvi_strMatchRevCS ( const char *  str1,
const char *  str2,
int  index 
)

References KVI_ASSERT.

int kvi_vsnprintf ( char *  buffer,
int  len,
const char *  fmt,
kvi_va_list  list 
)
kvi_wslen_t kvi_wstrlen ( const kvi_wchar_t str)

Variable Documentation

const char* base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static
KviCString g_szApplicationWideEmptyString
static

Referenced by KviCString::emptyString().

char hexdigits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }
static
unsigned char iso88591_toLower_map[256]
unsigned char iso88591_toUpper_map[256]