Otclient  14/8/2020
stdext Namespace Reference

Classes

class  any
 
struct  boolean
 
struct  can_pack_in_any
 
class  cast_exception
 
class  dynamic_storage
 
class  exception
 
struct  expand_snprintf
 
struct  expand_snprintf< 0 >
 
class  packed_any
 
class  packed_storage
 
class  packed_vector
 
struct  remove_const_ref
 
struct  replace_extent
 
struct  replace_extent< T[]>
 
struct  replace_extent< T[N]>
 
class  shared_base
 
class  shared_object
 
class  shared_object_ptr
 
class  shared_ptr
 
struct  timer
 
class  weak_ptr
 

Functions

template<typename T >
const T & any_cast (const any &operand)
 
template<typename T , typename R >
bool cast (const T &in, R &out)
 
template<typename T >
bool cast (const T &in, std::string &out)
 
template<>
bool cast (const std::string &in, std::string &out)
 
template<>
bool cast (const std::string &in, bool &b)
 
template<>
bool cast (const std::string &in, char &c)
 
template<>
bool cast (const std::string &in, long &l)
 
template<>
bool cast (const std::string &in, int &i)
 
template<>
bool cast (const std::string &in, double &d)
 
template<>
bool cast (const std::string &in, float &f)
 
template<>
bool cast (const bool &in, std::string &out)
 
template<typename R , typename T >
safe_cast (const T &t)
 
template<typename R , typename T >
unsafe_cast (const T &t, R def=R())
 
const char * demangle_name (const char *name)
 Demangle names for GNU g++ compiler. More...
 
template<typename T >
std::string demangle_class ()
 Returns the name of a class. More...
 
template<typename T >
std::string demangle_type ()
 Returns the name of a type. More...
 
void throw_exception (const std::string &what)
 Throws a generic exception. More...
 
template<class T >
void print_ostream (std::ostringstream &stream, const T &last)
 
template<class T , class... Args>
void print_ostream (std::ostringstream &stream, const T &first, const Args &... rest)
 
template<class... T>
void print (const T &... args)
 
template<typename T >
std::enable_if< std::is_integral< T >::value||std::is_pointer< T >::value||std::is_floating_point< T >::value||std::is_enum< T >::value, T >::type sprintf_cast (const T &t)
 
const char * sprintf_cast (const char *s)
 
const char * sprintf_cast (const std::string &s)
 
template<typename... Args>
int snprintf (char *s, size_t maxlen, const char *format, const Args &... args)
 
template<typename... Args>
int snprintf (char *s, size_t maxlen, const char *format)
 
template<typename... Args>
std::string format ()
 
template<typename... Args>
std::string format (const std::string &format)
 
template<typename... Args>
std::string format (const std::string &format, const Args &... args)
 
uint32_t adler32 (const uint8_t *buffer, size_t size)
 
long random_range (long min, long max)
 
float random_range (float min, float max)
 
double round (double r)
 
bool is_power_of_two (size_t v)
 
size_t to_power_of_two (size_t v)
 
uint16_t readULE16 (const uchar *addr)
 
uint32_t readULE32 (const uchar *addr)
 
uint64_t readULE64 (const uchar *addr)
 
void writeULE16 (uchar *addr, uint16_t value)
 
void writeULE32 (uchar *addr, uint32_t value)
 
void writeULE64 (uchar *addr, uint64_t value)
 
int16_t readSLE16 (const uchar *addr)
 
int32_t readSLE32 (const uchar *addr)
 
int64_t readSLE64 (const uchar *addr)
 
void writeSLE16 (uchar *addr, int16_t value)
 
void writeSLE32 (uchar *addr, int32_t value)
 
void writeSLE64 (uchar *addr, int64_t value)
 
template<typename T >
clamp (T x, T min, T max)
 
std::string ip_to_string (uint32 ip)
 
uint32 string_to_ip (const std::string &string)
 
std::vector< uint32listSubnetAddresses (uint32 address, uint8 mask)
 
template<typename T >
std::enable_if< can_pack_in_any< T >::value, T >::type packed_any_cast (const packed_any &operand)
 
