Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
strings Namespace Reference

Functions

char * memdup (const char *s, size_t slen)
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)
false no n y 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)

Variables

false true
false no yes

Function Documentation

◆ memdup()

char * strings::memdup ( const char * s,
size_t slen )
inline

Definition at line 21 of file memutil.h.

◆ ParseLeadingBoolValue() [1/2]

false no n y bool strings::ParseLeadingBoolValue ( const char * str,
bool deflt )

Definition at line 226 of file numbers.cc.

◆ ParseLeadingBoolValue() [2/2]

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

Definition at line 141 of file numbers.h.

◆ ParseLeadingDec32Value() [1/2]

int32_t strings::ParseLeadingDec32Value ( const char * str,
int32_t deflt )

Definition at line 106 of file numbers.cc.

◆ ParseLeadingDec32Value() [2/2]

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

Definition at line 67 of file numbers.h.

◆ ParseLeadingDec64Value() [1/2]

int64_t strings::ParseLeadingDec64Value ( const char * str,
int64_t deflt )

Definition at line 185 of file numbers.cc.

◆ ParseLeadingDec64Value() [2/2]

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

Definition at line 110 of file numbers.h.

◆ ParseLeadingDoubleValue() [1/2]

double strings::ParseLeadingDoubleValue ( const char * str,
double deflt )

Definition at line 205 of file numbers.cc.

◆ ParseLeadingDoubleValue() [2/2]

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

Definition at line 127 of file numbers.h.

◆ ParseLeadingHex64Value() [1/2]

uint64_t strings::ParseLeadingHex64Value ( const char * str,
uint64_t deflt )

Definition at line 168 of file numbers.cc.

◆ ParseLeadingHex64Value() [2/2]

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

Definition at line 106 of file numbers.h.

◆ ParseLeadingInt32Value() [1/2]

int32_t strings::ParseLeadingInt32Value ( const char * str,
int32_t deflt )

Definition at line 55 of file numbers.cc.

◆ ParseLeadingInt32Value() [2/2]

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

Definition at line 38 of file numbers.h.

◆ ParseLeadingInt64Value() [1/2]

int64_t strings::ParseLeadingInt64Value ( const char * str,
int64_t deflt )

Definition at line 162 of file numbers.cc.

◆ ParseLeadingInt64Value() [2/2]

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

Definition at line 102 of file numbers.h.

◆ ParseLeadingUDec32Value() [1/2]

uint32_t strings::ParseLeadingUDec32Value ( const char * str,
uint32_t deflt )

Definition at line 120 of file numbers.cc.

◆ ParseLeadingUDec32Value() [2/2]

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

Definition at line 81 of file numbers.h.

◆ ParseLeadingUDec64Value() [1/2]

uint64_t strings::ParseLeadingUDec64Value ( const char * str,
uint64_t deflt )

Definition at line 191 of file numbers.cc.

◆ ParseLeadingUDec64Value() [2/2]

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

Definition at line 114 of file numbers.h.

◆ ParseLeadingUInt32Value() [1/2]

uint32_t strings::ParseLeadingUInt32Value ( const char * str,
uint32_t deflt )

Definition at line 69 of file numbers.cc.

◆ ParseLeadingUInt32Value() [2/2]

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

Definition at line 51 of file numbers.h.

◆ ParseLeadingUInt64Value() [1/2]

uint64_t strings::ParseLeadingUInt64Value ( const char * str,
uint64_t deflt )

Definition at line 156 of file numbers.cc.

◆ ParseLeadingUInt64Value() [2/2]

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

Definition at line 98 of file numbers.h.

◆ strtoint32()

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

Definition at line 37 of file numbers.cc.

◆ strtoint64()

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

Definition at line 29 of file numbers.cc.

◆ strtouint32()

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

Definition at line 41 of file numbers.cc.

◆ strtouint64()

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

Definition at line 33 of file numbers.cc.

Variable Documentation

◆ true

false strings::true

Definition at line 223 of file numbers.cc.

◆ yes

false no strings::yes

Definition at line 223 of file numbers.cc.