Google OR-Tools: 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

◆ memdup()

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

◆ ParseLeadingBoolValue() [1/2]

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

◆ ParseLeadingBoolValue() [2/2]

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

◆ ParseLeadingDec32Value() [1/2]

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

◆ ParseLeadingDec32Value() [2/2]

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

◆ ParseLeadingDec64Value() [1/2]

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

◆ ParseLeadingDec64Value() [2/2]

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

◆ ParseLeadingDoubleValue() [1/2]

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

◆ ParseLeadingDoubleValue() [2/2]

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

◆ ParseLeadingHex64Value() [1/2]

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

◆ ParseLeadingHex64Value() [2/2]

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

◆ ParseLeadingInt32Value() [1/2]

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

◆ ParseLeadingInt32Value() [2/2]

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

◆ ParseLeadingInt64Value() [1/2]

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

◆ ParseLeadingInt64Value() [2/2]

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

◆ ParseLeadingUDec32Value() [1/2]

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

◆ ParseLeadingUDec32Value() [2/2]

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

◆ ParseLeadingUDec64Value() [1/2]

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

◆ ParseLeadingUDec64Value() [2/2]

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

◆ ParseLeadingUInt32Value() [1/2]

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

◆ ParseLeadingUInt32Value() [2/2]

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

◆ ParseLeadingUInt64Value() [1/2]

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

◆ ParseLeadingUInt64Value() [2/2]

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

◆ strtoint32()

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

◆ strtoint64()

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

◆ strtouint32()

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

◆ strtouint64()

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

◆ true

◆ yes