template<typename T >
std::enable_if<!can_pack_in_any< T >::value, T >::type packed_any_cast (const packed_any &operand)
 
template<class T , class U >
bool operator== (shared_object_ptr< T > const &a, shared_object_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (shared_object_ptr< T > const &a, shared_object_ptr< U > const &b)
 
template<class T , class U >
bool operator== (shared_object_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator!= (shared_object_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator== (T *a, shared_object_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (T *a, shared_object_ptr< U > const &b)
 
template<class T >
bool operator< (shared_object_ptr< T > const &a, shared_object_ptr< T > const &b)
 
template<class T >
T * get_pointer (shared_object_ptr< T > const &p)
 
template<class T , class U >
shared_object_ptr< T > static_pointer_cast (shared_object_ptr< U > const &p)
 
template<class T , class U >
shared_object_ptr< T > const_pointer_cast (shared_object_ptr< U > const &p)
 
template<class T , class U >
shared_object_ptr< T > dynamic_pointer_cast (shared_object_ptr< U > const &p)
 
template<class T , typename... Args>
stdext::shared_object_ptr< T > make_shared_object (Args... args)
 
template<class E , class T , class Y >
std::basic_ostream< E, T > & operator<< (std::basic_ostream< E, T > &os, shared_object_ptr< Y > const &p)
 
template<class T , class U >
bool operator== (shared_ptr< T > const &a, shared_ptr< U > const &b)
 
template<class T , class U >
bool operator== (weak_ptr< T > const &a, weak_ptr< U > const &b)
 
template<class T , class U >
bool operator== (shared_ptr< T > const &a, weak_ptr< U > const &b)
 
template<class T , class U >
bool operator== (weak_ptr< T > const &a, shared_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (shared_ptr< T > const &a, shared_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (weak_ptr< T > const &a, weak_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (shared_ptr< T > const &a, weak_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (weak_ptr< T > const &a, shared_ptr< U > const &b)
 
template<class T , class U >
bool operator== (shared_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator== (weak_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator!= (shared_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator!= (weak_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator== (T *a, shared_ptr< U > const &b)
 
template<class T , class U >
bool operator== (T *a, weak_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (T *a, shared_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (T *a, weak_ptr< U > const &b)
 
template<class T >
bool operator< (shared_ptr< T > const &a, shared_ptr< T > const &b)
 
template<class T >
bool operator< (weak_ptr< T > const &a, weak_ptr< T > const &b)
 
template<class T >
T * get_pointer (shared_ptr< T > const &p)
 
template<class T >
T * get_pointer (weak_ptr< T > const &p)
 
template<class T , class U >
shared_ptr< T > static_pointer_cast (shared_ptr< U > const &p)
 
template<class T , class U >
shared_ptr< T > const_pointer_cast (shared_ptr< U > const &p)
 
template<class T , class U >
shared_ptr< T > dynamic_pointer_cast (shared_ptr< U > const &p)
 
template<class T , typename... Args>
stdext::shared_ptr< T > make_shared (Args... args)
 
template<class E , class T , class Y >
std::basic_ostream< E, T > & operator<< (std::basic_ostream< E, T > &os, shared_ptr< Y > const &p)
 
template<class E , class T , class Y >
std::basic_ostream< E, T > & operator<< (std::basic_ostream< E, T > &os, weak_ptr< Y > const &p)
 
std::string resolve_path (const std::string &filePath, std::string sourcePath)
 Resolve a file path by combining sourcePath with filePath. More...
 
std::string date_time_string ()
 Get current date and time in a std::string. More...
 
std::string dec_to_hex (uint64_t num)
 
uint64_t hex_to_dec (const std::string &str)
 
bool is_valid_utf8 (const std::string &src)
 
std::string utf8_to_latin1 (const std::string &src)
 
std::string latin1_to_utf8 (const std::string &src)
 
void tolower (std::string &str)
 
void toupper (std::string &str)
 
void trim (std::string &str)
 
char upchar (char c)
 
char lochar (char c)
 
void ucwords (std::string &str)
 
bool ends_with (const std::string &str, const std::string &test)
 
bool starts_with (const std::string &str, const std::string &test)
 
void replace_all (std::string &str, const std::string &search, const std::string &replacement)
 
std::vector< std::string > split (const std::string &str, const std::string &separators)
 
template<typename T >
std::string to_string (const T &t)
 
template<typename T >
from_string (const std::string &str, T def=T())
 
ticks_t time ()
 
ticks_t millis ()
 
ticks_t micros ()
 
void millisleep (size_t ms)
 
void microsleep (size_t us)
 

Function Documentation

◆ adler32()

uint32_t stdext::adler32 ( const uint8_t *  buffer,
size_t  size 
)

Definition at line 32 of file math.cpp.

Here is the caller graph for this function:

◆ any_cast()

template<typename T >
const T& stdext::any_cast ( const any operand)

Definition at line 68 of file any.h.

Here is the call graph for this function:

◆ cast() [1/10]

template<>
bool stdext::cast ( const bool &  in,
std::string &  out 
)
inline

Definition at line 132 of file cast.h.

◆ cast() [2/10]

template<>
bool stdext::cast ( const std::string &  in,
bool &  b 
)
inline

Definition at line 62 of file cast.h.

◆ cast() [3/10]

template<>
bool stdext::cast ( const std::string &  in,
char &  c 
)
inline

Definition at line 74 of file cast.h.

◆ cast() [4/10]

template<>
bool stdext::cast ( const std::string &  in,
double &  d 
)
inline

Definition at line 106 of file cast.h.

◆ cast() [5/10]

template<>
bool stdext::cast ( const std::string &  in,
float &  f 
)
inline

Definition at line 121 of file cast.h.

Here is the call graph for this function:

◆ cast() [6/10]

template<>
bool stdext::cast ( const std::string &  in,
int &  i 
)
inline

Definition at line 95 of file cast.h.

Here is the call graph for this function:

◆ cast() [7/10]

template<>
bool stdext::cast ( const std::string &  in,
long &  l 
)
inline

Definition at line 83 of file cast.h.

◆ cast() [8/10]

template<>
bool stdext::cast ( const std::string &  in,
std::string &  out 
)
inline

Definition at line 55 of file cast.h.

◆ cast() [9/10]

template<typename T , typename R >
bool stdext::cast ( const T &  in,
R &  out 
)

Definition at line 37 of file cast.h.

Here is the caller graph for this function:

◆ cast() [10/10]

template<typename T >
bool stdext::cast ( const T &  in,
std::string &  out 
)

Definition at line 46 of file cast.h.

◆ clamp()

template<typename T >
T stdext::clamp ( x,
min,
max 
)

Definition at line 58 of file math.h.

◆ const_pointer_cast() [1/2]

template<class T , class U >
shared_object_ptr<T> stdext::const_pointer_cast ( shared_object_ptr< U > const &  p)

Definition at line 121 of file shared_object.h.

◆ const_pointer_cast() [2/2]

template<class T , class U >
shared_ptr<T> stdext::const_pointer_cast ( shared_ptr< U > const &  p)

Definition at line 210 of file shared_ptr.h.

◆ date_time_string()

std::string stdext::date_time_string ( )

Get current date and time in a std::string.

Definition at line 48 of file string.cpp.

Here is the call graph for this function:

◆ dec_to_hex()

std::string stdext::dec_to_hex ( uint64_t  num)

Definition at line 58 of file string.cpp.

◆ demangle_class()

template<typename T >
std::string stdext::demangle_class ( )

Returns the name of a class.

Definition at line 35 of file demangle.h.

Here is the call graph for this function:

◆ demangle_name()

const char * stdext::demangle_name ( const char *  name)

Demangle names for GNU g++ compiler.

Definition at line 45 of file demangle.cpp.

Here is the caller graph for this function:

◆ demangle_type()

template<typename T >
std::string stdext::demangle_type ( )

Returns the name of a type.

Definition at line 44 of file demangle.h.

Here is the call graph for this function:

◆ dynamic_pointer_cast() [1/2]

template<class T , class U >
shared_object_ptr<T> stdext::dynamic_pointer_cast ( shared_object_ptr< U > const &  p)

Definition at line 122 of file shared_object.h.

◆ dynamic_pointer_cast() [2/2]

template<class T , class U >
shared_ptr<T> stdext::dynamic_pointer_cast ( shared_ptr< U > const &  p)

Definition at line 211 of file shared_ptr.h.

◆ ends_with()

bool stdext::ends_with ( const std::string &  str,
const std::string &  test 
)

Definition at line 258 of file string.cpp.

Here is the caller graph for this function:

◆ format() [1/3]

template<typename... Args>
std::string stdext::format ( )
inline

Definition at line 82 of file format.h.

◆ format() [2/3]

template<typename... Args>
std::string stdext::format ( const std::string &  format)
inline

Definition at line 85 of file format.h.

Here is the call graph for this function:

◆ format() [3/3]

template<typename... Args>
std::string stdext::format ( const std::string &  format,
const Args &...  args 
)

Definition at line 89 of file format.h.

Here is the call graph for this function:

◆ from_string()

template<typename T >
T stdext::from_string ( const std::string &  str,
def = T() 
)

Definition at line 36 of file string.h.

Here is the caller graph for this function:

◆ get_pointer() [1/3]

template<class T >
T* stdext::get_pointer ( shared_object_ptr< T > const &  p)

Definition at line 119 of file shared_object.h.

◆ get_pointer() [2/3]

template<class T >
T* stdext::get_pointer ( shared_ptr< T > const &  p)

Definition at line 207 of file shared_ptr.h.

◆ get_pointer() [3/3]

template<class T >
T* stdext::get_pointer ( weak_ptr< T > const &  p)

Definition at line 208 of file shared_ptr.h.

Here is the call graph for this function:

◆ hex_to_dec()

uint64_t stdext::hex_to_dec ( const std::string &  str)

Definition at line 67 of file string.cpp.

Here is the caller graph for this function:

◆ ip_to_string()

std::string stdext::ip_to_string ( uint32  ip)

Definition at line 30 of file net.cpp.

Here is the caller graph for this function:

◆ is_power_of_two()

bool stdext::is_power_of_two ( size_t  v)
inline

Definition at line 31 of file math.h.

Here is the caller graph for this function:

◆ is_valid_utf8()

bool stdext::is_valid_utf8 ( const std::string &  src)

Definition at line 75 of file string.cpp.

Here is the caller graph for this function:

◆ latin1_to_utf8()

std::string stdext::latin1_to_utf8 ( const std::string &  src)

Definition at line 170 of file string.cpp.

Here is the caller graph for this function:

◆ listSubnetAddresses()

std::vector< uint32 > stdext::listSubnetAddresses ( uint32  address,
uint8  mask 
)

Definition at line 43 of file net.cpp.

Here is the caller graph for this function:

◆ lochar()

char stdext::lochar ( char  c)

Definition at line 238 of file string.cpp.

Here is the caller graph for this function:

◆ make_shared()

template<class T , typename... Args>
stdext::shared_ptr<T> stdext::make_shared ( Args...  args)

Definition at line 212 of file shared_ptr.h.

Here is the caller graph for this function:

◆ make_shared_object()

template<class T , typename... Args>
stdext::shared_object_ptr<T> stdext::make_shared_object ( Args...  args)

Definition at line 123 of file shared_object.h.

◆ micros()

ticks_t stdext::micros ( )

Definition at line 41 of file time.cpp.

Here is the caller graph for this function:

◆ microsleep()

void stdext::microsleep ( size_t  us)

Definition at line 50 of file time.cpp.

Here is the caller graph for this function:

◆ millis()

ticks_t stdext::millis ( )

Definition at line 37 of file time.cpp.

Here is the caller graph for this function:

◆ millisleep()

void stdext::millisleep ( size_t  ms)

Definition at line 45 of file time.cpp.

Here is the caller graph for this function:

◆ operator!=() [1/11]

template<class T , class U >
bool stdext::operator!= ( shared_object_ptr< T > const &  a,
shared_object_ptr< U > const &  b 
)

Definition at line 112 of file shared_object.h.

◆ operator!=() [2/11]

template<class T , class U >
bool stdext::operator!= ( shared_object_ptr< T > const &  a,
U *  b 
)

Definition at line 114 of file shared_object.h.

◆ operator!=() [3/11]

template<class T , class U >
bool stdext::operator!= ( shared_ptr< T > const &  a,
shared_ptr< U > const &  b 
)

Definition at line 192 of file shared_ptr.h.

◆ operator!=() [4/11]

template<class T , class U >
bool stdext::operator!= ( shared_ptr< T > const &  a,
U *  b 
)

Definition at line 198 of file shared_ptr.h.

◆ operator!=() [5/11]

template<class T , class U >
bool stdext::operator!= ( shared_ptr< T > const &  a,
weak_ptr< U > const &  b 
)

Definition at line 194 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator!=() [6/11]

template<class T , class U >
bool stdext::operator!= ( T *  a,
shared_object_ptr< U > const &  b 
)

Definition at line 116 of file shared_object.h.

◆ operator!=() [7/11]

template<class T , class U >
bool stdext::operator!= ( T *  a,
shared_ptr< U > const &  b 
)

Definition at line 202 of file shared_ptr.h.

◆ operator!=() [8/11]

template<class T , class U >
bool stdext::operator!= ( T *  a,
weak_ptr< U > const &  b 
)

Definition at line 203 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator!=() [9/11]

template<class T , class U >
bool stdext::operator!= ( weak_ptr< T > const &  a,
shared_ptr< U > const &  b 
)

Definition at line 195 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator!=() [10/11]

template<class T , class U >
bool stdext::operator!= ( weak_ptr< T > const &  a,
U *  b 
)

Definition at line 199 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator!=() [11/11]

template<class T , class U >
bool stdext::operator!= ( weak_ptr< T > const &  a,
weak_ptr< U > const &  b 
)

Definition at line 193 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator<() [1/3]

template<class T >
bool stdext::operator< ( shared_object_ptr< T > const &  a,
shared_object_ptr< T > const &  b 
)

Definition at line 117 of file shared_object.h.

◆ operator<() [2/3]

template<class T >
bool stdext::operator< ( shared_ptr< T > const &  a,
shared_ptr< T > const &  b 
)

Definition at line 204 of file shared_ptr.h.

◆ operator<() [3/3]

template<class T >
bool stdext::operator< ( weak_ptr< T > const &  a,
weak_ptr< T > const &  b 
)

Definition at line 205 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator<<() [1/3]

template<class E , class T , class Y >
std::basic_ostream<E, T>& stdext::operator<< ( std::basic_ostream< E, T > &  os,
shared_object_ptr< Y > const &  p 
)

Definition at line 126 of file shared_object.h.

◆ operator<<() [2/3]

template<class E , class T , class Y >
std::basic_ostream<E, T>& stdext::operator<< ( std::basic_ostream< E, T > &  os,
shared_ptr< Y > const &  p 
)

Definition at line 215 of file shared_ptr.h.

◆ operator<<() [3/3]

template<class E , class T , class Y >
std::basic_ostream<E, T>& stdext::operator<< ( std::basic_ostream< E, T > &  os,
weak_ptr< Y > const &  p 
)

Definition at line 216 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator==() [1/11]

template<class T , class U >
bool stdext::operator== ( shared_object_ptr< T > const &  a,
shared_object_ptr< U > const &  b 
)

Definition at line 111 of file shared_object.h.

◆ operator==() [2/11]

template<class T , class U >
bool stdext::operator== ( shared_object_ptr< T > const &  a,
U *  b 
)

Definition at line 113 of file shared_object.h.

◆ operator==() [3/11]

template<class T , class U >
bool stdext::operator== ( shared_ptr< T > const &  a,
shared_ptr< U > const &  b 
)

Definition at line 188 of file shared_ptr.h.

◆ operator==() [4/11]

template<class T , class U >
bool stdext::operator== ( shared_ptr< T > const &  a,
U *  b 
)

Definition at line 196 of file shared_ptr.h.

◆ operator==() [5/11]

template<class T , class U >
bool stdext::operator== ( shared_ptr< T > const &  a,
weak_ptr< U > const &  b 
)

Definition at line 190 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator==() [6/11]

template<class T , class U >
bool stdext::operator== ( T *  a,
shared_object_ptr< U > const &  b 
)

Definition at line 115 of file shared_object.h.

◆ operator==() [7/11]

template<class T , class U >
bool stdext::operator== ( T *  a,
shared_ptr< U > const &  b 
)

Definition at line 200 of file shared_ptr.h.

◆ operator==() [8/11]

template<class T , class U >
bool stdext::operator== ( T *  a,
weak_ptr< U > const &  b 
)

Definition at line 201 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator==() [9/11]

template<class T , class U >
bool stdext::operator== ( weak_ptr< T > const &  a,
shared_ptr< U > const &  b 
)

Definition at line 191 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator==() [10/11]

template<class T , class U >
bool stdext::operator== ( weak_ptr< T > const &  a,
U *  b 
)

Definition at line 197 of file shared_ptr.h.

Here is the call graph for this function:

◆ operator==() [11/11]

template<class T , class U >
bool stdext::operator== ( weak_ptr< T > const &  a,
weak_ptr< U > const &  b 
)

Definition at line 189 of file shared_ptr.h.

Here is the call graph for this function:

◆ packed_any_cast() [1/2]

template<typename T >
std::enable_if<can_pack_in_any<T>::value, T>::type stdext::packed_any_cast ( const packed_any operand)

Definition at line 93 of file packed_any.h.

◆ packed_any_cast() [2/2]

template<typename T >
std::enable_if<!can_pack_in_any<T>::value, T>::type stdext::packed_any_cast ( const packed_any operand)

Definition at line 105 of file packed_any.h.

Here is the call graph for this function:

◆ print()

template<class... T>
void stdext::print ( const T &...  args)

Definition at line 44 of file format.h.

Here is the call graph for this function:

◆ print_ostream() [1/2]

template<class T , class... Args>
void stdext::print_ostream ( std::ostringstream &  stream,
const T &  first,
const Args &...  rest 
)

Definition at line 40 of file format.h.

Here is the call graph for this function:

◆ print_ostream() [2/2]

template<class T >
void stdext::print_ostream ( std::ostringstream &  stream,
const T &  last 
)

Definition at line 38 of file format.h.

Here is the caller graph for this function:

◆ random_range() [1/2]

float stdext::random_range ( float  min,
float  max 
)

Definition at line 56 of file math.cpp.

◆ random_range() [2/2]

long stdext::random_range ( long  min,
long  max 
)

Definition at line 48 of file math.cpp.

Here is the caller graph for this function:

◆ readSLE16()

int16_t stdext::readSLE16 ( const uchar addr)
inline

Definition at line 42 of file math.h.

Here is the caller graph for this function:

◆ readSLE32()

int32_t stdext::readSLE32 ( const uchar addr)
inline

Definition at line 43 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readSLE64()

int64_t stdext::readSLE64 ( const uchar addr)
inline

Definition at line 44 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readULE16()

uint16_t stdext::readULE16 ( const uchar addr)
inline

Definition at line 34 of file math.h.

Here is the caller graph for this function:

◆ readULE32()

uint32_t stdext::readULE32 ( const uchar addr)
inline

Definition at line 35 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readULE64()

uint64_t stdext::readULE64 ( const uchar addr)
inline

Definition at line 36 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ replace_all()

void stdext::replace_all ( std::string &  str,
const std::string &  search,
const std::string &  replacement 
)

Definition at line 268 of file string.cpp.

Here is the caller graph for this function:

◆ resolve_path()

std::string stdext::resolve_path ( const std::string &  filePath,
std::string  sourcePath 
)

Resolve a file path by combining sourcePath with filePath.

Definition at line 35 of file string.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ round()

double stdext::round ( double  r)

Definition at line 64 of file math.cpp.

Here is the caller graph for this function:

◆ safe_cast()

template<typename R , typename T >
R stdext::safe_cast ( const T &  t)

Definition at line 154 of file cast.h.

Here is the call graph for this function:

◆ snprintf() [1/2]

template<typename... Args>
int stdext::snprintf ( char *  s,
size_t  maxlen,
const char *  format 
)
inline

Definition at line 75 of file format.h.

Here is the call graph for this function:

◆ snprintf() [2/2]

template<typename... Args>
int stdext::snprintf ( char *  s,
size_t  maxlen,
const char *  format,
const Args &...  args 
)

Definition at line 69 of file format.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ split()

std::vector< std::string > stdext::split ( const std::string &  str,
const std::string &  separators 
)

Definition at line 273 of file string.cpp.

Here is the caller graph for this function:

◆ sprintf_cast() [1/3]

const char* stdext::sprintf_cast ( const char *  s)
inline

Definition at line 51 of file format.h.

◆ sprintf_cast() [2/3]

const char* stdext::sprintf_cast ( const std::string &  s)
inline

Definition at line 52 of file format.h.

◆ sprintf_cast() [3/3]

template<typename T >
std::enable_if<std::is_integral<T>::value || std::is_pointer<T>::value || std::is_floating_point<T>::value || std::is_enum<T>::value, T>::type stdext::sprintf_cast ( const T &  t)

Definition at line 50 of file format.h.

Here is the caller graph for this function:

◆ starts_with()

bool stdext::starts_with ( const std::string &  str,
const std::string &  test 
)

Definition at line 263 of file string.cpp.

Here is the caller graph for this function:

◆ static_pointer_cast() [1/2]

template<class T , class U >
shared_object_ptr<T> stdext::static_pointer_cast ( shared_object_ptr< U > const &  p)

Definition at line 120 of file shared_object.h.

◆ static_pointer_cast() [2/2]

template<class T , class U >
shared_ptr<T> stdext::static_pointer_cast ( shared_ptr< U > const &  p)

Definition at line 209 of file shared_ptr.h.

◆ string_to_ip()

uint32 stdext::string_to_ip ( const std::string &  string)

Definition at line 37 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ throw_exception()

void stdext::throw_exception ( const std::string &  what)
inline

Throws a generic exception.

Definition at line 43 of file exception.h.

◆ time()

ticks_t stdext::time ( )

Definition at line 33 of file time.cpp.

Here is the caller graph for this function:

◆ to_power_of_two()

size_t stdext::to_power_of_two ( size_t  v)
inline

Definition at line 32 of file math.h.

Here is the caller graph for this function:

◆ to_string()

template<typename T >
std::string stdext::to_string ( const T &  t)

Definition at line 35 of file string.h.

Here is the caller graph for this function:

◆ tolower()

void stdext::tolower ( std::string &  str)

Definition at line 216 of file string.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toupper()

void stdext::toupper ( std::string &  str)

Definition at line 221 of file string.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trim()

void stdext::trim ( std::string &  str)

Definition at line 226 of file string.cpp.

Here is the caller graph for this function:

◆ ucwords()

void stdext::ucwords ( std::string &  str)

Definition at line 245 of file string.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsafe_cast()

template<typename R , typename T >
R stdext::unsafe_cast ( const T &  t,
def = R() 
)

Definition at line 166 of file cast.h.

Here is the call graph for this function:

◆ upchar()

char stdext::upchar ( char  c)

Definition at line 231 of file string.cpp.

Here is the caller graph for this function:

◆ utf8_to_latin1()

std::string stdext::utf8_to_latin1 ( const std::string &  src)

Definition at line 146 of file string.cpp.

Here is the caller graph for this function:

◆ writeSLE16()

void stdext::writeSLE16 ( uchar addr,
int16_t  value 
)
inline

Definition at line 46 of file math.h.

Here is the caller graph for this function:

◆ writeSLE32()

void stdext::writeSLE32 ( uchar addr,
int32_t  value 
)
inline

Definition at line 47 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeSLE64()

void stdext::writeSLE64 ( uchar addr,
int64_t  value 
)
inline

Definition at line 48 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeULE16()

void stdext::writeULE16 ( uchar addr,
uint16_t  value 
)
inline

Definition at line 38 of file math.h.

Here is the caller graph for this function:

◆ writeULE32()

void stdext::writeULE32 ( uchar addr,
uint32_t  value 
)
inline

Definition at line 39 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeULE64()

void stdext::writeULE64 ( uchar addr,
uint64_t  value 
)
inline

Definition at line 40 of file math.h.

Here is the call graph for this function:
Here is the caller graph for this function: