String.h File Reference

#include <stdarg.h>
#include <string>

Include dependency graph for String.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StringColorTag
class  String

Defines

#define COLOR_STRING(str, fgColor, bgColor)   String::colorize(str, CONSOLE_COLOR_FG_##fgColor, CONSOLE_COLOR_BG_##bgColor)

Enumerations

enum  Alignment { ALIGN_LEFT = 'L', ALIGN_RIGHT = 'R', ALIGN_CENTER = 'C', ALIGN_JUSTIFY = 'J' }
enum  NumberBase { BASE_DEC = 'D', BASE_HEX = 'H', BASE_OCT = 'O' }

Functions

const char * CSTRING (const String &str)

Variables

static const char *const MSG_STRING_CANNOT_CONVERT = "Cannot convert string '%s' to type '%s' (%s)."
static const char *const MSG_STRING_MALFORMED_XML = "Malformed XML near tag '%s'."
static const char *const MSG_STRING_TOO_BIG = "String is too big. Requested size is %d, maximal size is %u."
static const char *const MSG_STRING_PRINTF = "Unrecoverable printf error (%s)."
static const unsigned int STRING_DEFAULT_LINE_WIDTH = 65
static const unsigned int LIMIT_CSTRING_SIZE = 1024
static const unsigned int STRING_PRINTF_INIT_SIZE = 256
static const unsigned int STRING_PRINTF_MAX_SIZE = 1048576
static const char *const CONSOLE_COLOR_ECHO_ESCAPE = ""
static const char *const CONSOLE_COLOR_FG_BLACK = "\033[30m"
static const char *const CONSOLE_COLOR_FG_RED = "\033[31m"
static const char *const CONSOLE_COLOR_FG_GREEN = "\033[32m"
static const char *const CONSOLE_COLOR_FG_ORANGE = "\033[33m"
static const char *const CONSOLE_COLOR_FG_BLUE = "\033[34m"
static const char *const CONSOLE_COLOR_FG_MAGENTA = "\033[35m"
static const char *const CONSOLE_COLOR_FG_CYAN = "\033[36m"
static const char *const CONSOLE_COLOR_FG_GRAY = "\033[37m"
static const char *const CONSOLE_COLOR_FG_LIGHT_BLACK = "\033[30;1m"
static const char *const CONSOLE_COLOR_FG_LIGHT_RED = "\033[31;1m"
static const char *const CONSOLE_COLOR_FG_LIGHT_GREEN = "\033[32;1m"
static const char *const CONSOLE_COLOR_FG_YELLOW = "\033[33;1m"
static const char *const CONSOLE_COLOR_FG_VIOLET = "\033[34;1m"
static const char *const CONSOLE_COLOR_FG_LIGHT_MAGENTA = "\033[35;1m"
static const char *const CONSOLE_COLOR_FG_LIGHT_CYAN = "\033[36;1m"
static const char *const CONSOLE_COLOR_FG_WHITE = "\033[37;1m"
static const char *const CONSOLE_COLOR_BG_BLACK = "\033[40m"
static const char *const CONSOLE_COLOR_BG_RED = "\033[41m"
static const char *const CONSOLE_COLOR_BG_GREEN = "\033[42m"
static const char *const CONSOLE_COLOR_BG_ORANGE = "\033[43m"
static const char *const CONSOLE_COLOR_BG_BLUE = "\033[44m"
static const char *const CONSOLE_COLOR_BG_MAGENTA = "\033[45m"
static const char *const CONSOLE_COLOR_BG_CYAN = "\033[46m"
static const char *const CONSOLE_COLOR_BG_WHITE = "\033[47m"
static const char *const CONSOLE_COLOR_BG_NONE = ""
static const char *const CONSOLE_COLOR_REGULAR = "\033[0m"
static const StringColorTag STRING_COLOR_TAGS []


Define Documentation

