SimpleGlobUtil Class Reference

String manipulation functions. More...

#include <SimpleGlob.h>


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 
) [inline, static]

Definition at line 242 of file SimpleGlob.h.

References sg_strcasecmp, and SOCHAR_T.

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

00242                                                               {
00243                 return sg_strcasecmp((const SOCHAR_T *) s1, (const SOCHAR_T *) s2);
00244         }

static const wchar_t* SimpleGlobUtil::strchr ( const wchar_t *  s,
wchar_t  c 
) [inline, static]

Definition at line 203 of file SimpleGlob.h.

00203                                                                     {
00204                 return::wcschr(s, c);
00205         }

static const char* SimpleGlobUtil::strchr ( const char *  s,
char  c 
) [inline, static]

Definition at line 201 of file SimpleGlob.h.

References sg_strchr, and SOCHAR_T.

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

00201                                                          {
00202                 return (char *) sg_strchr((const SOCHAR_T *) s, c);
00203         } static const wchar_t *strchr(const wchar_t *s, wchar_t c) {

static int SimpleGlobUtil::strcmp ( const wchar_t *  s1,
const wchar_t *  s2 
) [inline, static]

Definition at line 238 of file SimpleGlob.h.

00238                                                                 {
00239                 return::wcscmp(s1, s2);
00240         }

static int SimpleGlobUtil::strcmp ( const char *  s1,
const char *  s2 
) [inline, static]

Definition at line 235 of file SimpleGlob.h.

References sg_strcmp, and SOCHAR_T.

00235                                                           {
00236                 return sg_strcmp((const SOCHAR_T *) s1, (const SOCHAR_T *) s2);
00237         }

static void SimpleGlobUtil::strcpy_s ( wchar_t *  dst,
size_t  n,
const wchar_t *  src 
) [inline, static]

Definition at line 226 of file SimpleGlob.h.

00226                                                                          {
00227 # if __STDC_WANT_SECURE_LIB__
00228                 ::wcscpy_s(dst, n, src);
00229 #else
00230                 (void) n;
00231                 ::wcscpy(dst, src);
00232 #endif
00233         }

static void SimpleGlobUtil::strcpy_s ( char *  dst,
size_t  n,
const char *  src 
) [inline, static]

Definition at line 222 of file SimpleGlob.h.

References sg_strcpy_s, and SOCHAR_T.

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

00222                                                                    {
00223                 (void) n;
00224                 sg_strcpy_s((SOCHAR_T *) dst, n, (const SOCHAR_T *) src);
00225         }

static size_t SimpleGlobUtil::strlen ( const wchar_t *  s  )  [inline, static]

Definition at line 218 of file SimpleGlob.h.

00218                                                {
00219                 return::wcslen(s);
00220         }

static size_t SimpleGlobUtil::strlen ( const char *  s  )  [inline, static]

Definition at line 215 of file SimpleGlob.h.

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

00215                                             {
00216                 return::strlen(s);
00217         }

static const wchar_t* SimpleGlobUtil::strrchr ( const wchar_t *  s,
wchar_t  c 
) [inline, static]

Definition at line 210 of file SimpleGlob.h.

00210                                                                    {
00211                 return::wcsrchr(s, c);
00212         }

static const char* SimpleGlobUtil::strrchr ( const char *  s,
char  c 
) [inline, static]

Definition at line 207 of file SimpleGlob.h.

References sg_strrchr, and SOCHAR_T.

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

00207                                                           {
00208                 return (char *) sg_strrchr((const SOCHAR_T *) s, c);
00209         }


The documentation for this class was generated from the following file:
Generated on Wed May 16 04:00:24 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7