Lines Matching refs:str
1668 char *str;
1669 if (!PyArg_ParseTuple(args, "s", &str))
1671 return PyBytes_FromString(str);
1689 char *str;
1691 if (!PyArg_ParseTuple(args, "s#", &str, &size))
1693 return PyBytes_FromStringAndSize(str, size);
1699 char *str;
1700 if (!PyArg_ParseTuple(args, "z", &str))
1702 if (str != NULL)
1703 return PyBytes_FromString(str);
1728 char *str;
1730 if (!PyArg_ParseTuple(args, "z#", &str, &size))
1732 if (str != NULL)
1733 return PyBytes_FromStringAndSize(str, size);
1741 char *str;
1742 if (!PyArg_ParseTuple(args, "y", &str))
1744 return PyBytes_FromString(str);
1762 char *str;
1764 if (!PyArg_ParseTuple(args, "y#", &str, &size))
1766 return PyBytes_FromStringAndSize(str, size);
1772 Py_UNICODE *str;
1773 if (!PyArg_ParseTuple(args, "u", &str))
1775 return PyUnicode_FromWideChar(str, -1);
1781 Py_UNICODE *str;
1783 if (!PyArg_ParseTuple(args, "u#", &str, &size))
1785 return PyUnicode_FromWideChar(str, size);
1791 Py_UNICODE *str;
1792 if (!PyArg_ParseTuple(args, "Z", &str))
1794 if (str != NULL) {
1795 return PyUnicode_FromWideChar(str, -1);
1803 Py_UNICODE *str;
1805 if (!PyArg_ParseTuple(args, "Z#", &str, &size))
1807 if (str != NULL)
1808 return PyUnicode_FromWideChar(str, size);
1818 char *str;
1822 if (!PyArg_Parse(arg, "es", encoding, &str))
1824 result = PyBytes_FromString(str);
1825 PyMem_Free(str);
1834 char *str;
1838 if (!PyArg_Parse(arg, "et", encoding, &str))
1840 result = PyBytes_FromString(str);
1841 PyMem_Free(str);
1851 char *str = NULL;
1857 str = PyByteArray_AS_STRING(buffer);
1860 if (!PyArg_Parse(arg, "es#", encoding, &str, &size))
1862 result = PyBytes_FromStringAndSize(str, size);
1864 PyMem_Free(str);
1874 char *str = NULL;
1880 str = PyByteArray_AS_STRING(buffer);
1883 if (!PyArg_Parse(arg, "et#", encoding, &str, &size))
1885 result = PyBytes_FromStringAndSize(str, size);
1887 PyMem_Free(str);
1912 * "argument must be string without null bytes, not str"
2313 PyObject *str;
2319 if (!PyArg_ParseTuple(args, "UInni:unicode_findchar", &str, &ch,
2324 result = PyUnicode_FindChar(str, (Py_UCS4)ch, start, end, direction);
2395 char *str;
2401 str = buffer.buf;
2402 str[0] = '[';
2403 str[buffer.len-1] = ']';
3181 PyObject *py_s = PyUnicode_FromStringAndSize("str\0", 4);
3185 result = PyUnicode_CompareWithASCIIString(py_s, "str");
8253 const char str[] = "string";
8257 res = Py_BuildValue("(s#O)", str, 1, Py_None);
8264 res = Py_BuildValue("(z#O)", str, 1, Py_None);
8271 res = Py_BuildValue("(y#O)", str, 1, Py_None);