lib/str_util.cpp File Reference

(r16139/r16069)

#include "config.h"
#include <string>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include "alloca.h"
#include "error_numbers.h"
#include "common_defs.h"
#include "filesys.h"
#include "str_util.h"

Include dependency graph for str_util.cpp:


Defines

#define NOT_IN_TOKEN   0
#define IN_SINGLE_QUOTED_TOKEN   1
#define IN_DOUBLE_QUOTED_TOKEN   2
#define IN_UNQUOTED_TOKEN   3

Functions

size_t strlcpy (char *dst, const char *src, size_t size)
size_t strlcat (char *dst, const char *src, size_t size)
int ndays_to_string (double x, int smallest_timescale, char *buf)
void nbytes_to_string (double nbytes, double total_bytes, char *str, int len)
int parse_command_line (char *p, char **argv)
void c2x (char *what)
void strip_whitespace (char *str)
void strip_whitespace (string &str)
void unescape_url (char *url)
void unescape_url_safe (char *url, int url_size)
void unescape_url (string &url)
void escape_url (char *in, char *out)
void escape_url_safe (const char *in, char *out, int out_size)
void escape_url (string &url)
void escape_url_readable (char *in, char *out)
void canonicalize_master_url (char *url)
void canonicalize_master_url (string &url)
bool valid_master_url (char *buf)
char * time_to_string (double t)
char * precision_time_to_string (double t)
string timediff_format (double diff)
void escape_project_url (char *in, char *out)
void mysql_timestamp (double dt, char *p)
const char * boincerror (int which_error)
const char * network_status_string (int n)
const char * rpc_reason_string (int reason)
int string_substitute (const char *haystack, char *out, int out_len, const char *needle, const char *target)

Variables

const char * BOINC_RCSID_ab90e1e = "$Id: str_util.cpp 16069 2008-09-26 18:20:24Z davea $"

Define Documentation

#define IN_DOUBLE_QUOTED_TOKEN   2

#define IN_SINGLE_QUOTED_TOKEN   1

#define IN_UNQUOTED_TOKEN   3

#define NOT_IN_TOKEN   0


Function Documentation

const char* boincerror ( int  which_error  ) 

Here is the caller graph for this function:

void c2x ( char *  what  ) 

Here is the caller graph for this function:

void canonicalize_master_url ( string &  url  ) 

Here is the call graph for this function:

void canonicalize_master_url ( char *  url  ) 

Here is the caller graph for this function:

void escape_project_url ( char *  in,
char *  out 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void escape_url ( string &  url  ) 

Here is the call graph for this function:

void escape_url ( char *  in,
char *  out 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void escape_url_readable ( char *  in,
char *  out 
)

Here is the caller graph for this function:

void escape_url_safe ( const char *  in,
char *  out,
int  out_size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void mysql_timestamp ( double  dt,
char *  p 
)

void nbytes_to_string ( double  nbytes,
double  total_bytes,
char *  str,
int  len 
)

Here is the caller graph for this function:

int ndays_to_string ( double  x,
int  smallest_timescale,
char *  buf 
)

const char* network_status_string ( int  n  ) 

Here is the caller graph for this function:

int parse_command_line ( char *  p,
char **  argv 
)

Here is the caller graph for this function:

char* precision_time_to_string ( double  t  ) 

Here is the caller graph for this function:

const char* rpc_reason_string ( int  reason  ) 

int string_substitute ( const char *  haystack,
char *  out,
int  out_len,
const char *  needle,
const char *  target 
)

void strip_whitespace ( string &  str  ) 

void strip_whitespace ( char *  str  ) 

Here is the caller graph for this function:

size_t strlcat ( char *  dst,
const char *  src,
size_t  size 
)

Here is the caller graph for this function:

size_t strlcpy ( char *  dst,
const char *  src,
size_t  size 
)

char* time_to_string ( double  t  ) 

Here is the caller graph for this function:

string timediff_format ( double  diff  ) 

Here is the caller graph for this function:

void unescape_url ( string &  url  ) 

Here is the call graph for this function:

void unescape_url ( char *  url  ) 

void unescape_url_safe ( char *  url,
int  url_size 
)

Here is the caller graph for this function:

bool valid_master_url ( char *  buf  ) 

Here is the caller graph for this function:


Variable Documentation

const char* BOINC_RCSID_ab90e1e = "$Id: str_util.cpp 16069 2008-09-26 18:20:24Z davea $"


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