#define COLOR_STRING ( str,
fgColor,
bgColor   )     String::colorize(str, CONSOLE_COLOR_FG_##fgColor, CONSOLE_COLOR_BG_##bgColor)

Definition at line 18 of file String.h.

Referenced by COLOR_BACKTRACE(), COLOR_DEBUG(), COLOR_DEFERRED(), COLOR_ERROR(), COLOR_ERROR_FATAL(), COLOR_INFO(), COLOR_WARNING(), CORE_COLOR_TITLE(), OBJECT_COLOR_TITLE(), SIGNAL_COLOR_TITLE(), and TIMER_COLOR_TITLE().


Enumeration Type Documentation

enum Alignment

Enumerator:
ALIGN_LEFT 
ALIGN_RIGHT 
ALIGN_CENTER 
ALIGN_JUSTIFY 

Definition at line 62 of file String.h.

enum NumberBase

Enumerator:
BASE_DEC 
BASE_HEX 
BASE_OCT 

Definition at line 70 of file String.h.


Function Documentation

const char* CSTRING ( const String str  )  [inline]

Definition at line 174 of file String.h.

Referenced by XmlElement::attribute(), Inetd::authorize(), Object::bindRegistry(), Object::bindSignal(), BrowserWarmStart::BrowserWarmStart(), BrowserWindow::BrowserWindow(), License::check(), String::contains(), Object::deletePostponed(), Signal< M >::disconnect(), Mime::encoding(), Error::errorFatal(), Service< T >::fork(), Core::fork(), S11n< T >::fromString(), FSh::FSh(), FShGetLine::FShGetLine(), License::generate(), RegistryBase::get(), NamedObject::get(), Config::get(), XmlDocument::getElementById(), Parser::getValue(), Inetd::Inetd(), Error::info(), Init::Init(), Object::listInstances(), Object::listMyRegistry(), Object::listMySignals(), Object::listObjects(), Object::listRegistry(), Core::listServices(), Object::listSignals(), SignalBase::listSlots(), Object::listTop(), BrowserWindow::load(), Syslog::log(), FShGetLine::onOutput(), FShGetLine::onTab(), BrowserWindow::onTitleChanged(), String::parseXml(), Error::printBackTrace(), Core::registerService(), BrowserWindow::renderData(), Config::save(), Registry< T >::setGetter(), Registry< T >::setSetter(), Service< T >::spawn(), Core::spawn(), Parser::split(), Syslog::Syslog(), TcpConnection::TcpConnection(), TcpServer::TcpServer(), UdpConnection::UdpConnection(), Object::unbindSignal(), BrowserWindow::updateStatusBar(), Url::Url(), Error::verror(), Application::version(), Error::warning(), and Connection::writeStr().


Variable Documentation

const char* const CONSOLE_COLOR_BG_BLACK = "\033[40m" [static]

Definition at line 50 of file String.h.

const char* const CONSOLE_COLOR_BG_BLUE = "\033[44m" [static]

Definition at line 54 of file String.h.

const char* const CONSOLE_COLOR_BG_CYAN = "\033[46m" [static]

Definition at line 56 of file String.h.

const char* const CONSOLE_COLOR_BG_GREEN = "\033[42m" [static]

Definition at line 52 of file String.h.

const char* const CONSOLE_COLOR_BG_MAGENTA = "\033[45m" [static]

Definition at line 55 of file String.h.

const char* const CONSOLE_COLOR_BG_NONE = "" [static]

Definition at line 58 of file String.h.

const char* const CONSOLE_COLOR_BG_ORANGE = "\033[43m" [static]

Definition at line 53 of file String.h.

const char* const CONSOLE_COLOR_BG_RED = "\033[41m" [static]

Definition at line 51 of file String.h.

const char* const CONSOLE_COLOR_BG_WHITE = "\033[47m" [static]

Definition at line 57 of file String.h.

const char* const CONSOLE_COLOR_ECHO_ESCAPE = "" [static]

Definition at line 31 of file String.h.

Referenced by String::colorize(), and String::parseXml().

const char* const CONSOLE_COLOR_FG_BLACK = "\033[30m" [static]

Definition at line 33 of file String.h.

const char* const CONSOLE_COLOR_FG_BLUE = "\033[34m" [static]

Definition at line 37 of file String.h.

const char* const CONSOLE_COLOR_FG_CYAN = "\033[36m" [static]

Definition at line 39 of file String.h.

const char* const CONSOLE_COLOR_FG_GRAY = "\033[37m" [static]

Definition at line 40 of file String.h.

const char* const CONSOLE_COLOR_FG_GREEN = "\033[32m" [static]

Definition at line 35 of file String.h.

const char* const CONSOLE_COLOR_FG_LIGHT_BLACK = "\033[30;1m" [static]

Definition at line 41 of file String.h.

const char* const CONSOLE_COLOR_FG_LIGHT_CYAN = "\033[36;1m" [static]

Definition at line 47 of file String.h.

const char* const CONSOLE_COLOR_FG_LIGHT_GREEN = "\033[32;1m" [static]

Definition at line 43 of file String.h.

const char* const CONSOLE_COLOR_FG_LIGHT_MAGENTA = "\033[35;1m" [static]

Definition at line 46 of file String.h.

const char* const CONSOLE_COLOR_FG_LIGHT_RED = "\033[31;1m" [static]

Definition at line 42 of file String.h.

const char* const CONSOLE_COLOR_FG_MAGENTA = "\033[35m" [static]

Definition at line 38 of file String.h.

const char* const CONSOLE_COLOR_FG_ORANGE = "\033[33m" [static]

Definition at line 36 of file String.h.

const char* const CONSOLE_COLOR_FG_RED = "\033[31m" [static]

Definition at line 34 of file String.h.

const char* const CONSOLE_COLOR_FG_VIOLET = "\033[34;1m" [static]

Definition at line 45 of file String.h.

const char* const CONSOLE_COLOR_FG_WHITE = "\033[37;1m" [static]

Definition at line 48 of file String.h.

const char* const CONSOLE_COLOR_FG_YELLOW = "\033[33;1m" [static]

Definition at line 44 of file String.h.

const char* const CONSOLE_COLOR_REGULAR = "\033[0m" [static]

Definition at line 60 of file String.h.

Referenced by String::colorize(), and String::parseXml().

const unsigned int LIMIT_CSTRING_SIZE = 1024 [static]

Definition at line 24 of file String.h.

Referenced by Connection::clear(), Config::Config(), and Error::verror().

const char* const MSG_STRING_CANNOT_CONVERT = "Cannot convert string '%s' to type '%s' (%s)." [static]

Definition at line 13 of file String.h.

Referenced by String::toDouble(), String::toInt(), String::toLongLong(), and String::toUint().

const char* const MSG_STRING_MALFORMED_XML = "Malformed XML near tag '%s'." [static]

Definition at line 14 of file String.h.

Referenced by String::parseXml().

const char* const MSG_STRING_PRINTF = "Unrecoverable printf error (%s)." [static]

Definition at line 16 of file String.h.

Referenced by String::vsprintf().

const char* const MSG_STRING_TOO_BIG = "String is too big. Requested size is %d, maximal size is %u." [static]

Definition at line 15 of file String.h.

Referenced by String::vsprintf().

const StringColorTag STRING_COLOR_TAGS[] [static]

Initial value:

Definition at line 83 of file String.h.

Referenced by String::parseXml().

const unsigned int STRING_DEFAULT_LINE_WIDTH = 65 [static]

Definition at line 22 of file String.h.

const unsigned int STRING_PRINTF_INIT_SIZE = 256 [static]

Definition at line 26 of file String.h.

Referenced by String::vsprintf().

const unsigned int STRING_PRINTF_MAX_SIZE = 1048576 [static]

Definition at line 27 of file String.h.

Referenced by String::vsprintf().


Generated on Thu Sep 6 20:12:46 2007 for Pylon Application Platform by  doxygen 1.5.1