psString.h File Reference

#include <sys/types.h>
#include <stdarg.h>
#include "psType.h"
#include "psList.h"

Include dependency graph for psString.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PS_STRING(S)   #S
 This macro will convert the argument to a quoted string.
#define PS_FILE_LINE   p_psFileLine(__FILE__,__LINE__)
#define PS_ASSERT_STRING_NON_EMPTY(NAME, RVAL)

Functions

const char * p_psFileLine (const char *file, int line)
 This macro returns a (static buffer containing) "file:line".
psString psStringAlloc (long nChar)
 Allocates a new psString.
bool psMemCheckString (psPtr ptr)
 Checks the type of a particular pointer.
psString psStringCopy (const char *string)
 Copies the input string.
psString psStringNCopy (const char *string, unsigned int nChar)
 Copies the input string up to the specified number of characters.
ssize_t psStringAppend (char **dest, const char *format,...)
 Appends a format onto a string.
ssize_t psStringAppendV (char **dest, const char *format, va_list ap)
 Appends a format onto a string.
ssize_t psStringPrepend (char **dest, const char *format,...)
 Prepends a format onto a string.
ssize_t psStringPrependV (char **dest, const char *format, va_list ap)
 Prepends a format onto a string.
psListpsStringSplit (const char *string, const char *splitters, bool multipleAreSignificant)
 Procedure to split the input string into a psList of psStrings.
psArraypsStringSplitArray (const char *string, const char *splitters, bool multipleAreSignificant)
 Procedure to split the input string into a psArray of psStrings.
ssize_t psStringSubstitute (psString *input, const char *replace, const char *key)
 Procedure to search an input string and substitute strings where desired.
size_t psStringStrip (char *string)
 Procedure to strip the whitespace from the head and tail of a string.
psString psStringStripCVS (const char *string, const char *tagName)
 Given a CVS keyword string, strip off the CVS-specific keyword to get the value.


Generated on Fri Feb 2 22:25:41 2007 for pslib by  doxygen 1.5.1