webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Macros | Functions
strutil.cc File Reference
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/mathlimits.h>
#include <errno.h>
#include <float.h>
#include <limits>
#include <limits.h>
#include <stdio.h>
#include <iterator>
#include <google/protobuf/stubs/stl_util.h>

Namespaces

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

Macros

#define IS_OCTAL_DIGIT(c)   (((c) >= '0') && ((c) <= '7'))
 
#define LOG_STRING(LEVEL, VECTOR)   GOOGLE_LOG_IF(LEVEL, false)
 
#define GOOGLE_DCHECK_NO_OVERLAP(dest, src)
 
#define GET_INPUT(label, remain)
 

Functions

bool google::protobuf::isxdigit (char c)
 
bool google::protobuf::isprint (char c)
 
void google::protobuf::StripString (string *s, const char *remove, char replacewith)
 
void google::protobuf::StripWhitespace (string *str)
 
void google::protobuf::StringReplace (const string &s, const string &oldsub, const string &newsub, bool replace_all, string *res)
 
string google::protobuf::StringReplace (const string &s, const string &oldsub, const string &newsub, bool replace_all)
 
void google::protobuf::SplitStringUsing (const string &full, const char *delim, vector< string > *result)
 
void google::protobuf::SplitStringAllowEmpty (const string &full, const char *delim, vector< string > *result)
 
void google::protobuf::JoinStrings (const vector< string > &components, const char *delim, string *result)
 
int google::protobuf::UnescapeCEscapeSequences (const char *source, char *dest)
 
int google::protobuf::UnescapeCEscapeSequences (const char *source, char *dest, vector< string > *errors)
 
int google::protobuf::UnescapeCEscapeString (const string &src, string *dest)
 
int google::protobuf::UnescapeCEscapeString (const string &src, string *dest, vector< string > *errors)
 
string google::protobuf::UnescapeCEscapeString (const string &src)
 
int google::protobuf::CEscapeInternal (const char *src, int src_len, char *dest, int dest_len, bool use_hex, bool utf8_safe)
 
void google::protobuf::CEscapeAndAppend (StringPiece src, string *dest)
 
string google::protobuf::CEscape (const string &src)
 
string google::protobuf::strings::Utf8SafeCEscape (const string &src)
 
string google::protobuf::strings::CHexEscape (const string &src)
 
int32 google::protobuf::strto32_adaptor (const char *nptr, char **endptr, int base)
 
uint32 google::protobuf::strtou32_adaptor (const char *nptr, char **endptr, int base)
 
bool google::protobuf::safe_parse_sign (string *text, bool *negative_ptr)
 
template<typename IntType >
bool google::protobuf::safe_parse_positive_int (string text, IntType *value_p)
 
template<typename IntType >
bool google::protobuf::safe_parse_negative_int (const string &text, IntType *value_p)
 
template<typename IntType >
bool google::protobuf::safe_int_internal (string text, IntType *value_p)
 
template<typename IntType >
bool google::protobuf::safe_uint_internal (string text, IntType *value_p)
 
char * google::protobuf::FastInt64ToBuffer (int64 i, char *buffer)
 
char * google::protobuf::FastInt32ToBuffer (int32 i, char *buffer)
 
char * google::protobuf::FastHexToBuffer (int i, char *buffer)
 
char * google::protobuf::InternalFastHexToBuffer (uint64 value, char *buffer, int num_byte)
 
char * google::protobuf::FastHex64ToBuffer (uint64 value, char *buffer)
 
char * google::protobuf::FastHex32ToBuffer (uint32 value, char *buffer)
 
char * google::protobuf::FastUInt32ToBufferLeft (uint32 u, char *buffer)
 
char * google::protobuf::FastInt32ToBufferLeft (int32 i, char *buffer)
 
char * google::protobuf::FastUInt64ToBufferLeft (uint64 u64, char *buffer)
 
char * google::protobuf::FastInt64ToBufferLeft (int64 i, char *buffer)
 
string google::protobuf::SimpleItoa (int i)
 
string google::protobuf::SimpleItoa (unsigned int i)
 
string google::protobuf::SimpleItoa (long i)
 
string google::protobuf::SimpleItoa (unsigned long i)
 
string google::protobuf::SimpleItoa (long long i)
 
string google::protobuf::SimpleItoa (unsigned long long i)
 
string google::protobuf::SimpleDtoa (double value)
 
string google::protobuf::SimpleFtoa (float value)
 
void google::protobuf::DelocalizeRadix (char *buffer)
 
char * google::protobuf::DoubleToBuffer (double value, char *buffer)
 
bool google::protobuf::CaseEqual (StringPiece s1, StringPiece s2)
 
bool google::protobuf::safe_strtob (StringPiece str, bool *value)
 
bool google::protobuf::safe_strtof (const char *str, float *value)
 
bool google::protobuf::safe_strtod (const char *str, double *value)
 
bool google::protobuf::safe_strto32 (const string &str, int32 *value)
 
bool google::protobuf::safe_strtou32 (const string &str, uint32 *value)
 
bool google::protobuf::safe_strto64 (const string &str, int64 *value)
 
bool google::protobuf::safe_strtou64 (const string &str, uint64 *value)
 
char * google::protobuf::FloatToBuffer (float value, char *buffer)
 
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)
 
void google::protobuf::StrAppend (string *result, const AlphaNum &a)
 
void google::protobuf::StrAppend (string *result, const AlphaNum &a, const AlphaNum &b)
 
void google::protobuf::StrAppend (string *result, const AlphaNum &a, const AlphaNum &b, const AlphaNum &c)
 
void google::protobuf::StrAppend (string *result, const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d)
 
int google::protobuf::GlobalReplaceSubstring (const string &substring, const string &replacement, string *s)
 
int google::protobuf::CalculateBase64EscapedLen (int input_len, bool do_padding)
 
int google::protobuf::CalculateBase64EscapedLen (int input_len)
 
int google::protobuf::Base64UnescapeInternal (const char *src_param, int szsrc, char *dest, int szdest, const signed char *unbase64)
 
int google::protobuf::WebSafeBase64Unescape (const char *src, int szsrc, char *dest, int szdest)
 
bool google::protobuf::Base64Unescape (StringPiece src, string *dest)
 
bool google::protobuf::WebSafeBase64Unescape (StringPiece src, string *dest)
 
int google::protobuf::Base64EscapeInternal (const unsigned char *src, int szsrc, char *dest, int szdest, const char *base64, bool do_padding)
 
int google::protobuf::Base64Escape (const unsigned char *src, int szsrc, char *dest, int szdest)
 
int google::protobuf::WebSafeBase64Escape (const unsigned char *src, int szsrc, char *dest, int szdest, bool do_padding)
 
void google::protobuf::Base64EscapeInternal (const unsigned char *src, int szsrc, string *dest, bool do_padding, const char *base64_chars)
 
void google::protobuf::Base64Escape (const unsigned char *src, int szsrc, string *dest, bool do_padding)
 
void google::protobuf::WebSafeBase64Escape (const unsigned char *src, int szsrc, string *dest, bool do_padding)
 
void google::protobuf::Base64Escape (StringPiece src, string *dest)
 
void google::protobuf::WebSafeBase64Escape (StringPiece src, string *dest)
 
void google::protobuf::WebSafeBase64EscapeWithPadding (StringPiece src, string *dest)
 
int google::protobuf::EncodeAsUTF8Char (uint32 code_point, char *output)
 
int google::protobuf::UTF8FirstLetterNumBytes (const char *src, int len)
 

Macro Definition Documentation

◆ GET_INPUT

#define GET_INPUT (   label,
  remain 
)
Value:
--szsrc; \
ch = *src++; \
decode = unbase64[ch]; \
if (decode < 0) { \
if (ascii_isspace(ch) && szsrc >= remain) \
goto label; \
state = 4 - remain; \
break; \
}
s decode
Definition: plot_neteq_delay.m:61
EGLenum EGLObjectKHR EGLLabelKHR label
Definition: eglext.h:121
bool ascii_isspace(char c)
Definition: strutil.h:75
GLenum src
Definition: gl2ext.h:304

◆ GOOGLE_DCHECK_NO_OVERLAP

#define GOOGLE_DCHECK_NO_OVERLAP (   dest,
  src 
)
Value:
#define size
Definition: float-mm.c:27
dest
Definition: upload.py:394
#define GOOGLE_DCHECK_GT
Definition: logging.h:198
_W64 unsigned int uintptr_t
Definition: stdint.h:161
EGLStreamKHR EGLint EGLint EGLint const void * data
Definition: eglext.h:984
GLenum src
Definition: gl2ext.h:304

◆ IS_OCTAL_DIGIT

#define IS_OCTAL_DIGIT (   c)    (((c) >= '0') && ((c) <= '7'))

◆ LOG_STRING

#define LOG_STRING (   LEVEL,
  VECTOR 
)    GOOGLE_LOG_IF(LEVEL, false)