jigdo API

util/string-utf.cc File Reference

#include <config.h>
#include <glib.h>
#include <stdarg.h>
#include <stdio.h>
#include <debug.hh>
#include <string-utf.hh>

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, 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, long x)
string & append (string &s, unsigned long x)
string & append (string &s, unsigned long x, int width)
string & append (string &s, unsigned long long x)
string & append (string &s, unsigned long long x, int width)
gchar * localeToUTF8 (const char *input)
void strSubst (string &result, const char *s, int flags)

Variables

const int BUF_LEN = 40
char buf [BUF_LEN]
const char *const PAD = " "
const char *const PAD_END = PAD + 40
static const int F = 1 << 0
static const int L = 1 << 1
static const int E = 1 << 2

Function Documentation

string& append ( string &  s,
unsigned long long  x,
int  width 
)

References Assert, buf, BUF_LEN, PAD, and PAD_END.

string& append ( string &  s,
unsigned long long  x 
)

References buf, and BUF_LEN.

string& append ( string &  s,
unsigned long  x,
int  width 
)

string& append ( string &  s,
unsigned long  x 
)

string& append ( string &  s,
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.

width must be <40

string& append ( string &  s,
unsigned  x 
)

string& append ( string &  s,
int  x 
)

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().

gchar* @116::localeToUTF8 ( const char *  input  )  [inline, static]

References error(), and NULL.

Referenced by strSubst().

void @116::strSubst ( string &  result,
const char *  s,
int  flags 
) [static]

References localeToUTF8(), and Paranoid.


Variable Documentation

char buf[BUF_LEN] [static]

const int BUF_LEN = 40 [static]

Referenced by append(), and Progress::appendSpeed().

const int E = 1 << 2 [static]

Referenced by Subst::subst().

const int F = 1 << 0 [static]

Referenced by Subst::subst().

const int L = 1 << 1 [static]

const char* const PAD = " " [static]

Referenced by append().

const char* const PAD_END = PAD + 40 [static]

Referenced by append().


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6