Lines Matching full:cp

29 	char *orig, *str, *cp;  in test_strdelim()  local
36 cp = strdelim(&str); in test_strdelim()
37 ASSERT_STRING_EQ(cp, ""); /* XXX arguable */ in test_strdelim()
38 cp = strdelim(&str); in test_strdelim()
39 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
45 cp = strdelim(&str); in test_strdelim()
46 ASSERT_STRING_EQ(cp, ""); /* XXX better as NULL */ in test_strdelim()
53 cp = strdelim(&str); in test_strdelim()
54 ASSERT_STRING_EQ(cp, "blob"); in test_strdelim()
55 cp = strdelim(&str); in test_strdelim()
56 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
63 cp = strdelim(&str); in test_strdelim()
64 ASSERT_STRING_EQ(cp, "blob"); in test_strdelim()
66 cp = strdelim(&str); in test_strdelim()
67 ASSERT_STRING_EQ(cp, ""); /* XXX better as NULL */ in test_strdelim()
74 cp = strdelim(&str); in test_strdelim()
75 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
77 cp = strdelim(&str); in test_strdelim()
78 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
80 cp = strdelim(&str); in test_strdelim()
81 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
87 cp = strdelim(&str); in test_strdelim()
88 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
90 cp = strdelim(&str); in test_strdelim()
91 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
92 cp = strdelim(&str); in test_strdelim()
93 ASSERT_STRING_EQ(cp, ""); /* XXX better as NULL */ in test_strdelim()
100 cp = strdelim(&str); in test_strdelim()
101 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
103 cp = strdelim(&str); in test_strdelim()
104 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
106 cp = strdelim(&str); in test_strdelim()
107 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
113 cp = strdelim(&str); in test_strdelim()
114 ASSERT_STRING_EQ(cp, "blob1"); /* XXX better returning NULL early */ in test_strdelim()
116 cp = strdelim(&str); in test_strdelim()
117 ASSERT_STRING_EQ(cp, ""); in test_strdelim()
119 cp = strdelim(&str); in test_strdelim()
120 ASSERT_STRING_EQ(cp, "blob2"); /* XXX should (but can't) reject */ in test_strdelim()
127 cp = strdelimw(&str); in test_strdelim()
128 ASSERT_STRING_EQ(cp, "blob1=blob2"); in test_strdelim()
130 cp = strdelimw(&str); in test_strdelim()
131 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
137 cp = strdelim(&str); in test_strdelim()
138 ASSERT_STRING_EQ(cp, "blob"); in test_strdelim()
139 cp = strdelim(&str); in test_strdelim()
140 ASSERT_STRING_EQ(cp, ""); /* XXX better as NULL */ in test_strdelim()
147 cp = strdelim(&str); in test_strdelim()
148 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
150 cp = strdelim(&str); in test_strdelim()
151 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
153 cp = strdelim(&str); in test_strdelim()
154 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
160 cp = strdelim(&str); in test_strdelim()
161 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
163 cp = strdelim(&str); in test_strdelim()
164 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
166 cp = strdelim(&str); in test_strdelim()
167 ASSERT_STRING_EQ(cp, ""); /* XXX better as NULL */ in test_strdelim()
174 cp = strdelim(&str); in test_strdelim()
175 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
176 cp = strdelim(&str); in test_strdelim()
177 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
178 cp = strdelim(&str); in test_strdelim()
179 ASSERT_STRING_EQ(cp, "blob3"); in test_strdelim()
180 cp = strdelim(&str); in test_strdelim()
181 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
187 cp = strdelim(&str); in test_strdelim()
188 ASSERT_PTR_EQ(cp, NULL); in test_strdelim()
194 cp = strdelim(&str); in test_strdelim()
195 ASSERT_STRING_EQ(cp, "blob\\"); /* XXX wrong */ in test_strdelim()
196 cp = strdelim(&str); in test_strdelim()
197 ASSERT_STRING_EQ(cp, ""); in test_strdelim()