Lines Matching refs:sign
108 /* returns true if this character is a sign element */
134 Py_UCS4 sign;
171 format->sign = '\0';
192 /* Parse the various sign options */
194 format->sign = READ_spec(pos);
331 assert (format->sign <= 127);
418 char sign;
419 Py_ssize_t n_sign; /* number of digits needed for sign (0/1) */
490 spec->sign = '\0';
495 | <lpadding> <sign> <prefix> <spadding> <grouped_digits> <decimal> <remainder> <rpadding> |
498 sign is computed from format->sign and the actual
499 sign of the number
513 switch (format->sign) {
517 spec->sign = (sign_char == '-' ? '-' : '+');
521 spec->sign = (sign_char == '-' ? '-' : ' ');
527 spec->sign = '-';
621 PyUnicode_WRITE(kind, data, writer->pos, spec->sign);
778 /* sign is not allowed on strings */
779 if (format->sign != '\0') {
780 if (format->sign == ' ') {
902 /* error to specify a sign */
903 if (format->sign != '\0') {
968 if (format->sign != '+' && format->sign != ' '
993 /* Is a sign character present in the output? If so, remember it
1125 if (format->sign != '+' && format->sign != ' '
1143 /* Is a sign character present in the output? If so, remember it
1317 /* Is a sign character present in the output? If so, remember it
1358 /* Same formatting, but always include a sign, unless the real part is
1359 * going to be omitted, in which case we use whatever sign convention was
1362 tmp_format.sign = '+';