jigdo API
Last update by Admin on 2010-05-23
util/string.hh File Reference
subst("Format %1, %2", arg1, arg2) creates strings with the arguments filled in, and does so in a safer way than sprintf() and friends. More...
#include <config.h>
#include <string>
Go to the source code of this file.
Classes | |
class | Subst |
Class for passing arguments to Logger. More... | |
Functions | |
string & | append (string &s, double x) |
Convert a number x to characters and append to a string. | |
string & | append (string &s, int x) |
string & | append (string &s, unsigned x) |
string & | append (string &s, long x) |
string & | append (string &s, unsigned long x) |
string & | append (string &s, unsigned long long x) |
string & | append (string &s, unsigned x, int width) |
Convert a number x to characters and append to a string, padding at front with space characters. | |
string & | append (string &s, unsigned long x, int width) |
string & | append (string &s, unsigned long long x, int width) |
string | subst (const char *format, Subst a) |
string | subst (const char *format, Subst a, Subst b) |
string | subst (const char *format, Subst a, Subst b, Subst c) |
string | subst (const char *format, Subst a, Subst b, Subst c, Subst d) |
string | subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e) |
string | subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f) |
string | subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f, Subst g) |
string | subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f, Subst g, Subst h) |
string | subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f, Subst g, Subst h, Subst i) |
Detailed Description
subst("Format %1, %2", arg1, arg2) creates strings with the arguments filled in, and does so in a safer way than sprintf() and friends.
Function Documentation
string& append | ( | string & | s, | |
unsigned long long | x, | |||
int | width | |||
) |
string& append | ( | string & | s, | |
unsigned long | x, | |||
int | width | |||
) |
string& append | ( | string & | s, | |
unsigned | x, | |||
int | width | |||
) |
string& append | ( | string & | s, | |
double | x | |||
) |
Convert a number x to characters and append to a string.
Referenced by Progress::appendProgress(), Progress::appendSize(), main(), mkfiles(), and MkTemplate::run().
string subst | ( | const char * | format, | |
Subst | a, | |||
Subst | b, | |||
Subst | c, | |||
Subst | d, | |||
Subst | e, | |||
Subst | f, | |||
Subst | g, | |||
Subst | h, | |||
Subst | i | |||
) | [inline] |
References Subst::subst().
string subst | ( | const char * | format, | |
Subst | a, | |||
Subst | b, | |||
Subst | c, | |||
Subst | d, | |||
Subst | e, | |||
Subst | f, | |||
Subst | g, | |||
Subst | h | |||
) | [inline] |
References Subst::subst().
string subst | ( | const char * | format, | |
Subst | a, | |||
Subst | b, | |||
Subst | c, | |||
Subst | d, | |||
Subst | e, | |||
Subst | f, | |||
Subst | g | |||
) | [inline] |
References Subst::subst().
References Subst::subst().
References Subst::subst().
References Subst::subst().
References Subst::subst().
References Subst::subst().
string subst | ( | const char * | format, | |
Subst | a | |||
) | [inline] |
References Subst::subst().
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
