OnixS C++ eSpeed ITCH Market Data Handler  1.7.3
API documentation
String.h File Reference
#include <cstddef>
#include <cstring>
#include <string>
#include <stdexcept>
#include <algorithm>
#include <ostream>
#include <OnixS/eSpeed/MarketData/Itch/Bootstrap.h>
#include <OnixS/eSpeed/MarketData/Itch/Compiler.h>

Go to the source code of this file.

Classes

class  StrRef
 

Functions

StrRef toStrRef (const std::string &str)
 
StrRef toStrRef (const Char *cStr)
 
std::string toStr (const StrRef &ref)
 
void toStr (std::string &str, const StrRef &ref)
 
std::string toStr (Char character)
 
void toStr (std::string &str, Char character)
 
void toStr (std::string &str, const std::string &value)
 
bool operator== (const StrRef &left, const StrRef &right)
 
bool operator!= (const StrRef &left, const StrRef &right)
 
bool operator== (const StrRef &ref, const std::string &str)
 
bool operator!= (const StrRef &ref, const std::string &str)
 
bool operator== (const std::string &str, const StrRef &ref)
 
bool operator!= (const std::string &str, const StrRef &ref)
 
bool operator== (const StrRef &ref, const Char *str)
 
bool operator!= (const StrRef &ref, const Char *str)
 
bool operator== (const Char *str, const StrRef &ref)
 
bool operator!= (const Char *str, const StrRef &ref)
 
bool operator< (const StrRef &left, const StrRef &right)
 
bool operator> (const StrRef &left, const StrRef &right)
 
std::ostream & operator<< (std::ostream &stream, const StrRef &text)
 

Variables

ONIXS_ESPEED_ITCH_NAMESPACE_BEGIN typedef char Char
 

Function Documentation

bool operator!= ( const StrRef left,
const StrRef right 
)
inline

Compares with another instance.

Definition at line 324 of file String.h.

bool operator!= ( const StrRef ref,
const std::string &  str 
)
inline

Compares StrRef with std::string.

Definition at line 344 of file String.h.

bool operator!= ( const std::string &  str,
const StrRef ref 
)
inline

Compares StrRef with std::string.

Definition at line 364 of file String.h.

bool operator!= ( const StrRef ref,
const Char str 
)
inline

Compares StrRef with zero-terminated/C-like string.

Definition at line 384 of file String.h.

bool operator!= ( const Char str,
const StrRef ref 
)
inline

Compares StrRef with zero-terminated/C-like string.

Definition at line 404 of file String.h.

bool operator< ( const StrRef left,
const StrRef right 
)
inline

Establishes order over string refs.

Definition at line 414 of file String.h.

std::ostream& operator<< ( std::ostream &  stream,
const StrRef text 
)
inline

StrRef serialization operator.

Definition at line 450 of file String.h.

bool operator== ( const StrRef left,
const StrRef right 
)
inline

Compares StrRef instance with another one.

Definition at line 310 of file String.h.

bool operator== ( const StrRef ref,
const std::string &  str 
)
inline

Compares StrRef with std::string.

Definition at line 334 of file String.h.

bool operator== ( const std::string &  str,
const StrRef ref 
)
inline

Compares StrRef with std::string.

Definition at line 354 of file String.h.

bool operator== ( const StrRef ref,
const Char str 
)
inline

Compares StrRef with zero-terminated/C-like string.

Definition at line 374 of file String.h.

bool operator== ( const Char str,
const StrRef ref 
)
inline

Compares StrRef with zero-terminated/C-like string.

Definition at line 394 of file String.h.

bool operator> ( const StrRef left,
const StrRef right 
)
inline

Establishes order over string refs.

Definition at line 440 of file String.h.

std::string toStr ( const StrRef ref)
inline

Constructs std::string instance from StrRef one.

Definition at line 262 of file String.h.

void toStr ( std::string &  str,
const StrRef ref 
)
inline

Appends text referenced by StrRef to given std::string instance.

Definition at line 271 of file String.h.

std::string toStr ( Char  character)
inline

Constructs std::string from a character.

Definition at line 281 of file String.h.

void toStr ( std::string &  str,
Char  character 
)
inline

Appends character to given std::string instance.

Definition at line 290 of file String.h.

void toStr ( std::string &  str,
const std::string &  value 
)
inline

Appends one string another one.

Definition at line 300 of file String.h.

StrRef toStrRef ( const std::string &  str)
inline

Constructs StrRef instance over std::string content.

Definition at line 238 of file String.h.

StrRef toStrRef ( const Char cStr)
inline

Initializes instance from zero-terminated/C-like string.

Definition at line 247 of file String.h.

Variable Documentation

Character type alias.

Definition at line 37 of file String.h.