lib/parse.h File Reference

(r16139/r16096)

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include "miofile.h"

Include dependency graph for parse.h:

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

Go to the source code of this file.

Classes

class  XML_PARSER

Functions

bool match_tag (const char *buf, const char *tag)
bool match_tag (const std::string &s, const char *tag)
bool parse_int (const char *buf, const char *tag, int &x)
bool parse_double (const char *buf, const char *tag, double &x)
bool parse (char *, char *)
bool parse_str (const char *, const char *, char *, int)
bool parse_str (const char *buf, const char *tag, std::string &dest)
void parse_attr (const char *buf, const char *attrname, char *out, int len)
bool parse_bool (const char *, const char *, bool &)
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 *end_tag, 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, std::string &)
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 *old, const char *neww)
char * sgets (char *buf, int len, char *&in)
void xml_escape (const char *, char *, int len)
void xml_unescape (const char *, char *, int len)
void extract_venue (const char *, const char *, char *)
int skip_unrecognized (char *buf, MIOFILE &)


Function Documentation

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

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 *  end_tag,
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 *  ,
const char *  ,
char *   
)

Here is the caller graph for this function:

bool match_tag ( const std::string &  s,
const char *  tag 
) [inline]

Here is the call graph for this function:

bool match_tag ( const char *  buf,
const char *  tag 
) [inline]

bool parse ( char *  ,
char *   
)

Here is the caller graph for this function:

void parse_attr ( const char *  buf,
const char *  attrname,
char *  out,
int  len 
)

Here is the caller graph for this function:

bool parse_bool ( const char *  ,
const char *  ,
bool &   
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool parse_double ( const char *  buf,
const char *  tag,
double &  x 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool parse_int ( const char *  buf,
const char *  tag,
int &  x 
) [inline]

Here is the caller graph for this function:

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

bool parse_str ( const char *  ,
const char *  ,
char *  ,
int   
)

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  
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool str_replace ( char *  str,
const char *  old,
const char *  neww 
)

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 *  ,
char *  ,
int  len 
)

Here is the caller graph for this function:

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

Here is the caller graph for this function:


Generated on Mon Oct 6 10:42:08 2008 for BOINC by  doxygen 1.5.6