KVIrc  4.9.2
DeveloperAPIs
Classes | Macros | Typedefs | Functions
KviCString.h File Reference
#include "kvi_settings.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <QtGlobal>
#include <QString>
#include <QByteArray>
#include "kvi_inttypes.h"
#include "KviHeapObject.h"
#include "kvi_stdarg.h"

Go to the source code of this file.

Classes

class  KviCString
 

Macros

#define __KVI_EXTERN   extern
 
#define kvi_matchString   kvi_matchStringCI
 
#define kvi_strEqualNoLocaleCI(str1, str2)   kvi_strEqualCI(str1, str2)
 
#define kvi_strEqualNoLocaleCIN(str1, str2, len)   kvi_strEqualCIN(str1, str2, len)
 
#define kvi_strLen(str)   strlen(str)
 

Typedefs

typedef kvi_u16_t kvi_wchar_t
 
typedef kvi_u32_t kvi_wslen_t
 

Functions

int kvi_compare (const KviCString *p1, const KviCString *p2)
 
__KVI_EXTERN KVILIB_API const
char * 
kvi_extractToken (KviCString &str, const char *aux_ptr, char sep= ' ')
 
__KVI_EXTERN KVILIB_API const
char * 
kvi_extractUpTo (KviCString &str, const char *aux_ptr, char sep= ' ')
 
__KVI_EXTERN KVILIB_API int kvi_irc_vsnprintf (char *buffer, const char *fmt, kvi_va_list list, bool *bTruncated)
 
__KVI_EXTERN KVILIB_API bool kvi_matchStringCI (register const char *exp, register const char *str)
 
__KVI_EXTERN KVILIB_API bool kvi_matchStringCS (register const char *exp, register const char *str)
 
__KVI_EXTERN KVILIB_API bool kvi_matchStringWithTerminator (register const char *exp, register const char *str, char terminator, const char **r1, const char **r2)
 
__KVI_EXTERN KVILIB_API bool kvi_matchWildExpr (register const char *m1, register const char *m2)
 
__KVI_EXTERN KVILIB_API bool kvi_matchWildExprWithTerminator (register const char *m1, register const char *m2, char terminator, const char **r1, const char **r2)
 
__KVI_EXTERN KVILIB_API bool kvi_qstringEqualCI (const QString &s1, const QString &s2)
 
__KVI_EXTERN KVILIB_API int kvi_strcmpCI (const char *str1, const char *str2)
 
__KVI_EXTERN KVILIB_API int kvi_strcmpCS (const char *str1, const char *str2)
 
__KVI_EXTERN KVILIB_API bool kvi_strEqualCI (const char *str1, const char *str2)
 
__KVI_EXTERN KVILIB_API bool kvi_strEqualCIN (const char *str1, const char *str2, int len)
 
__KVI_EXTERN KVILIB_API bool kvi_strEqualCS (const char *str1, const char *str2)
 
__KVI_EXTERN KVILIB_API bool kvi_strEqualCSN (const char *str1, const char *str2, int len)
 
__KVI_EXTERN KVILIB_API int kvi_strMatchRevCS (const char *str1, const char *str2, int index=-1)
 
__KVI_EXTERN KVILIB_API int kvi_vsnprintf (char *buffer, int len, const char *fmt, kvi_va_list list)
 
__KVI_EXTERN KVILIB_API kvi_wslen_t kvi_wstrlen (const kvi_wchar_t *str)
 
__KVI_EXTERN KVILIB_API int kvi_wvsnprintcf (kvi_wchar_t *buffer, kvi_wslen_t len, const char *fmt, kvi_va_list list)
 
__KVI_EXTERN KVILIB_API int kvi_wvsnprintf (kvi_wchar_t *buffer, kvi_wslen_t len, const kvi_wchar_t *fmt, kvi_va_list list)
 
__KVI_EXTERN bool operator!= (const KviCString &left, const KviCString &right)
 
__KVI_EXTERN bool operator!= (const KviCString &left, const char *right)
 
__KVI_EXTERN bool operator!= (const char *left, const KviCString &right)
 
__KVI_EXTERN KviCString operator+ (const KviCString &left, const KviCString &right)
 
__KVI_EXTERN KviCString operator+ (const KviCString &left, const char *right)
 
__KVI_EXTERN KviCString operator+ (const char *left, const KviCString &right)
 
__KVI_EXTERN KviCString operator+ (const KviCString &left, char right)
 
__KVI_EXTERN KviCString operator+ (char left, const KviCString &right)
 
__KVI_EXTERN bool operator== (const KviCString &left, const KviCString &right)
 
__KVI_EXTERN bool operator== (const KviCString &left, const char *right)
 
