#include "fstring.h"#include "rutz/algo.h"#include "rutz/compat_snprintf.h"#include "rutz/freelist.h"#include "rutz/mutex.h"#include <cctype>#include <cstring>#include <istream>#include <ostream>#include <pthread.h>#include "rutz/trace.h"#include "rutz/debug.h"

Go to the source code of this file.
Namespaces | |
| namespace | GVX_DBG_REGISTER |
Defines | |
| #define | NUM_CONVERT(fmt, val) |
Functions | |
| fstring | rutz::sconvert (char x) |
| Convert char -> fstring. | |
| fstring | rutz::sconvert (const char *x) |
| Convert c string -> fstring. | |
| fstring | rutz::sconvert (const fstring &x) |
| Convert fstring -> fstring. | |
| fstring | rutz::sconvert (bool x) |
| Convert bool -> fstring. | |
| fstring | rutz::sconvert (int x) |
| Convert int -> fstring. | |
| fstring | rutz::sconvert (unsigned int x) |
| Convert uint -> fstring. | |
| fstring | rutz::sconvert (long x) |
| Convert long -> fstring. | |
| fstring | rutz::sconvert (unsigned long x) |
| Convert ulong -> fstring. | |
| fstring | rutz::sconvert (double x) |
| Convert double -> fstring. | |
Variables | |
|
rutz::free_list < rutz::string_rep > * | GVX_DBG_REGISTER::g_rep_list |
| pthread_mutex_t | GVX_DBG_REGISTER::g_rep_list_mutex = PTHREAD_MUTEX_INITIALIZER |
Definition in file fstring.cc.
| #define NUM_CONVERT | ( | fmt, | |||
| val | ) |
Value:
const int SZ = 64; \ char buf[SZ]; \ int n = snprintf(buf, SZ, fmt, (val)); \ GVX_ASSERT(n > 0 && n < SZ); \ return fstring(&buf[0]);
Definition at line 413 of file fstring.cc.