/external/python/cpython3/Python/clinic/ |
bltinmodule.c.h | 75 "format($module, value, format_spec=\'\', /)\n" 78 "Return value.__format__(format_spec)\n" 80 "format_spec defaults to the empty string"); 86 builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec); 93 PyObject *format_spec = NULL; local 96 &value, &format_spec)) { 99 return_value = builtin_format_impl(module, value, format_spec);
|
/external/python/cpython3/Objects/ |
complexobject.c | 700 "Convert to a string according to format_spec."); 705 PyObject *format_spec; local 709 if (!PyArg_ParseTuple(args, "U:__format__", &format_spec)) 716 format_spec, 0, PyUnicode_GET_LENGTH(format_spec));
|
floatobject.c | 1748 PyObject *format_spec; local [all...] |
/external/python/cpython3/Objects/stringlib/ |
unicode_format.h | 392 format_spec. It handles getindex and getattr lookups and consumes 487 render_field calls fieldobj.__format__(format_spec) method, and 491 render_field(PyObject *fieldobj, SubString *format_spec, _PyUnicodeWriter *writer) 513 err = formatter(writer, fieldobj, format_spec->str, 514 format_spec->start, format_spec->end); 519 __format__ takes a string/unicode object for format_spec. */ 520 if (format_spec->str) 521 format_spec_object = PyUnicode_Substring(format_spec->str, 522 format_spec->start 868 SubString format_spec; local 995 SubString format_spec; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
complexobject.c | 904 "Convert to a string according to format_spec.");
909 PyObject *format_spec;
local 911 if (!PyArg_ParseTuple(args, "O:__format__", &format_spec))
913 if (PyBytes_Check(format_spec))
915 PyBytes_AS_STRING(format_spec),
916 PyBytes_GET_SIZE(format_spec));
917 if (PyUnicode_Check(format_spec)) {
918 /* Convert format_spec to a str */
920 PyObject *str_spec = PyObject_Str(format_spec);
[all...] |
intobject.c | 1262 PyObject *format_spec; local [all...] |
floatobject.c | 1986 PyObject *format_spec; local [all...] |
stringobject.c | 3603 PyObject *format_spec; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/ |
string_format.h | 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. */ 954 SubString format_spec; local 1083 SubString format_spec; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
complexobject.c | 900 "Converts to a string according to format_spec.");
905 PyObject *format_spec;
local 907 if (!PyArg_ParseTuple(args, "O:__format__", &format_spec))
909 if (PyBytes_Check(format_spec))
911 PyBytes_AS_STRING(format_spec),
912 PyBytes_GET_SIZE(format_spec));
913 if (PyUnicode_Check(format_spec)) {
914 /* Convert format_spec to a str */
916 PyObject *str_spec = PyObject_Str(format_spec);
[all...] |
intobject.c | 1236 PyObject *format_spec; local [all...] |
floatobject.c | 1971 PyObject *format_spec; local [all...] |
longobject.c | 4093 PyObject *format_spec; local [all...] |
stringobject.c | 3582 PyObject *format_spec; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/ |
string_format.h | 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. */ 957 SubString format_spec; local 1086 SubString format_spec; local [all...] |
/external/python/cpython2/Objects/ |
complexobject.c | 904 "Convert to a string according to format_spec."); 909 PyObject *format_spec; local 911 if (!PyArg_ParseTuple(args, "O:__format__", &format_spec)) 913 if (PyBytes_Check(format_spec)) 915 PyBytes_AS_STRING(format_spec), 916 PyBytes_GET_SIZE(format_spec)); 917 if (PyUnicode_Check(format_spec)) { 918 /* Convert format_spec to a str */ 920 PyObject *str_spec = PyObject_Str(format_spec); [all...] |
intobject.c | 1255 PyObject *format_spec; local [all...] |
floatobject.c | 1995 PyObject *format_spec; local [all...] |
/external/python/cpython2/Objects/stringlib/ |
string_format.h | 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. * 954 SubString format_spec; local 1083 SubString format_spec; local [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/lib/gcc/x86_64-w64-mingw32/4.8.3/plugin/include/ |
pretty-print.h | 34 const char *format_spec; member in struct:__anon63413 179 TEXT->format_spec points to a format code. FORMAT_DECODER should call 183 should advance the TEXT->format_spec as it goes. When FORMAT_DECODER 184 returns, TEXT->format_spec should point to the last character processed.
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
bltinmodule.c | 365 PyObject *format_spec = NULL;
local 367 if (!PyArg_ParseTuple(args, "O|O:format", &value, &format_spec))
370 return PyObject_Format(value, format_spec);
374 "format(value[, format_spec]) -> string\n\
376 Returns value.__format__(format_spec)\n\
377 format_spec defaults to \"\"");
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
bltinmodule.c | 359 PyObject *format_spec = NULL;
local 361 if (!PyArg_ParseTuple(args, "O|O:format", &value, &format_spec))
364 return PyObject_Format(value, format_spec);
368 "format(value[, format_spec]) -> string\n\
370 Returns value.__format__(format_spec)\n\
371 format_spec defaults to \"\"");
[all...] |
/external/python/cpython2/Python/ |
bltinmodule.c | 365 PyObject *format_spec = NULL; local 367 if (!PyArg_ParseTuple(args, "O|O:format", &value, &format_spec)) 370 return PyObject_Format(value, format_spec); 374 "format(value[, format_spec]) -> string\n\ 376 Returns value.__format__(format_spec)\n\ 377 format_spec defaults to \"\""); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/ |
longobject.c | 4093 PyObject *format_spec; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/ |
longobject.c | 4119 PyObject *format_spec; local [all...] |