Home | History | Annotate | Download | only in stringlib

Lines Matching defs:format_spec

474     format_spec.  It handles getindex and getattr lookups and consumes

556 render_field calls fieldobj.__format__(format_spec) method, and
560 render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output)
566 STRINGLIB_CHAR* format_spec_start = format_spec->ptr ?
567 format_spec->ptr : NULL;
568 Py_ssize_t format_spec_len = format_spec->ptr ?
569 format_spec->end - format_spec->ptr : 0;
578 formatters expect string format_spec args. For now, just skip
599 __format__ takes a string/unicode object for format_spec. */
635 parse_field(SubString *str, SubString *field_name, SubString *format_spec,
646 SubString_init(format_spec, NULL, 0);
668 format_spec->ptr = str->ptr;
669 format_spec->end = str->end;
674 if (format_spec->ptr >= format_spec->end) {
680 *conversion = *(format_spec->ptr++);
683 if (format_spec->ptr < format_spec->end) {
684 c = *(format_spec->ptr++);
694 /* end of string, there's no format_spec or conversion */
725 SubString *format_spec, STRINGLIB_CHAR *conversion,
738 SubString_init(format_spec, NULL, 0);
825 if (parse_field(&s, field_name, format_spec, conversion) == 0)
870 {field_name!conversion:format_spec}
875 format_spec string.
882 output_markup(SubString *field_name, SubString *format_spec,
909 /* if needed, recurively compute the format_spec */
911 tmp = build_string(format_spec, args, kwargs, recursion_depth-1,
924 actual_format_spec = format_spec;
954 SubString format_spec;
959 &field_name, &format_spec,
965 if (!output_markup(&field_name, &format_spec,
1071 (literal, field_name, format_spec, conversion)
1075 format_spec is the string after the ':'. mibht be None
1083 SubString format_spec;
1088 &field_name, &format_spec, &conversion,
1113 format_spec (even if zero length), else return None */
1116 SubString_new_object)(&format_spec);