Classes | Namespaces | Enumerations | Functions | Variables
protobuf/src/google/protobuf/stubs/strutil.h File Reference
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <stdlib.h>
#include <cstring>
#include <google/protobuf/port_def.inc>
#include <vector>
#include <google/protobuf/port_undef.inc>
Include dependency graph for protobuf/src/google/protobuf/stubs/strutil.h:

Go to the source code of this file.

Classes

struct  google::protobuf::strings::AlphaNum
 
struct  google::protobuf::strings::Hex
 

Namespaces

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

Enumerations

enum  google::protobuf::strings::PadSpec {
  google::protobuf::strings::NO_PAD = 1, google::protobuf::strings::ZERO_PAD_2, google::protobuf::strings::ZERO_PAD_3, google::protobuf::strings::ZERO_PAD_4,
  google::protobuf::strings::ZERO_PAD_5, google::protobuf::strings::ZERO_PAD_6, google::protobuf::strings::ZERO_PAD_7, google::protobuf::strings::ZERO_PAD_8,
  google::protobuf::strings::ZERO_PAD_9, google::protobuf::strings::ZERO_PAD_10, google::protobuf::strings::ZERO_PAD_11, google::protobuf::strings::ZERO_PAD_12,
  google::protobuf::strings::ZERO_PAD_13, google::protobuf::strings::ZERO_PAD_14, google::protobuf::strings::ZERO_PAD_15, google::protobuf::strings::ZERO_PAD_16,
  google::protobuf::strings::NO_PAD = 1, google::protobuf::strings::ZERO_PAD_2, google::protobuf::strings::ZERO_PAD_3, google::protobuf::strings::ZERO_PAD_4,
  google::protobuf::strings::ZERO_PAD_5, google::protobuf::strings::ZERO_PAD_6, google::protobuf::strings::ZERO_PAD_7, google::protobuf::strings::ZERO_PAD_8,
  google::protobuf::strings::ZERO_PAD_9, google::protobuf::strings::ZERO_PAD_10, google::protobuf::strings::ZERO_PAD_11, google::protobuf::strings::ZERO_PAD_12,
  google::protobuf::strings::ZERO_PAD_13, google::protobuf::strings::ZERO_PAD_14, google::protobuf::strings::ZERO_PAD_15, google::protobuf::strings::ZERO_PAD_16
}
 

Functions

bool google::protobuf::ascii_isalnum (char c)
 
bool google::protobuf::ascii_isdigit (char c)
 
bool google::protobuf::ascii_islower (char c)
 
bool google::protobuf::ascii_isspace (char c)
 
bool google::protobuf::ascii_isupper (char c)
 
char google::protobuf::ascii_tolower (char c)
 
char google::protobuf::ascii_toupper (char c)
 
int google::protobuf::Base64Escape (const unsigned char *src, int szsrc, char *dest, int szdest)
 
void google::protobuf::Base64Escape (const unsigned char *src, int szsrc, std::string *dest, bool do_padding)
 
void google::protobuf::Base64Escape (StringPiece src, std::string *dest)
 
bool google::protobuf::Base64Unescape (StringPiece src, std::string *dest)
 
int google::protobuf::CalculateBase64EscapedLen (int input_len)
 
int google::protobuf::CalculateBase64EscapedLen (int input_len, bool do_padding)
 
std::string google::protobuf::CEscape (const std::string &src)
 
void google::protobuf::CEscapeAndAppend (StringPiece src, std::string *dest)
 
std::string google::protobuf::strings::CHexEscape (const std::string &src)
 
void google::protobuf::CleanStringLineEndings (const std::string &src, std::string *dst, bool auto_end_last_line)
 
void google::protobuf::CleanStringLineEndings (std::string *str, bool auto_end_last_line)
 
char * google::protobuf::DoubleToBuffer (double value, char *buffer)
 
int google::protobuf::EncodeAsUTF8Char (uint32 code_point, char *output)
 
bool google::protobuf::strings::EndsWith (StringPiece text, StringPiece suffix)
 
char * google::protobuf::FastHex32ToBuffer (uint32 value, char *buffer)
 