__KVI_EXTERN bool operator== (const char *left, const KviCString &right)
 

Macro Definition Documentation

#define __KVI_EXTERN   extern
#define kvi_matchString   kvi_matchStringCI
#define kvi_strEqualNoLocaleCI (   str1,
  str2 
)    kvi_strEqualCI(str1, str2)
#define kvi_strEqualNoLocaleCIN (   str1,
  str2,
  len 
)    kvi_strEqualCIN(str1, str2, len)
#define kvi_strLen (   str)    strlen(str)

Typedef Documentation

typedef kvi_u16_t kvi_wchar_t
typedef kvi_u32_t kvi_wslen_t

Function Documentation

int kvi_compare ( const KviCString p1,
const KviCString p2 
)
inline
__KVI_EXTERN KVILIB_API const char* kvi_extractToken ( KviCString str,
const char *  aux_ptr,
char  sep = ' ' 
)
__KVI_EXTERN KVILIB_API const char* kvi_extractUpTo ( KviCString str,
const char *  aux_ptr,
char  sep = ' ' 
)
__KVI_EXTERN KVILIB_API 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().

__KVI_EXTERN KVILIB_API bool kvi_matchStringCI ( register const char *  exp,
register const char *  str 
)
__KVI_EXTERN KVILIB_API bool kvi_matchStringCS ( register const char *  exp,
register const char *  str 
)
__KVI_EXTERN KVILIB_API bool kvi_matchStringWithTerminator ( register const char *  exp,
register const char *  str,
char  terminator,
const char **  r1,
const char **  r2 
)
__KVI_EXTERN KVILIB_API bool kvi_matchWildExpr ( register const char *  m1,
register const char *  m2 
)
__KVI_EXTERN KVILIB_API bool kvi_matchWildExprWithTerminator ( register const char *  m1,
register const char *  m2,
char  terminator,
const char **  r1,
const char **  r2 
)
__KVI_EXTERN KVILIB_API bool kvi_qstringEqualCI ( const QString &  s1,
const QString &  s2 
)

References l.

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

References KVI_ASSERT.

Referenced by kvi_compare().

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

References KVI_ASSERT.

__KVI_EXTERN KVILIB_API bool kvi_strEqualCI ( const char *  str1,
const char *  str2 
)
__KVI_EXTERN KVILIB_API bool kvi_strEqualCIN ( const char *  str1,
const char *  str2,
int  len 
)
__KVI_EXTERN KVILIB_API bool kvi_strEqualCS ( const char *  str1,
const char *  str2 
)
__KVI_EXTERN KVILIB_API bool kvi_strEqualCSN ( const char *  str1,
const char *  str2,
int  len 
)
__KVI_EXTERN KVILIB_API int kvi_strMatchRevCS ( const char *  str1,
const char *  str2,
int  index = -1 
)

References KVI_ASSERT.

__KVI_EXTERN KVILIB_API int kvi_vsnprintf ( char *  buffer,
int  len,
const char *  fmt,
kvi_va_list  list 
)
__KVI_EXTERN KVILIB_API kvi_wslen_t kvi_wstrlen ( const kvi_wchar_t str)
__KVI_EXTERN KVILIB_API int kvi_wvsnprintcf ( kvi_wchar_t buffer,
kvi_wslen_t  len,
const char *  fmt,
kvi_va_list  list 
)
__KVI_EXTERN KVILIB_API int kvi_wvsnprintf ( kvi_wchar_t buffer,
kvi_wslen_t  len,
const kvi_wchar_t fmt,
kvi_va_list  list 
)
__KVI_EXTERN bool operator!= ( const KviCString left,
const KviCString right 
)
inline
__KVI_EXTERN bool operator!= ( const KviCString left,
const char *  right 
)
inline
__KVI_EXTERN bool operator!= ( const char *  left,
const KviCString right 
)
inline
__KVI_EXTERN KviCString operator+ ( const KviCString left,
const KviCString right 
)
inline
__KVI_EXTERN KviCString operator+ ( const KviCString left,
const char *  right 
)
inline
__KVI_EXTERN KviCString operator+ ( const char *  left,
const KviCString right 
)
inline
__KVI_EXTERN KviCString operator+ ( const KviCString left,
char  right 
)
inline
__KVI_EXTERN KviCString operator+ ( char  left,
const KviCString right 
)
inline
__KVI_EXTERN bool operator== ( const KviCString left,
const KviCString right 
)
inline
__KVI_EXTERN bool operator== ( const KviCString left,
const char *  right 
)
inline
__KVI_EXTERN bool operator== ( const char *  left,
const KviCString right 
)
inline