|
static uintptr_t | Parse (const char *value) |
|
Definition at line 722 of file service.cc.
◆ UIntParameter()
dart::UIntParameter::UIntParameter |
( |
const char * |
name, |
|
|
bool |
required |
|
) |
| |
|
inline |
Definition at line 724 of file service.cc.
const char * name() const
MethodParameter(const char *name, bool required)
◆ Parse()
static uintptr_t dart::UIntParameter::Parse |
( |
const char * |
value | ) |
|
|
inlinestatic |
Definition at line 739 of file service.cc.
739 {
740 if (value == nullptr) {
741 return -1;
742 }
743 char* end_ptr = nullptr;
744 uintptr_t
result = strtoul(value, &end_ptr, 10);
747 }
◆ Validate()
virtual bool dart::UIntParameter::Validate |
( |
const char * |
value | ) |
const |
|
inlinevirtual |
Reimplemented from dart::MethodParameter.
Definition at line 727 of file service.cc.
727 {
728 if (value == nullptr) {
729 return false;
730 }
731 for (const char* cp = value; *cp != '\0'; cp++) {
732 if (*cp < '0' || *cp > '9') {
733 return false;
734 }
735 }
736 return true;
737 }
The documentation for this class was generated from the following file: