FreeSWITCH API Documentation  1.7.0
Static Public Member Functions
SimpleGlobUtil Class Reference

String manipulation functions. More...

#include <SimpleGlob.h>

+ Collaboration diagram for SimpleGlobUtil:

Static Public Member Functions

static const char * strchr (const char *s, char c)
 
static const wchar_t * strchr (const wchar_t *s, wchar_t c)
 
static const char * strrchr (const char *s, char c)
 
static const wchar_t * strrchr (const wchar_t *s, wchar_t c)
 
static size_t strlen (const char *s)
 
static size_t strlen (const wchar_t *s)
 
static void strcpy_s (char *dst, size_t n, const char *src)
 
static void strcpy_s (wchar_t *dst, size_t n, const wchar_t *src)
 
static int strcmp (const char *s1, const char *s2)
 
static int strcmp (const wchar_t *s1, const wchar_t *s2)
 
static int strcasecmp (const char *s1, const char *s2)
 

Detailed Description

String manipulation functions.

Definition at line 199 of file SimpleGlob.h.

Member Function Documentation

static int SimpleGlobUtil::strcasecmp ( const char *  s1,
const char *  s2 
)
inlinestatic

Definition at line 242 of file SimpleGlob.h.

References sg_strcasecmp, and SOCHAR_T.

Referenced by CSimpleGlobTempl< SOCHAR >::fileSortCompare().

242  {
243  return sg_strcasecmp((const SOCHAR_T *) s1, (const SOCHAR_T *) s2);
244  }
#define SOCHAR_T
Definition: SimpleGlob.h:178
#define sg_strcasecmp
Definition: SimpleGlob.h:177
static const char* SimpleGlobUtil::strchr ( const char *  s,
char  c 
)
inlinestatic

Definition at line 201 of file SimpleGlob.h.

References sg_strchr, and SOCHAR_T.

Referenced by CSimpleGlobTempl< SOCHAR >::Add().

201  {
202  return (char *) sg_strchr((const SOCHAR_T *) s, c);
203  } static const wchar_t *strchr(const wchar_t *s, wchar_t c) {
#define SOCHAR_T
Definition: SimpleGlob.h:178
#define sg_strchr
Definition: SimpleGlob.h:172
static const char * strchr(const char *s, char c)
Definition: SimpleGlob.h:201
static const wchar_t* SimpleGlobUtil::strchr ( const wchar_t *  s,
wchar_t  c 
)
inlinestatic

Definition at line 203 of file SimpleGlob.h.

203  {
204  return::wcschr(s, c);
205  }
static int SimpleGlobUtil::strcmp ( const char *  s1,
const char *  s2 
)
inlinestatic

Definition at line 235 of file SimpleGlob.h.

References sg_strcmp, and SOCHAR_T.

235  {
236  return sg_strcmp((const SOCHAR_T *) s1, (const SOCHAR_T *) s2);
237  }
#define SOCHAR_T
Definition: SimpleGlob.h:178
#define sg_strcmp
Definition: SimpleGlob.h:176
static int SimpleGlobUtil::strcmp ( const wchar_t *  s1,
const wchar_t *  s2 
)
inlinestatic

Definition at line 238 of file SimpleGlob.h.

238  {
239  return::wcscmp(s1, s2);
240  }
static void SimpleGlobUtil::strcpy_s ( char *  dst,
size_t  n,
const char *  src 
)
inlinestatic

Definition at line 222 of file SimpleGlob.h.

References sg_strcpy_s, and SOCHAR_T.

Referenced by CSimpleGlobTempl< SOCHAR >::Add(), and CSimpleGlobTempl< SOCHAR >::AppendName().

222  {
223  (void) n;
224  sg_strcpy_s((SOCHAR_T *) dst, n, (const SOCHAR_T *) src);
225  }
#define SOCHAR_T
Definition: SimpleGlob.h:178
#define sg_strcpy_s(a, n, b)
Definition: SimpleGlob.h:175
static void SimpleGlobUtil::strcpy_s ( wchar_t *  dst,
size_t  n,
const wchar_t *  src 
)
inlinestatic

Definition at line 226 of file SimpleGlob.h.

226  {
227 # if __STDC_WANT_SECURE_LIB__
228  ::wcscpy_s(dst, n, src);
229 #else
230  (void) n;
231  ::wcscpy(dst, src);
232 #endif
233  }
static size_t SimpleGlobUtil::strlen ( const char *  s)
inlinestatic

Definition at line 215 of file SimpleGlob.h.

Referenced by CSimpleGlobTempl< SOCHAR >::AppendName().

215  {
216  return::strlen(s);
217  }
static size_t SimpleGlobUtil::strlen ( const wchar_t *  s)
inlinestatic

Definition at line 218 of file SimpleGlob.h.

218  {
219  return::wcslen(s);
220  }
static const char* SimpleGlobUtil::strrchr ( const char *  s,
char  c 
)
inlinestatic

Definition at line 207 of file SimpleGlob.h.

References sg_strrchr, and SOCHAR_T.

Referenced by CSimpleGlobTempl< SOCHAR >::Add().

207  {
208  return (char *) sg_strrchr((const SOCHAR_T *) s, c);
209  }
#define SOCHAR_T
Definition: SimpleGlob.h:178
#define sg_strrchr
Definition: SimpleGlob.h:173
static const wchar_t* SimpleGlobUtil::strrchr ( const wchar_t *  s,
wchar_t  c 
)
inlinestatic

Definition at line 210 of file SimpleGlob.h.

210  {
211  return::wcsrchr(s, c);
212  }

The documentation for this class was generated from the following file: