OR-Tools  9.6
strings Namespace Reference

Classes

struct  AsciiCaseInsensitiveLess
 
struct  AsciiCaseInsensitiveHash
 
struct  AsciiCaseInsensitiveEq
 

Enumerations

enum class  AsciiCapitalizationType {
  kLower , kUpper , kFirst , kMixed ,
  kNoAlpha
}
 

Functions

std::ostream & operator<< (std::ostream &os, const AsciiCapitalizationType &type)
 
AsciiCapitalizationType GetAsciiCapitalization (const absl::string_view input)
 
int AsciiCaseInsensitiveCompare (absl::string_view s1, absl::string_view s2)
 
void MakeAsciiTitlecase (std::string *s, absl::string_view delimiters)
 
std::string MakeAsciiTitlecase (absl::string_view s, absl::string_view delimiters)
 
int64_t strtoint64 (const char *nptr, char **endptr, int base)
 
uint64_t strtouint64 (const char *nptr, char **endptr, int base)
 
int32_t strtoint32 (const char *nptr, char **endptr, int base)
 
uint32_t strtouint32 (const char *nptr, char **endptr, int base)
 
int32_t ParseLeadingInt32Value (const char *str, int32_t deflt)
 
uint32_t ParseLeadingUInt32Value (const char *str, uint32_t deflt)
 
int32_t ParseLeadingDec32Value (const char *str, int32_t deflt)
 
uint32_t ParseLeadingUDec32Value (const char *str, uint32_t deflt)
 
uint64_t ParseLeadingUInt64Value (const char *str, uint64_t deflt)
 
int64_t ParseLeadingInt64Value (const char *str, int64_t deflt)
 
uint64_t ParseLeadingHex64Value (const char *str, uint64_t deflt)
 
int64_t ParseLeadingDec64Value (const char *str, int64_t deflt)
 
uint64_t ParseLeadingUDec64Value (const char *str, uint64_t deflt)
 
double ParseLeadingDoubleValue (const char *str, double deflt)
 
bool ParseLeadingBoolValue (const char *str, bool deflt)
 
int32_t ParseLeadingInt32Value (std::string_view str, int32_t deflt)
 
uint32_t ParseLeadingUInt32Value (std::string_view str, uint32_t deflt)
 
int32_t ParseLeadingDec32Value (std::string_view str, int32_t deflt)
 
uint32_t ParseLeadingUDec32Value (std::string_view str, uint32_t deflt)
 
uint64_t ParseLeadingUInt64Value (std::string_view str, uint64_t deflt)
 
int64_t ParseLeadingInt64Value (std::string_view str, int64_t deflt)
 
uint64_t ParseLeadingHex64Value (std::string_view str, uint64_t deflt)
 
int64_t ParseLeadingDec64Value (std::string_view str, int64_t deflt)
 
uint64_t ParseLeadingUDec64Value (std::string_view str, uint64_t deflt)
 
double ParseLeadingDoubleValue (std::string_view str, double deflt)
 
bool ParseLeadingBoolValue (std::string_view str, bool deflt)
 

Enumeration Type Documentation

◆ AsciiCapitalizationType

Enumerator
kLower 
kUpper 
kFirst 
kMixed 
kNoAlpha 

Definition at line 45 of file case.h.

Function Documentation

◆ AsciiCaseInsensitiveCompare()

int AsciiCaseInsensitiveCompare ( absl::string_view  s1,
absl::string_view  s2 
)

Definition at line 90 of file case.cc.

◆ GetAsciiCapitalization()

AsciiCapitalizationType GetAsciiCapitalization ( const absl::string_view  input)

Definition at line 52 of file case.cc.

◆ MakeAsciiTitlecase() [1/2]

std::string MakeAsciiTitlecase ( absl::string_view  s,
absl::string_view  delimiters 
)

Definition at line 123 of file case.cc.

◆ MakeAsciiTitlecase() [2/2]

void MakeAsciiTitlecase ( std::string *  s,
absl::string_view  delimiters 
)

Definition at line 113 of file case.cc.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const AsciiCapitalizationType type 
)

Definition at line 34 of file case.cc.

◆ ParseLeadingBoolValue() [1/2]

bool ParseLeadingBoolValue ( const char *  str,
bool  deflt 
)

Definition at line 219 of file numbers.cc.

◆ ParseLeadingBoolValue() [2/2]

bool strings::ParseLeadingBoolValue ( std::string_view  str,
bool  deflt 
)
inline

Definition at line 129 of file numbers.h.

◆ ParseLeadingDec32Value() [1/2]

int32_t ParseLeadingDec32Value ( const char *  str,
int32_t  deflt 
)

Definition at line 107 of file numbers.cc.

◆ ParseLeadingDec32Value() [2/2]

int32_t strings::ParseLeadingDec32Value ( std::string_view  str,
int32_t  deflt 
)
inline

Definition at line 62 of file numbers.h.

◆ ParseLeadingDec64Value() [1/2]

int64_t ParseLeadingDec64Value ( const char *  str,
int64_t  deflt 
)

Definition at line 182 of file numbers.cc.

◆ ParseLeadingDec64Value() [2/2]

int64_t strings::ParseLeadingDec64Value ( std::string_view  str,
int64_t  deflt 
)
inline

Definition at line 102 of file numbers.h.

◆ ParseLeadingDoubleValue() [1/2]

double ParseLeadingDoubleValue ( const char *  str,
double  deflt 
)

Definition at line 200 of file numbers.cc.

◆ ParseLeadingDoubleValue() [2/2]

double strings::ParseLeadingDoubleValue ( std::string_view  str,
double  deflt 
)
inline

Definition at line 117 of file numbers.h.

◆ ParseLeadingHex64Value() [1/2]

uint64_t ParseLeadingHex64Value ( const char *  str,
uint64_t  deflt 
)

Definition at line 167 of file numbers.cc.

◆ ParseLeadingHex64Value() [2/2]

uint64_t strings::ParseLeadingHex64Value ( std::string_view  str,
uint64_t  deflt 
)
inline

Definition at line 98 of file numbers.h.

◆ ParseLeadingInt32Value() [1/2]

int32_t ParseLeadingInt32Value ( const char *  str,
int32_t  deflt 
)

Definition at line 58 of file numbers.cc.

◆ ParseLeadingInt32Value() [2/2]

int32_t strings::ParseLeadingInt32Value ( std::string_view  str,
int32_t  deflt 
)
inline

Definition at line 36 of file numbers.h.

◆ ParseLeadingInt64Value() [1/2]

int64_t ParseLeadingInt64Value ( const char *  str,
int64_t  deflt 
)

Definition at line 161 of file numbers.cc.

◆ ParseLeadingInt64Value() [2/2]

int64_t strings::ParseLeadingInt64Value ( std::string_view  str,
int64_t  deflt 
)
inline

Definition at line 94 of file numbers.h.

◆ ParseLeadingUDec32Value() [1/2]

uint32_t ParseLeadingUDec32Value ( const char *  str,
uint32_t  deflt 
)

Definition at line 121 of file numbers.cc.

◆ ParseLeadingUDec32Value() [2/2]

uint32_t strings::ParseLeadingUDec32Value ( std::string_view  str,
uint32_t  deflt 
)
inline

Definition at line 75 of file numbers.h.

◆ ParseLeadingUDec64Value() [1/2]

uint64_t ParseLeadingUDec64Value ( const char *  str,
uint64_t  deflt 
)

Definition at line 188 of file numbers.cc.

◆ ParseLeadingUDec64Value() [2/2]

uint64_t strings::ParseLeadingUDec64Value ( std::string_view  str,
uint64_t  deflt 
)
inline

Definition at line 106 of file numbers.h.

◆ ParseLeadingUInt32Value() [1/2]

uint32_t ParseLeadingUInt32Value ( const char *  str,
uint32_t  deflt 
)

Definition at line 72 of file numbers.cc.

◆ ParseLeadingUInt32Value() [2/2]

uint32_t strings::ParseLeadingUInt32Value ( std::string_view  str,
uint32_t  deflt 
)
inline

Definition at line 48 of file numbers.h.

◆ ParseLeadingUInt64Value() [1/2]

uint64_t ParseLeadingUInt64Value ( const char *  str,
uint64_t  deflt 
)

Definition at line 155 of file numbers.cc.

◆ ParseLeadingUInt64Value() [2/2]

uint64_t strings::ParseLeadingUInt64Value ( std::string_view  str,
uint64_t  deflt 
)
inline

Definition at line 90 of file numbers.h.

◆ strtoint32()

int32_t strings::strtoint32 ( const char *  nptr,
char **  endptr,
int  base 
)
inline

Definition at line 42 of file numbers.cc.

◆ strtoint64()

int64_t strings::strtoint64 ( const char *  nptr,
char **  endptr,
int  base 
)
inline

Definition at line 34 of file numbers.cc.

◆ strtouint32()

uint32_t strings::strtouint32 ( const char *  nptr,
char **  endptr,
int  base 
)
inline

Definition at line 46 of file numbers.cc.

◆ strtouint64()

uint64_t strings::strtouint64 ( const char *  nptr,
char **  endptr,
int  base 
)
inline

Definition at line 38 of file numbers.cc.