Lines Matching refs:newobj
1988 PyObject *newobj; in string_lower() local
1990 newobj = PyString_FromStringAndSize(NULL, n); in string_lower()
1991 if (!newobj) in string_lower()
1994 s = PyString_AS_STRING(newobj); in string_lower()
2004 return newobj; in string_lower()
2021 PyObject *newobj; in string_upper() local
2023 newobj = PyString_FromStringAndSize(NULL, n); in string_upper()
2024 if (!newobj) in string_upper()
2027 s = PyString_AS_STRING(newobj); in string_upper()
2037 return newobj; in string_upper()
2052 PyObject *newobj; in string_title() local
2054 newobj = PyString_FromStringAndSize(NULL, n); in string_title()
2055 if (newobj == NULL) in string_title()
2057 s_new = PyString_AsString(newobj); in string_title()
2072 return newobj; in string_title()
2086 PyObject *newobj; in string_capitalize() local
2088 newobj = PyString_FromStringAndSize(NULL, n); in string_capitalize()
2089 if (newobj == NULL) in string_capitalize()
2091 s_new = PyString_AsString(newobj); in string_capitalize()
2108 return newobj; in string_capitalize()
2165 PyObject *newobj; in string_swapcase() local
2167 newobj = PyString_FromStringAndSize(NULL, n); in string_swapcase()
2168 if (newobj == NULL) in string_swapcase()
2170 s_new = PyString_AsString(newobj); in string_swapcase()
2183 return newobj; in string_swapcase()