Lines Matching defs:value

225 // If "full" is the empty string, yields an empty string as the only value.
276 // specify a value of a single byte (e.g. \x0045 is equivalent
394 PROTOBUF_EXPORT bool safe_strtob(StringPiece str, bool* value);
396 PROTOBUF_EXPORT bool safe_strto32(const string& str, int32* value);
397 PROTOBUF_EXPORT bool safe_strtou32(const string& str, uint32* value);
398 inline bool safe_strto32(const char* str, int32* value) {
399 return safe_strto32(string(str), value);
401 inline bool safe_strto32(StringPiece str, int32* value) {
402 return safe_strto32(str.ToString(), value);
404 inline bool safe_strtou32(const char* str, uint32* value) {
405 return safe_strtou32(string(str), value);
407 inline bool safe_strtou32(StringPiece str, uint32* value) {
408 return safe_strtou32(str.ToString(), value);
411 PROTOBUF_EXPORT bool safe_strto64(const string& str, int64* value);
412 PROTOBUF_EXPORT bool safe_strtou64(const string& str, uint64* value);
413 inline bool safe_strto64(const char* str, int64* value) {
414 return safe_strto64(string(str), value);
416 inline bool safe_strto64(StringPiece str, int64* value) {
417 return safe_strto64(str.ToString(), value);
419 inline bool safe_strtou64(const char* str, uint64* value) {
420 return safe_strtou64(string(str), value);
422 inline bool safe_strtou64(StringPiece str, uint64* value) {
423 return safe_strtou64(str.ToString(), value);
426 PROTOBUF_EXPORT bool safe_strtof(const char* str, float* value);
427 PROTOBUF_EXPORT bool safe_strtod(const char* str, double* value);
428 inline bool safe_strtof(const string& str, float* value) {
429 return safe_strtof(str.c_str(), value);
431 inline bool safe_strtod(const string& str, double* value) {
432 return safe_strtod(str.c_str(), value);
434 inline bool safe_strtof(StringPiece str, float* value) {
435 return safe_strtof(str.ToString(), value);
437 inline bool safe_strtod(StringPiece str, double* value) {
438 return safe_strtod(str.ToString(), value);
452 // FastHex64ToBuffer() puts a 64-bit unsigned value in hex-format,
455 // FastHex32ToBuffer() puts a 32-bit unsigned value in hex-format,
524 inline string SimpleBtoa(bool value) {
525 return value ? "true" : "false";
532 // Return value: string
548 // (except in case of NaN; all NaNs are considered the same value).
558 // Return value: string
560 PROTOBUF_EXPORT string SimpleDtoa(double value);
561 PROTOBUF_EXPORT string SimpleFtoa(float value);
594 uint64 value;
606 value = sizeof(v) == 1 ? static_cast<uint8>(v)
827 // routines. Make sure to use the same value for do_padding in both.