Lines Matching refs:str
122 char str[64]; in sym_validate_range() local
145 sprintf(str, "%lld", val2); in sym_validate_range()
147 sprintf(str, "0x%llx", val2); in sym_validate_range()
148 sym->curr.val = xstrdup(str); in sym_validate_range()
553 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument
561 ch = *str++; in sym_string_valid()
563 ch = *str++; in sym_string_valid()
566 if (ch == '0' && *str != 0) in sym_string_valid()
568 while ((ch = *str++)) { in sym_string_valid()
574 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid()
575 str += 2; in sym_string_valid()
576 ch = *str++; in sym_string_valid()
580 } while ((ch = *str++)); in sym_string_valid()
584 switch (str[0]) { in sym_string_valid()
596 bool sym_string_within_range(struct symbol *sym, const char *str) in sym_string_within_range() argument
603 return sym_string_valid(sym, str); in sym_string_within_range()
605 if (!sym_string_valid(sym, str)) in sym_string_within_range()
610 val = strtoll(str, NULL, 10); in sym_string_within_range()
614 if (!sym_string_valid(sym, str)) in sym_string_within_range()
619 val = strtoll(str, NULL, 16); in sym_string_within_range()
624 switch (str[0]) { in sym_string_within_range()
698 const char *str; in sym_get_string_default() local
704 str = symbol_empty.curr.val; in sym_get_string_default()
724 str = (const char *)ds->curr.val; in sym_get_string_default()
755 return str; in sym_get_string_default()
757 return str; in sym_get_string_default()