|
static uint64_t | Parse (const char *value, uint64_t default_value=0) |
|
Definition at line 778 of file service.cc.
◆ UInt64Parameter()
dart::UInt64Parameter::UInt64Parameter |
( |
const char * |
name, |
|
|
bool |
required |
|
) |
| |
|
inline |
Definition at line 780 of file service.cc.
const char * name() const
MethodParameter(const char *name, bool required)
◆ Parse()
static uint64_t dart::UInt64Parameter::Parse |
( |
const char * |
value, |
|
|
uint64_t |
default_value = 0 |
|
) |
| |
|
inlinestatic |
Definition at line 795 of file service.cc.
795 {
797 return default_value;
798 }
799 char* end_ptr = nullptr;
803 }
◆ Validate()
virtual bool dart::UInt64Parameter::Validate |
( |
const char * |
value | ) |
const |
|
inlinevirtual |
Reimplemented from dart::MethodParameter.
Definition at line 783 of file service.cc.
783 {
784 if (
value ==
nullptr) {
785 return false;
786 }
787 for (
const char* cp =
value; *cp !=
'\0'; cp++) {
788 if ((*cp < '0' || *cp > '9') && (*cp != '-')) {
789 return false;
790 }
791 }
792 return true;
793 }
The documentation for this class was generated from the following file: