Home
last modified time | relevance | path

Searched refs:PyOS_snprintf (Results 1 - 25 of 28) sorted by relevance

12

/third_party/python/Lib/ctypes/test/
H A Dtest_python_api.py66 PyOS_snprintf = pythonapi.PyOS_snprintf
67 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
70 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes")
73 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3)
77 self.assertRaises(TypeError, PyOS_snprintf, buf)
/third_party/python/Python/
H A Ddynload_hpux.c37 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s", in _PyImport_FindSharedFuncptr()
61 PyOS_snprintf(funcname, sizeof(funcname), FUNCNAME_PATTERN, in _PyImport_FindSharedFuncptr()
H A Ddynload_shlib.c65 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_FindSharedFuncptr()
69 PyOS_snprintf(funcname, sizeof(funcname), in _PyImport_FindSharedFuncptr()
H A Dgetversion.c12 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", in Py_GetVersion()
H A Dmysnprintf.c16 PyOS_snprintf and PyOS_vsnprintf never write more than size bytes
41 PyOS_snprintf(char *str, size_t size, const char *format, ...) in PyOS_snprintf() function
H A Ddynload_win.c237 PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
318 PyOS_snprintf(buffer, sizeof(buffer),
H A Dgetargs.c451 PyOS_snprintf(p, sizeof(buf), "%.200s() ", fname); in seterror()
455 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror()
460 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror()
467 PyOS_snprintf(p, sizeof(buf) - (p - buf), "argument"); in seterror()
470 PyOS_snprintf(p, sizeof(buf) - (p - buf), " %.256s", msg); in seterror()
531 PyOS_snprintf(msgbuf, bufsize, in converttuple()
543 PyOS_snprintf(msgbuf, bufsize, in converttuple()
550 PyOS_snprintf(msgbuf, bufsize, in converttuple()
633 PyOS_snprintf(msgbuf, bufsize, in converterr()
637 PyOS_snprintf(msgbu in converterr()
[all...]
H A Dpystrtod.c680 written = PyOS_snprintf(p, buf_avail, "e%+.02d", digit_count-1); in ensure_decimal_point()
766 /* Have PyOS_snprintf do the hard work */ in _PyOS_ascii_formatd()
767 PyOS_snprintf(buffer, buf_size, format, d); in _PyOS_ascii_formatd()
915 PyOS_snprintf(format, sizeof(format), "%%%s.%i%c", in PyOS_double_to_string()
H A D_warnings.c502 PyOS_snprintf(lineno_str, sizeof(lineno_str), ":%d: ", lineno); in show_warning()
/third_party/python/Modules/
H A Dgetbuildinfo.c46 PyOS_snprintf(buildinfo, sizeof(buildinfo), in Py_GetBuildInfo()
H A Dfaulthandler.c690 PyOS_snprintf(buffer, sizeof(buffer), in format_timeout()
695 PyOS_snprintf(buffer, sizeof(buffer), in format_timeout()
H A D_gdbmmodule.c668 PyOS_snprintf(buf, sizeof(buf), "Flag '%c' is not supported.", in dbmopen_impl()
H A D_localemodule.c458 PyOS_snprintf(encoding, sizeof(encoding), "cp%u", GetACP()); in _locale__getdefaultlocale_impl()
H A Dunicodedata.c453 PyOS_snprintf(decomp + i, sizeof(decomp) - i, "%04X", in unicodedata_UCD_decomposition_impl()
H A D_datetimemodule.c1496 PyOS_snprintf(buf, buflen, "%c%02d%s%02d%s%02d.%06d", sign, in format_utcoffset()
1501 PyOS_snprintf(buf, buflen, "%c%02d%s%02d%s%02d", sign, hours, in format_utcoffset()
1505 PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes); in format_utcoffset()
H A Dgcmodule.c1053 pos += PyOS_snprintf(buf+pos, sizeof(buf)-pos, in show_stats_each_generations()
H A Dselectmodule.c1852 PyOS_snprintf( in kqueue_event_repr()
H A D_pickle.c1723 PyOS_snprintf(pdata + 1, sizeof(pdata) - 1, in memo_get()
1780 PyOS_snprintf(pdata + 1, sizeof(pdata) - 1, in memo_put()
/third_party/python/Include/
H A Dpyerrors.h317 PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
/third_party/python/Objects/
H A Dobmalloc.c2918 PyOS_snprintf(buf1, sizeof(buf1), in _PyDebugAllocatorStats()
2921 PyOS_snprintf(buf2, sizeof(buf2), in _PyDebugAllocatorStats()
3076 PyOS_snprintf(buf, sizeof(buf), in _PyObject_DebugMallocStats()
3087 PyOS_snprintf(buf, sizeof(buf), in _PyObject_DebugMallocStats()
H A Dtupleobject.c1266 PyOS_snprintf(buf, sizeof(buf), in _PyTuple_DebugMallocStats()
H A Dfloatobject.c992 PyOS_snprintf(mybuf, mybuflen, "%s0%se%d", (sign ? "-" : ""), in double_round()
/third_party/python/PC/
H A Dpython3dll.c496 EXPORT_FUNC(PyOS_snprintf)
/third_party/python/Modules/_sqlite/
H A Dcursor.c406 PyOS_snprintf(buf, sizeof(buf) - 1, "Could not decode to UTF-8 column '%s' with text '%s'", in _pysqlite_fetch_one_row()
/third_party/skia/third_party/externals/libwebp/swig/
H A Dlibwebp_python_wrap.c817 /* Add PyOS_snprintf for old Pythons */
820 # define PyOS_snprintf _snprintf macro
822 # define PyOS_snprintf snprintf macro
2867 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); in SWIG_Python_ArgFail()

Completed in 82 milliseconds

12