Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psString.h File Reference


Detailed Description

-*- mode: C; c-basic-indent: 4; tab-width: 8; indent-tabs-mode: nil -*- vim: set cindent ts=8 sw=4 expandtab:Contains the declarations of string utility functions

String utility functions defined shall provide basic string copying capabilities.

Author:
Eric Van Alst, MHPCC

David Robbins, MHPCC

Version:
Revision
1.24
Name
rel12
Date:
Date
2006/06/27 20:33:22
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psString.h.

#include <sys/types.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__)

Functions

const char * p_psFileLine (const char *file, int line)
 This macro returns a (static buffer containing) "file:line".
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 psStringPrepend (char **dest, const char *format,...)
 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.
char * psStringSubstitute (char *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.


Define Documentation

#define PS_FILE_LINE   p_psFileLine(__FILE__,__LINE__)
 

Definition at line 34 of file psString.h.

#define PS_STRING  )     #S
 

This macro will convert the argument to a quoted string.

Definition at line 30 of file psString.h.


Function Documentation

const char* p_psFileLine const char *  file,
int  line
 

This macro returns a (static buffer containing) "file:line".


Generated on Mon Jul 3 14:14:54 2006 for Pan-STARRS Foundation Library by  doxygen 1.4.4