Lines Matching defs:str

134 atoi_sym_process(const char *str, const elfedit_atoi_sym_t *sym,
140 while (isspace(*str))
141 str++;
143 tail = str + strlen(str);
144 while ((tail > str) && isspace(*(tail - 1)))
147 cmp_len = tail - str;
151 (strncasecmp(sym->sym_name, str, cmp_len) == 0)) {
161 atoui_sym_process(const char *str, const elfedit_atoui_sym_t *sym,
167 while (isspace(*str))
168 str++;
170 tail = str + strlen(str);
171 while ((tail > str) && isspace(*(tail - 1)))
174 cmp_len = tail - str;
178 (strncasecmp(sym->sym_name, str, cmp_len) == 0)) {
221 * str - String to be converted
238 elfedit_atoi2(const char *str, const elfedit_atoi_sym_t *sym, elfedit_atoi_t *v)
242 if (sym && atoi_sym_process(str, sym, v))
245 *v = strtoll(str, &endptr, 0);
254 elfedit_atoi(const char *str, const elfedit_atoi_sym_t *sym)
257 if (elfedit_atoi2(str, sym, &v) == 0)
259 MSG_INTL(MSG_ERR_BADATOISTR), str);
263 elfedit_atoui2(const char *str, const elfedit_atoui_sym_t *sym,
268 if (sym && atoui_sym_process(str, sym, v))
271 *v = strtoull(str, &endptr, 0);
280 elfedit_atoui(const char *str, const elfedit_atoui_sym_t *sym)
283 if (elfedit_atoui2(str, sym, &v) == 0)
285 MSG_INTL(MSG_ERR_BADATOISTR), str);
289 elfedit_atoconst2(const char *str, elfedit_const_t const_type,
292 return (elfedit_atoui2(str, elfedit_const_to_atoui(const_type), v));
295 elfedit_atoconst(const char *str, elfedit_const_t const_type)
297 return (elfedit_atoui(str, elfedit_const_to_atoui(const_type)));
307 * str - String to be converted
329 elfedit_atoi_range2(const char *str, elfedit_atoi_t min, elfedit_atoi_t max,
332 return ((elfedit_atoi2(str, sym, v) != 0) &&
336 elfedit_atoi_range(const char *str, const char *item_name,
339 elfedit_atoi_t v = elfedit_atoi(str, sym);
348 elfedit_atoui_range2(const char *str, elfedit_atoui_t min, elfedit_atoui_t max,
351 return ((elfedit_atoui2(str, sym, v) != 0) &&
355 elfedit_atoui_range(const char *str, const char *item_name,
358 elfedit_atoui_t v = elfedit_atoui(str, sym);
367 elfedit_atoconst_range2(const char *str, elfedit_atoui_t min,
370 return (elfedit_atoui_range2(str, min, max,
374 elfedit_atoconst_range(const char *str, const char *item_name,
377 return (elfedit_atoui_range(str, item_name, min, max,
387 elfedit_atobool(const char *str, const char *item_name)
390 return (elfedit_atoconst_range(str, item_name, 0, 1,
401 * str - String to process
405 * If it is possible to convert str to a number, that value
412 elfedit_atoshndx(const char *str, size_t shnum)
416 ndx = elfedit_atoconst(str, ELFEDIT_CONST_SHN);
434 elfedit_atooutstyle(const char *str, elfedit_outstyle_t *outstyle)
439 ret = atoui_sym_process(str,