Home | History | Annotate | Download | only in stringlib

Lines Matching defs:format_spec

477     format_spec.  It handles getindex and getattr lookups and consumes

559 render_field calls fieldobj.__format__(format_spec) method, and
563 render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output)
569 STRINGLIB_CHAR* format_spec_start = format_spec->ptr ?
570 format_spec->ptr : NULL;
571 Py_ssize_t format_spec_len = format_spec->ptr ?
572 format_spec->end - format_spec->ptr : 0;
581 formatters expect string format_spec args. For now, just skip
602 __format__ takes a string/unicode object for format_spec. */
638 parse_field(SubString *str, SubString *field_name, SubString *format_spec,
649 SubString_init(format_spec, NULL, 0);
671 format_spec->ptr = str->ptr;
672 format_spec->end = str->end;
677 if (format_spec->ptr >= format_spec->end) {
683 *conversion = *(format_spec->ptr++);
686 if (format_spec->ptr < format_spec->end) {
687 c = *(format_spec->ptr++);
697 /* end of string, there's no format_spec or conversion */
728 SubString *format_spec, STRINGLIB_CHAR *conversion,
741 SubString_init(format_spec, NULL, 0);
828 if (parse_field(&s, field_name, format_spec, conversion) == 0)
873 {field_name!conversion:format_spec}
878 format_spec string.
885 output_markup(SubString *field_name, SubString *format_spec,
912 /* if needed, recurively compute the format_spec */
914 tmp = build_string(format_spec, args, kwargs, recursion_depth-1,
927 actual_format_spec = format_spec;
957 SubString format_spec;
962 &field_name, &format_spec,
968 if (!output_markup(&field_name, &format_spec,
1074 (literal, field_name, format_spec, conversion)
1078 format_spec is the string after the ':'. mibht be None
1086 SubString format_spec;
1091 &field_name, &format_spec, &conversion,
1116 format_spec (even if zero length), else return None */
1119 SubString_new_object)(&format_spec);