GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RIM / V3-1-2 > lrd_parser / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

lString_p.h File Reference

Definitions for linked list of strings routines. More...

#include <PBS/L.h>
#include <stdarg.h>
#include <stdlib.h>

Classes

struct  lString
 Node for a (singly) linked list of strings. More...

Functions

lStringnewlString (const char *fmt,...)
 Create a lString from fmt and the subsequent arguments.
char * newString (const char *fmt,...)
 Create a string from fmt and the subsequent arguments.
size_t getStrLen (const char *fmt, va_list ap)
 Reads the format string and calculates the total size of the string after completing the insertions.
void copyStr (char *dest, const char *fmt, va_list ap)
 Read the format string and fill dest accordingly.
lStringappendString (lString *os, const char *fmt,...)
 Combine an existing lString and additional elements into a new string.


Detailed Description

Definitions for linked list of strings routines.

Author:
James Swain & Owen Saxton
$Id: lString_p.h,v 1.3 2011/03/27 06:15:54 saxton Exp $

Function Documentation

lString* appendString ( lString os,
const char *  fmt,
  ... 
)

Combine an existing lString and additional elements into a new string.

Parameters:
os Old string to append to
fmt Format of the additional string
Returns:
A new string which is the concaternation of the old string and the additional elements

References copyStr(), getStrLen(), and lString::string.

Referenced by ecpt_fileMapDTD(), ecpt_fileXMLDTD(), and ereg_fileXMLDTD().

void copyStr ( char *  dest,
const char *  fmt,
va_list  ap 
)

Read the format string and fill dest accordingly.

Parameters:
dest Destination string
fmt Format string
ap Variable length list of arguments

Referenced by appendString(), newlString(), and newString().

size_t getStrLen ( const char *  fmt,
va_list  ap 
)

Reads the format string and calculates the total size of the string after completing the insertions.

Parameters:
fmt Format string
ap Variable length list of arguments
Returns:
Size of the complete string

Referenced by appendString(), newlString(), and newString().

lString* newlString ( const char *  fmt,
  ... 
)

char* newString ( const char *  fmt,
  ... 
)

Create a string from fmt and the subsequent arguments.

Parameters:
fmt Format of the string to create
Returns:
Ptr to initialised string

References copyStr(), and getStrLen().

Referenced by scpt_cptDetail().


Generated on Fri Sep 30 18:26:45 2011 by  doxygen 1.5.8