Lines Matching refs:os1
285 PyObject *os1, *os2, *result = NULL; in PyLocale_strcoll()
289 if (!PyArg_UnpackTuple(args, "strcoll", 2, 2, &os1, &os2)) in PyLocale_strcoll()
292 if (PyString_Check(os1) && PyString_Check(os2)) in PyLocale_strcoll()
293 return PyInt_FromLong(strcoll(PyString_AS_STRING(os1), in PyLocale_strcoll()
296 if (!PyUnicode_Check(os1) && !PyUnicode_Check(os2)) { in PyLocale_strcoll()
300 if (!PyUnicode_Check(os1)) { in PyLocale_strcoll()
301 os1 = PyUnicode_FromObject(os1); in PyLocale_strcoll()
302 if (!os1) in PyLocale_strcoll()
310 Py_DECREF(os1); in PyLocale_strcoll()
317 len1 = PyUnicode_GET_SIZE(os1) + 1; in PyLocale_strcoll()
323 if (PyUnicode_AsWideChar((PyUnicodeObject*)os1, ws1, len1) == -1) in PyLocale_strcoll()
342 Py_DECREF(os1); in PyLocale_strcoll()