Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
strchar.h File Reference

Common and portable character string related functions. More...

#include <cc++/config.h>
#include <cc++/missing.h>
#include <cctype>
#include <string>
#include <cstring>
Include dependency graph for strchar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__EXPORT char * lsetField (char *target, size_t size, const char *src, const char fill=0)
 
__EXPORT char * rsetField (char *target, size_t size, const char *src, const char fill=0)
 
__EXPORT char * setString (char *target, size_t size, const char *src)
 
__EXPORT char * addString (char *target, size_t size, const char *src)
 
__EXPORT char * newString (const char *src, size_t size=0)
 
__EXPORT void delString (char *str)
 
__EXPORT char * setUpper (char *string, size_t size)
 
__EXPORT char * setLower (char *string, size_t size)
 
__EXPORT char * find (const char *cs, char *str, size_t len=0)
 
__EXPORT char * rfind (const char *cs, char *str, size_t len=0)
 
__EXPORT char * ifind (const char *cs, char *str, size_t len=0)
 
__EXPORT char * strip (const char *cs, char *str, size_t len=0)
 
__EXPORT size_t strchop (const char *cs, char *str, size_t len=0)
 
__EXPORT size_t strtrim (const char *cs, char *str, size_t len=0)
 
char * dupString (const char *src, size_t size=0)
 

Detailed Description

Common and portable character string related functions.

Definition in file strchar.h.

Function Documentation

__EXPORT char* addString ( char *  target,
size_t  size,
const char *  src 
)
__EXPORT void delString ( char *  str)
char* dupString ( const char *  src,
size_t  size = 0 
)
inline

Definition at line 94 of file strchar.h.

__EXPORT char* find ( const char *  cs,
char *  str,
size_t  len = 0 
)
__EXPORT char* ifind ( const char *  cs,
char *  str,
size_t  len = 0 
)
__EXPORT char* lsetField ( char *  target,
size_t  size,
const char *  src,
const char  fill = 0 
)
__EXPORT char* newString ( const char *  src,
size_t  size = 0 
)
__EXPORT char* rfind ( const char *  cs,
char *  str,
size_t  len = 0 
)
__EXPORT char* rsetField ( char *  target,
size_t  size,
const char *  src,
const char  fill = 0 
)
__EXPORT char* setLower ( char *  string,
size_t  size 
)
__EXPORT char* setString ( char *  target,
size_t  size,
const char *  src 
)
__EXPORT char* setUpper ( char *  string,
size_t  size 
)
__EXPORT size_t strchop ( const char *  cs,
char *  str,
size_t  len = 0 
)
__EXPORT char* strip ( const char *  cs,
char *  str,
size_t  len = 0 
)
__EXPORT size_t strtrim ( const char *  cs,
char *  str,
size_t  len = 0 
)