• Home
  • Raw
  • Download

Lines Matching +full:out +full:- +full:null

18     PyObject* out;  in STRINGLIB()  local
23 return NULL; in STRINGLIB()
26 out = PyTuple_New(3); in STRINGLIB()
27 if (!out) in STRINGLIB()
28 return NULL; in STRINGLIB()
30 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH); in STRINGLIB()
34 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in STRINGLIB()
35 PyTuple_SET_ITEM(out, 1, STRINGLIB_NEW(NULL, 0)); in STRINGLIB()
36 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(NULL, 0)); in STRINGLIB()
39 Py_DECREF(out); in STRINGLIB()
40 return NULL; in STRINGLIB()
44 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in STRINGLIB()
46 assert(empty != NULL); in STRINGLIB()
48 PyTuple_SET_ITEM(out, 1, empty); in STRINGLIB()
50 PyTuple_SET_ITEM(out, 2, empty); in STRINGLIB()
52 return out; in STRINGLIB()
55 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in STRINGLIB()
57 PyTuple_SET_ITEM(out, 1, sep_obj); in STRINGLIB()
59 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in STRINGLIB()
62 Py_DECREF(out); in STRINGLIB()
63 return NULL; in STRINGLIB()
66 return out; in STRINGLIB()
75 PyObject* out; in STRINGLIB() local
80 return NULL; in STRINGLIB()
83 out = PyTuple_New(3); in STRINGLIB()
84 if (!out) in STRINGLIB()
85 return NULL; in STRINGLIB()
87 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in STRINGLIB()
91 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(NULL, 0)); in STRINGLIB()
92 PyTuple_SET_ITEM(out, 1, STRINGLIB_NEW(NULL, 0)); in STRINGLIB()
93 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in STRINGLIB()
96 Py_DECREF(out); in STRINGLIB()
97 return NULL; in STRINGLIB()
101 assert(empty != NULL); in STRINGLIB()
103 PyTuple_SET_ITEM(out, 0, empty); in STRINGLIB()
105 PyTuple_SET_ITEM(out, 1, empty); in STRINGLIB()
107 PyTuple_SET_ITEM(out, 2, (PyObject*) str_obj); in STRINGLIB()
109 return out; in STRINGLIB()
112 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in STRINGLIB()
114 PyTuple_SET_ITEM(out, 1, sep_obj); in STRINGLIB()
116 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in STRINGLIB()
119 Py_DECREF(out); in STRINGLIB()
120 return NULL; in STRINGLIB()
123 return out; in STRINGLIB()