Lines Matching refs:value

24   virtual bool Parse(const char *value) { return false; }
25 // Write the C string representation of the current value (truncated to fit)
50 bool Parse(const char *value) final;
54 inline bool ParseBool(const char *value, bool *b) {
55 if (internal_strcmp(value, "0") == 0 ||
56 internal_strcmp(value, "no") == 0 ||
57 internal_strcmp(value, "false") == 0) {
61 if (internal_strcmp(value, "1") == 0 ||
62 internal_strcmp(value, "yes") == 0 ||
63 internal_strcmp(value, "true") == 0) {
71 inline bool FlagHandler<bool>::Parse(const char *value) {
72 if (ParseBool(value, t_)) return true;
73 Printf("ERROR: Invalid value for bool option: '%s'\n", value);
83 inline bool FlagHandler<HandleSignalMode>::Parse(const char *value) {
85 if (ParseBool(value, &b)) {
89 if (internal_strcmp(value, "2") == 0 ||
90 internal_strcmp(value, "exclusive") == 0) {
94 Printf("ERROR: Invalid value for signal handler option: '%s'\n", value);
105 inline bool FlagHandler<const char *>::Parse(const char *value) {
106 *t_ = value;
116 inline bool FlagHandler<int>::Parse(const char *value) {
118 *t_ = internal_simple_strtoll(value, &value_end, 10);
120 if (!ok) Printf("ERROR: Invalid value for int option: '%s'\n", value);
131 inline bool FlagHandler<uptr>::Parse(const char *value) {
133 *t_ = internal_simple_strtoll(value, &value_end, 10);
135 if (!ok) Printf("ERROR: Invalid value for uptr option: '%s'\n", value);
146 inline bool FlagHandler<s64>::Parse(const char *value) {
148 *t_ = internal_simple_strtoll(value, &value_end, 10);
150 if (!ok) Printf("ERROR: Invalid value for s64 option: '%s'\n", value);
189 bool run_handler(const char *name, const char *value);