Lines Matching refs:newobj
1994 PyObject *newobj; in string_lower() local
1996 newobj = PyString_FromStringAndSize(NULL, n); in string_lower()
1997 if (!newobj) in string_lower()
2000 s = PyString_AS_STRING(newobj); in string_lower()
2010 return newobj; in string_lower()
2027 PyObject *newobj; in string_upper() local
2029 newobj = PyString_FromStringAndSize(NULL, n); in string_upper()
2030 if (!newobj) in string_upper()
2033 s = PyString_AS_STRING(newobj); in string_upper()
2043 return newobj; in string_upper()
2058 PyObject *newobj; in string_title() local
2060 newobj = PyString_FromStringAndSize(NULL, n); in string_title()
2061 if (newobj == NULL) in string_title()
2063 s_new = PyString_AsString(newobj); in string_title()
2078 return newobj; in string_title()
2092 PyObject *newobj; in string_capitalize() local
2094 newobj = PyString_FromStringAndSize(NULL, n); in string_capitalize()
2095 if (newobj == NULL) in string_capitalize()
2097 s_new = PyString_AsString(newobj); in string_capitalize()
2114 return newobj; in string_capitalize()
2171 PyObject *newobj; in string_swapcase() local
2173 newobj = PyString_FromStringAndSize(NULL, n); in string_swapcase()
2174 if (newobj == NULL) in string_swapcase()
2176 s_new = PyString_AsString(newobj); in string_swapcase()
2189 return newobj; in string_swapcase()