|
static int64_t | Parse (const char *value, int64_t default_value=-1) |
|
Definition at line 750 of file service.cc.
◆ Int64Parameter()
dart::Int64Parameter::Int64Parameter |
( |
const char * |
name, |
|
|
bool |
required |
|
) |
| |
|
inline |
Definition at line 752 of file service.cc.
const char * name() const
MethodParameter(const char *name, bool required)
◆ Parse()
static int64_t dart::Int64Parameter::Parse |
( |
const char * |
value, |
|
|
int64_t |
default_value = -1 |
|
) |
| |
|
inlinestatic |
Definition at line 767 of file service.cc.
767 {
769 return default_value;
770 }
771 char* end_ptr = nullptr;
775 }
◆ Validate()
virtual bool dart::Int64Parameter::Validate |
( |
const char * |
value | ) |
const |
|
inlinevirtual |
Reimplemented from dart::MethodParameter.
Definition at line 755 of file service.cc.
755 {
756 if (
value ==
nullptr) {
757 return false;
758 }
759 for (
const char* cp =
value; *cp !=
'\0'; cp++) {
760 if ((*cp < '0' || *cp > '9') && (*cp != '-')) {
761 return false;
762 }
763 }
764 return true;
765 }
The documentation for this class was generated from the following file: