lib/parse.cpp File Reference

(r16139/r16098)

#include "config.h"
#include <cstring>
#include <cstdlib>
#include <string>
#include <math.h>
#include <errno.h>
#include "error_numbers.h"
#include "str_util.h"
#include "parse.h"

Include dependency graph for parse.cpp:


Functions

bool parse_bool (const char *buf, const char *tag, bool &result)
bool parse_str (const char *buf, const char *tag, char *dest, int destlen)
bool parse_str (const char *buf, const char *tag, string &dest)
void parse_attr (const char *buf, const char *name, char *dest, int len)
int copy_stream (FILE *in, FILE *out)
int strcatdup (char *&p, char *buf)
int dup_element_contents (FILE *in, const char *end_tag, char **pp)
int dup_element (FILE *in, const char *tag_name, char **pp)
int copy_element_contents (FILE *in, const char *end_tag, char *p, int len)
int copy_element_contents (FILE *in, const char *end_tag, string &str)
void replace_element_contents (char *buf, const char *start, const char *end, const char *replacement)
bool remove_element (char *buf, const char *start, const char *end)
bool str_replace (char *str, const char *substr, const char *replacement)
void extract_venue (const char *in, const char *venue_name, char *out)
char * sgets (char *buf, int len, char *&in)
void xml_escape (const char *in, char *out, int len)
void xml_unescape (const char *in, char *out, int len)
int skip_unrecognized (char *buf, MIOFILE &fin)

Variables

const char * BOINC_RCSID_3f3de9eb18 = "$Id: parse.cpp 16098 2008-09-30 18:51:18Z davea $"

Function Documentation

int copy_element_contents ( FILE *  in,
const char *  end_tag,
string &  str 
)

int copy_element_contents ( FILE *  in,
const char *  end_tag,
char *  p,
int  len 
)

int copy_stream ( FILE *  in,
FILE *  out 
)

Here is the caller graph for this function:

int dup_element ( FILE *  in,
const char *  tag_name,
char **  pp 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int dup_element_contents ( FILE *  in,
const char *  end_tag,
char **  pp 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void extract_venue ( const char *  in,
const char *  venue_name,
char *  out 
)

Here is the caller graph for this function:

void parse_attr ( const char *  buf,
const char *  name,
char *  dest,
int  len 
)

Here is the caller graph for this function:

bool parse_bool ( const char *  buf,
const char *  tag,
bool &  result 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool parse_str ( const char *  buf,
const char *  tag,
string &  dest 
)

Here is the call graph for this function:

bool parse_str ( const char *  buf,
const char *  tag,
char *  dest,
int  destlen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool remove_element ( char *  buf,
const char *  start,
const char *  end 
)

Here is the caller graph for this function:

void replace_element_contents ( char *  buf,
const char *  start,
const char *  end,
const char *  replacement 
)

Here is the caller graph for this function:

char* sgets ( char *  buf,
int  len,
char *&  in 
)

Here is the caller graph for this function:

int skip_unrecognized ( char *  buf,
MIOFILE fin 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool str_replace ( char *  str,
const char *  substr,
const char *  replacement 
)

Here is the caller graph for this function:

int strcatdup ( char *&  p,
char *  buf 
)

Here is the caller graph for this function:

void xml_escape ( const char *  in,
char *  out,
int  len 
)

Here is the caller graph for this function:

void xml_unescape ( const char *  in,
char *  out,
int  len 
)

Here is the caller graph for this function:


Variable Documentation

const char* BOINC_RCSID_3f3de9eb18 = "$Id: parse.cpp 16098 2008-09-30 18:51:18Z davea $"


Generated on Mon Oct 6 10:41:39 2008 for BOINC by  doxygen 1.5.6