ze-filter  (ze-filter-0.8.0-develop-180218)
zeStrings.c File Reference
#include <ze-sys.h>
#include <libze.h>
#include <zeStrings.h>

Go to the source code of this file.

Macros

#define REGCOMP_FLAGS   (REG_ICASE | REG_EXTENDED)
 

Functions

char * zeStrRev (char *s)
 
char * zeStrDupRev (char *s)
 
int zeStrlEqual (char *sa, char *sb)
 
int zeSafeStrnCat (char *out, size_t sz, char *in, size_t n)
 
int zeSafeStrnCpy (char *out, size_t sz, char *in, size_t n)
 
char * zeStrnDup (char *sin, size_t n) const
 
char * zeStrCatDup (char *s1, char *s2)
 
int zeStrCountChar (char *s, int c)
 
char * zeStrJoin (char *sep, int argc, char **argv)
 
char * zeStrDup (char *s)
 
void * zeMalloc (size_t sz)
 
char * zeStr2Lower (char *s)
 
char * zeStr2Upper (char *s)
 
char * zeStrSet (char *dst, int c, int len)
 
void zeStrChkNull (char *s, int len)
 
size_t zeStrRmNulls (char *s, size_t sz)
 
char * zeStrRmBlanks (char *s, size_t size)
 
char * zeStrRmHeadBlanks (char *s, size_t size)
 
char * zeStrRmTailBlanks (char *s, size_t size)
 
char * zeStrClearTrailingBlanks (char *s)
 
char * zeStrChomp (char *s)
 
bool zeStrRegex (char *s, char *expr, long *pi, long *pf, bool icase)
 
void zeStrCenter (char *dst, char *org, int ldst)
 
int zeStr2Tokens (char *s, int sz, char **argv, char *sep)
 
time_t zeStrTime2Secs (char *s)
 

Macro Definition Documentation

◆ REGCOMP_FLAGS

#define REGCOMP_FLAGS   (REG_ICASE | REG_EXTENDED)

Definition at line 541 of file zeStrings.c.

Function Documentation

◆ zeMalloc()

void* zeMalloc ( size_t  sz)

Definition at line 276 of file zeStrings.c.

◆ zeSafeStrnCat()

int zeSafeStrnCat ( char *  out,
size_t  sz,
char *  in,
size_t  n 
)

Definition at line 107 of file zeStrings.c.

◆ zeSafeStrnCpy()

int zeSafeStrnCpy ( char *  out,
size_t  sz,
char *  in,
size_t  n 
)

Definition at line 136 of file zeStrings.c.

◆ zeStr2Lower()

char* zeStr2Lower ( char *  s)

Definition at line 295 of file zeStrings.c.

◆ zeStr2Tokens()

int zeStr2Tokens ( char *  s,
int  sz,
char **  argv,
char *  sep 
)

Definition at line 610 of file zeStrings.c.

◆ zeStr2Upper()

char* zeStr2Upper ( char *  s)

Definition at line 312 of file zeStrings.c.

◆ zeStrCatDup()

char* zeStrCatDup ( char *  s1,
char *  s2 
)

Definition at line 180 of file zeStrings.c.

◆ zeStrCenter()

void zeStrCenter ( char *  dst,
char *  org,
int  ldst 
)

Definition at line 586 of file zeStrings.c.

◆ zeStrChkNull()

void zeStrChkNull ( char *  s,
int  len 
)

Definition at line 347 of file zeStrings.c.

◆ zeStrChomp()

char* zeStrChomp ( char *  s)

Definition at line 501 of file zeStrings.c.

◆ zeStrClearTrailingBlanks()

char* zeStrClearTrailingBlanks ( char *  s)

Definition at line 476 of file zeStrings.c.

◆ zeStrCountChar()

int zeStrCountChar ( char *  s,
int  c 
)

Definition at line 202 of file zeStrings.c.

◆ zeStrDup()

char* zeStrDup ( char *  s)

Definition at line 252 of file zeStrings.c.

◆ zeStrDupRev()

char* zeStrDupRev ( char *  s)

Definition at line 59 of file zeStrings.c.

◆ zeStrJoin()

char* zeStrJoin ( char *  sep,
int  argc,
char **  argv 
)

Definition at line 224 of file zeStrings.c.

◆ zeStrlEqual()

int zeStrlEqual ( char *  sa,
char *  sb 
)

Definition at line 81 of file zeStrings.c.

◆ zeStrnDup()

char* zeStrnDup ( char *  sin,
size_t  n 
) const

Definition at line 158 of file zeStrings.c.

◆ zeStrRegex()

bool zeStrRegex ( char *  s,
char *  expr,
long *  pi,
long *  pf,
bool  icase 
)

Definition at line 544 of file zeStrings.c.

◆ zeStrRev()

char* zeStrRev ( char *  s)

Definition at line 34 of file zeStrings.c.

◆ zeStrRmBlanks()

char* zeStrRmBlanks ( char *  s,
size_t  size 
)

Definition at line 400 of file zeStrings.c.

◆ zeStrRmHeadBlanks()

char* zeStrRmHeadBlanks ( char *  s,
size_t  size 
)

Definition at line 425 of file zeStrings.c.

◆ zeStrRmNulls()

size_t zeStrRmNulls ( char *  s,
size_t  sz 
)

Definition at line 368 of file zeStrings.c.

◆ zeStrRmTailBlanks()

char* zeStrRmTailBlanks ( char *  s,
size_t  size 
)

Definition at line 450 of file zeStrings.c.

◆ zeStrSet()

char* zeStrSet ( char *  dst,
int  c,
int  len 
)

Definition at line 330 of file zeStrings.c.

◆ zeStrTime2Secs()

time_t zeStrTime2Secs ( char *  s)

Definition at line 686 of file zeStrings.c.