Lines Matching refs:str
160 char str[64]; in sym_validate_range() local
183 sprintf(str, "%lld", val2); in sym_validate_range()
185 sprintf(str, "0x%llx", val2); in sym_validate_range()
186 sym->curr.val = strdup(str); in sym_validate_range()
551 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument
559 ch = *str++; in sym_string_valid()
561 ch = *str++; in sym_string_valid()
564 if (ch == '0' && *str != 0) in sym_string_valid()
566 while ((ch = *str++)) { in sym_string_valid()
572 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid()
573 str += 2; in sym_string_valid()
574 ch = *str++; in sym_string_valid()
578 } while ((ch = *str++)); in sym_string_valid()
582 switch (str[0]) { in sym_string_valid()
594 bool sym_string_within_range(struct symbol *sym, const char *str) in sym_string_within_range() argument
601 return sym_string_valid(sym, str); in sym_string_within_range()
603 if (!sym_string_valid(sym, str)) in sym_string_within_range()
608 val = strtoll(str, NULL, 10); in sym_string_within_range()
612 if (!sym_string_valid(sym, str)) in sym_string_within_range()
617 val = strtoll(str, NULL, 16); in sym_string_within_range()
622 switch (str[0]) { in sym_string_within_range()
696 const char *str; in sym_get_string_default() local
702 str = symbol_empty.curr.val; in sym_get_string_default()
722 str = (const char *)ds->curr.val; in sym_get_string_default()
749 return str; in sym_get_string_default()
751 return str; in sym_get_string_default()