char * google::protobuf::FastHex64ToBuffer (uint64 value, char *buffer)
 
char * google::protobuf::FastHexToBuffer (int i, char *buffer)
 
char * google::protobuf::FastInt32ToBuffer (int32 i, char *buffer)
 
char * google::protobuf::FastInt32ToBufferLeft (int32 i, char *buffer)
 
char * google::protobuf::FastInt64ToBuffer (int64 i, char *buffer)
 
char * google::protobuf::FastInt64ToBufferLeft (int64 i, char *buffer)
 
char * google::protobuf::FastIntToBuffer (int i, char *buffer)
 
char * google::protobuf::FastLongToBuffer (long i, char *buffer)
 
char * google::protobuf::FastUInt32ToBuffer (uint32 i, char *buffer)
 
char * google::protobuf::FastUInt32ToBufferLeft (uint32 u, char *buffer)
 
char * google::protobuf::FastUInt64ToBuffer (uint64 i, char *buffer)
 
char * google::protobuf::FastUInt64ToBufferLeft (uint64 u64, char *buffer)
 
char * google::protobuf::FastUIntToBuffer (unsigned int i, char *buffer)
 
char * google::protobuf::FastULongToBuffer (unsigned long i, char *buffer)
 
char * google::protobuf::FloatToBuffer (float value, char *buffer)
 
int google::protobuf::GlobalReplaceSubstring (const std::string &substring, const std::string &replacement, std::string *s)
 
bool google::protobuf::HasPrefixString (StringPiece str, StringPiece prefix)
 
bool google::protobuf::HasSuffixString (StringPiece str, StringPiece suffix)
 
int google::protobuf::hex_digit_to_int (char c)
 
bool google::protobuf::IsValidCodePoint (uint32 code_point)
 
template<typename Range >
std::string google::protobuf::Join (const Range &components, const char *delim)
 
template<typename Iterator >
void google::protobuf::Join (Iterator start, Iterator end, const char *delim, std::string *result)
 
std::string google::protobuf::JoinStrings (const std::vector< std::string > &components, const char *delim)
 
void google::protobuf::JoinStrings (const std::vector< std::string > &components, const char *delim, std::string *result)
 
void google::protobuf::LowerString (std::string *s)
 
double google.protobuf.internal::NoLocaleStrtod (const char *str, char **endptr)
 
void google::protobuf::ReplaceCharacters (std::string *s, const char *remove, char replacewith)
 
bool google::protobuf::safe_strto32 (const char *str, int32 *value)
 
bool google::protobuf::safe_strto32 (const std::string &str, int32 *value)
 
bool google::protobuf::safe_strto32 (StringPiece str, int32 *value)
 
bool google::protobuf::safe_strto64 (const char *str, int64 *value)
 
bool google::protobuf::safe_strto64 (const std::string &str, int64 *value)
 
bool google::protobuf::safe_strto64 (StringPiece str, int64 *value)
 
bool google::protobuf::safe_strtob (StringPiece str, bool *value)
 
bool google::protobuf::safe_strtod (const char *str, double *value)
 
bool google::protobuf::safe_strtod (const std::string &str, double *value)
 
bool google::protobuf::safe_strtod (StringPiece str, double *value)
 
bool google::protobuf::safe_strtof (const char *str, float *value)
 
bool google::protobuf::safe_strtof (const std::string &str, float *value)
 
bool google::protobuf::safe_strtof (StringPiece str, float *value)
 
bool google::protobuf::safe_strtou32 (const char *str, uint32 *value)
 
bool google::protobuf::safe_strtou32 (const std::string &str, uint32 *value)
 
bool google::protobuf::safe_strtou32 (StringPiece str, uint32 *value)
 
bool google::protobuf::safe_strtou64 (const char *str, uint64 *value)
 
bool google::protobuf::safe_strtou64 (const std::string &str, uint64 *value)
 
bool google::protobuf::safe_strtou64 (StringPiece str, uint64 *value)
 
string google::protobuf::SimpleBtoa (bool value)
 
string google::protobuf::SimpleDtoa (double value)
 
string google::protobuf::SimpleFtoa (float value)
 
string google::protobuf::SimpleItoa (int i)
 
string google::protobuf::SimpleItoa (long i)
 
string google::protobuf::SimpleItoa (long long i)
 
string google::protobuf::SimpleItoa (unsigned int i)
 
string google::protobuf::SimpleItoa (unsigned long i)
 
string google::protobuf::SimpleItoa (unsigned long long i)
 
std::vector< std::string > google::protobuf::Split (StringPiece full, const char *delim, bool skip_empty=true)
 
void google::protobuf::SplitStringAllowEmpty (StringPiece full, const char *delim, std::vector< std::string > *result)
 
void google::protobuf::SplitStringUsing (StringPiece full, const char *delim, std::vector< std::string > *result)
 
void google::protobuf::StrAppend (std::string *result, const AlphaNum &a)
 
void google::protobuf::StrAppend (std::string *result, const AlphaNum &a, const AlphaNum &b)
 
void google::protobuf::StrAppend (std::string *result, const AlphaNum &a, const AlphaNum &b, const AlphaNum &c)
 
void google::protobuf::StrAppend (std::string *result, const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d)
 
string google::protobuf::StrCat (const AlphaNum &a)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d, const AlphaNum &e)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d, const AlphaNum &e, const AlphaNum &f)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d, const AlphaNum &e, const AlphaNum &f, const AlphaNum &g)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d, const AlphaNum &e, const AlphaNum &f, const AlphaNum &g, const AlphaNum &h)
 
string google::protobuf::StrCat (const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d, const AlphaNum &e, const AlphaNum &f, const AlphaNum &g, const AlphaNum &h, const AlphaNum &i)
 
std::string google::protobuf::StringReplace (const std::string &s, const std::string &oldsub, const std::string &newsub, bool replace_all)
 
std::string google::protobuf::StripPrefixString (const std::string &str, const std::string &prefix)
 
std::string google::protobuf::StripSuffixString (const std::string &str, const std::string &suffix)
 
void google::protobuf::StripWhitespace (std::string *str)
 
int32 google::protobuf::strto32 (const char *nptr, char **endptr, int base)
 
int32 google::protobuf::strto32_adaptor (const char *nptr, char **endptr, int base)
 
int64 google::protobuf::strto64 (const char *nptr, char **endptr, int base)
 
uint32 google::protobuf::strtou32 (const char *nptr, char **endptr, int base)
 
uint32 google::protobuf::strtou32_adaptor (const char *nptr, char **endptr, int base)
 
uint64 google::protobuf::strtou64 (const char *nptr, char **endptr, int base)
 
PROTOBUF_EXPORT string google::protobuf::ToHex (uint64 num)
 
std::string google::protobuf::ToUpper (const std::string &s)
 
void google::protobuf::ToUpper (std::string *s)
 
int google::protobuf::UnescapeCEscapeSequences (const char *source, char *dest)
 
int google::protobuf::UnescapeCEscapeSequences (const char *source, char *dest, std::vector< std::string > *errors)
 
std::string google::protobuf::UnescapeCEscapeString (const std::string &src)
 
int google::protobuf::UnescapeCEscapeString (const std::string &src, std::string *dest)
 
int google::protobuf::UnescapeCEscapeString (const std::string &src, std::string *dest, std::vector< std::string > *errors)
 
void google::protobuf::UpperString (std::string *s)
 
int google::protobuf::UTF8FirstLetterNumBytes (const char *src, int len)
 
std::string google::protobuf::strings::Utf8SafeCEscape (const std::string &src)
 
int google::protobuf::WebSafeBase64Escape (const unsigned char *src, int szsrc, char *dest, int szdest, bool do_padding)
 
void google::protobuf::WebSafeBase64Escape (const unsigned char *src, int szsrc, std::string *dest, bool do_padding)
 
void google::protobuf::WebSafeBase64Escape (StringPiece src, std::string *dest)
 
void google::protobuf::WebSafeBase64EscapeWithPadding (StringPiece src, std::string *dest)
 
int google::protobuf::WebSafeBase64Unescape (const char *src, int szsrc, char *dest, int szdest)
 
bool google::protobuf::WebSafeBase64Unescape (StringPiece src, std::string *dest)
 

Variables

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33