TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
strutil.h File Reference
#include <stdlib.h>
#include <vector>
#include <google/protobuf/stubs/common.h>
+ Include dependency graph for strutil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::strings
 
 google::protobuf::internal
 

Functions

bool google::protobuf::ascii_isalnum (char c)
 
bool google::protobuf::ascii_isdigit (char c)
 
bool google::protobuf::HasPrefixString (const string &str, const string &prefix)
 
string google::protobuf::StripPrefixString (const string &str, const string &prefix)
 
bool google::protobuf::HasSuffixString (const string &str, const string &suffix)
 
string google::protobuf::StripSuffixString (const string &str, const string &suffix)
 
LIBPROTOBUF_EXPORT void google::protobuf::StripString (string *s, const char *remove, char replacewith)
 
void google::protobuf::LowerString (string *s)
 
void google::protobuf::UpperString (string *s)
 
string google::protobuf::ToUpper (const string &s)
 
LIBPROTOBUF_EXPORT string google::protobuf::StringReplace (const string &s, const string &oldsub, const string &newsub, bool replace_all)
 
LIBPROTOBUF_EXPORT void google::protobuf::SplitStringUsing (const string &full, const char *delim, vector< string > *res)
 
LIBPROTOBUF_EXPORT void google::protobuf::SplitStringAllowEmpty (const string &full, const char *delim, vector< string > *result)
 
vector< string > google::protobuf::Split (const string &full, const char *delim, bool skip_empty=true)
 
LIBPROTOBUF_EXPORT void google::protobuf::JoinStrings (const vector< string > &components, const char *delim, string *result)
 
string google::protobuf::JoinStrings (const vector< string > &components, const char *delim)
 
LIBPROTOBUF_EXPORT int google::protobuf::UnescapeCEscapeSequences (const char *source, char *dest)
 
LIBPROTOBUF_EXPORT int google::protobuf::UnescapeCEscapeSequences (const char *source, char *dest, vector< string > *errors)
 
LIBPROTOBUF_EXPORT int google::protobuf::UnescapeCEscapeString (const string &src, string *dest)
 
LIBPROTOBUF_EXPORT int google::protobuf::UnescapeCEscapeString (const string &src, string *dest, vector< string > *errors)
 
LIBPROTOBUF_EXPORT string google::protobuf::UnescapeCEscapeString (const string &src)
 
LIBPROTOBUF_EXPORT int google::protobuf::CEscapeString (const char *src, int src_len, char *dest, int dest_len)
 
LIBPROTOBUF_EXPORT string google::protobuf::CEscape (const string &src)
 
LIBPROTOBUF_EXPORT string google::protobuf::strings::Utf8SafeCEscape (const string &src)
 
LIBPROTOBUF_EXPORT string google::protobuf::strings::CHexEscape (const string &src)
 
LIBPROTOBUF_EXPORT int32 google::protobuf::strto32_adaptor (const char *nptr, char **endptr, int base)
 
LIBPROTOBUF_EXPORT uint32 google::protobuf::strtou32_adaptor (const char *nptr, char **endptr, int base)
 
int32 google::protobuf::strto32 (const char *nptr, char **endptr, int base)
 
uint32 google::protobuf::strtou32 (const char *nptr, char **endptr, int base)
 
int64 google::protobuf::strto64 (const char *nptr, char **endptr, int base)
 
uint64 google::protobuf::strtou64 (const char *nptr, char **endptr, int base)
 
LIBPROTOBUF_EXPORT bool google::protobuf::safe_int (string text, int32 *value_p)
 
bool google::protobuf::safe_strto32 (string text, int32 *value)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastInt32ToBuffer (int32 i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastInt64ToBuffer (int64 i, char *buffer)
 
char * google::protobuf::FastUInt32ToBuffer (uint32 i, char *buffer)
 
char * google::protobuf::FastUInt64ToBuffer (uint64 i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastHexToBuffer (int i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastHex64ToBuffer (uint64 i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastHex32ToBuffer (uint32 i, char *buffer)
 
char * google::protobuf::FastIntToBuffer (int i, char *buffer)
 
char * google::protobuf::FastUIntToBuffer (unsigned int i, char *buffer)
 
char * google::protobuf::FastLongToBuffer (long i, char *buffer)
 
char * google::protobuf::FastULongToBuffer (unsigned long i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastInt32ToBufferLeft (int32 i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastUInt32ToBufferLeft (uint32 i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastInt64ToBufferLeft (int64 i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FastUInt64ToBufferLeft (uint64 i, char *buffer)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleItoa (int i)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleItoa (unsigned int i)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleItoa (long i)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleItoa (unsigned long i)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleItoa (long long i)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleItoa (unsigned long long i)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleDtoa (double value)
 
LIBPROTOBUF_EXPORT string google::protobuf::SimpleFtoa (float value)
 
LIBPROTOBUF_EXPORT char * google::protobuf::DoubleToBuffer (double i, char *buffer)
 
LIBPROTOBUF_EXPORT char * google::protobuf::FloatToBuffer (float i, char *buffer)
 
string google::protobuf::internal::ToString (int i)
 
string google::protobuf::internal::ToString (string a)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
string google::protobuf::StrCat (const T1 &a, const T2 &b, const T3 &c, const T4 &d, const T5 &e)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
string google::protobuf::StrCat (const T1 &a, const T2 &b, const T3 &c, const T4 &d)
 
template<typename T1 , typename T2 , typename T3 >
string google::protobuf::StrCat (const T1 &a, const T2 &b, const T3 &c)
 
template<typename T1 , typename T2 >
string google::protobuf::StrCat (const T1 &a, const T2 &b)
 
template<typename Iterator >
void google::protobuf::Join (Iterator start, Iterator end, const char *delim, string *result)
 
template<typename Range >
string google::protobuf::Join (const Range &components, const char *delim)
 
LIBPROTOBUF_EXPORT string google::protobuf::ToHex (uint64 num)
 

Variables

static const int google::protobuf::kFastToBufferSize = 32
 
static const int google::protobuf::kDoubleToBufferSize = 32
 
static const int google::protobuf::kFloatToBufferSize = 24