fstring.cc File Reference

#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"

Include dependency graph for fstring.cc:

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


Detailed Description

ref-counted string type that allows much faster compile times than std::string

Definition in file fstring.cc.


Define Documentation

#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.


The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:51:56 2008 by Doxygen version 1.5.5.