Lines Matching refs:width
41 decimal2str (const char *sign, ULONGEST addr, int width)
54 width -= 9;
58 width += 9;
59 if (width < 0)
60 width = 0;
65 xsnprintf (str, PRINT_CELL_SIZE, "%s%0*lu", sign, width, temp[0]);
68 xsnprintf (str, PRINT_CELL_SIZE, "%s%0*lu%09lu", sign, width,
72 xsnprintf (str, PRINT_CELL_SIZE, "%s%0*lu%09lu%09lu", sign, width,
84 octal2str (ULONGEST addr, int width)
95 width -= 10;
99 width += 10;
100 if (width < 0)
101 width = 0;
107 xsnprintf (str, PRINT_CELL_SIZE, "%*o", width, 0);
109 xsnprintf (str, PRINT_CELL_SIZE, "0%0*lo", width, temp[0]);
112 xsnprintf (str, PRINT_CELL_SIZE, "0%0*lo%010lo", width, temp[1], temp[0]);
115 xsnprintf (str, PRINT_CELL_SIZE, "0%0*lo%010lo%010lo", width,
231 hex_string_custom (LONGEST num, int width)
238 if (hex_len > width)
239 width = hex_len;
240 if (width + 2 >= PRINT_CELL_SIZE)
244 strcpy (result_end - width - 2, "0x");
245 memset (result_end - width, '0', width);
247 return result_end - width - 2;
253 int_string (LONGEST val, int radix, int is_signed, int width,
262 if (width == 0)
265 result = hex_string_custom (val, width);
273 return decimal2str ("-", -val, width);
275 return decimal2str ("", val, width);
279 char *result = octal2str (val, width);