• Home
  • Raw
  • Download

Lines Matching refs:sym

35     SymbolsT const& sym,  in docheck()  argument
41 parse_info<CharT const*> info = parse(candidate, sym); in docheck()
100 nsymbols sym; in narrow_match_tests() local
101 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_match_tests()
103 docheck(sym, "pineapple", true, "", 9); in narrow_match_tests()
104 docheck(sym, "orange", true, "", 6); in narrow_match_tests()
105 docheck(sym, "banana", true, "", 6); in narrow_match_tests()
106 docheck(sym, "apple", true, "", 5); in narrow_match_tests()
107 docheck(sym, "pizza", false, "pizza", -1); in narrow_match_tests()
108 docheck(sym, "steak", false, "steak", -1); in narrow_match_tests()
109 docheck(sym, "applepie", true, "", 8); in narrow_match_tests()
110 docheck(sym, "bananarama", true, "rama", 6); in narrow_match_tests()
111 docheck(sym, "applet", true, "t", 5); in narrow_match_tests()
112 docheck(sym, "applepi", true, "pi", 5); in narrow_match_tests()
113 docheck(sym, "appl", false, "appl", -1); in narrow_match_tests()
115 docheck(sym, "pineapplez", true, "z", 9); in narrow_match_tests()
116 docheck(sym, "orangez", true, "z", 6); in narrow_match_tests()
117 docheck(sym, "bananaz", true, "z", 6); in narrow_match_tests()
118 docheck(sym, "applez", true, "z", 5); in narrow_match_tests()
119 docheck(sym, "pizzaz", false, "pizzaz", -1); in narrow_match_tests()
120 docheck(sym, "steakz", false, "steakz", -1); in narrow_match_tests()
121 docheck(sym, "applepiez", true, "z", 8); in narrow_match_tests()
122 docheck(sym, "bananaramaz", true, "ramaz", 6); in narrow_match_tests()
123 docheck(sym, "appletz", true, "tz", 5); in narrow_match_tests()
124 docheck(sym, "applepix", true, "pix", 5); in narrow_match_tests()
129 nsymbols sym; in narrow_copy_ctor_tests() local
130 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_copy_ctor_tests()
132 nsymbols sym2(sym); in narrow_copy_ctor_tests()
140 nsymbols sym; in narrow_assigment_operator_tests() local
141 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_assigment_operator_tests()
144 sym2 = sym; in narrow_assigment_operator_tests()
153 nsymbols sym, sym2; in narrow_swap_tests() local
154 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_swap_tests()
157 boost::swap(sym, sym2); in narrow_swap_tests()
162 docheck(sym, "potatoe", true, "e", 6); in narrow_swap_tests()
163 docheck(sym, "cauliflour", false, "cauliflour", -1); in narrow_swap_tests()
168 nsymbols sym; in narrow_value_tests() local
170 sym = "orange", "banana"; in narrow_value_tests()
171 sym.add("pineapple", 1234); in narrow_value_tests()
172 sym.add("lemon"); in narrow_value_tests()
174 parse("orange", sym[store(12345)]); in narrow_value_tests()
175 parse("orange", sym[docheck(12345)]); in narrow_value_tests()
176 parse("pineapple", sym[docheck(1234)]); in narrow_value_tests()
177 parse("banana", sym[docheck(int())]); in narrow_value_tests()
178 parse("lemon", sym[docheck(int())]); in narrow_value_tests()
183 nsymbols sym; in narrow_free_functions_tests() local
190 int* res = add(sym, "pineapple"); in narrow_free_functions_tests()
192 res = add(sym, "pineapple"); in narrow_free_functions_tests()
195 res = find(sym, "pineapple"); in narrow_free_functions_tests()
197 res = find(sym, "banana"); in narrow_free_functions_tests()
203 wsymbols sym; in wide_match_tests() local
204 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_match_tests()
206 docheck(sym, L"pineapple", true, L"", 9); in wide_match_tests()
207 docheck(sym, L"orange", true, L"", 6); in wide_match_tests()
208 docheck(sym, L"banana", true, L"", 6); in wide_match_tests()
209 docheck(sym, L"apple", true, L"", 5); in wide_match_tests()
210 docheck(sym, L"pizza", false, L"pizza", -1); in wide_match_tests()
211 docheck(sym, L"steak", false, L"steak", -1); in wide_match_tests()
212 docheck(sym, L"applepie", true, L"", 8); in wide_match_tests()
213 docheck(sym, L"bananarama", true, L"rama", 6); in wide_match_tests()
214 docheck(sym, L"applet", true, L"t", 5); in wide_match_tests()
215 docheck(sym, L"applepi", true, L"pi", 5); in wide_match_tests()
216 docheck(sym, L"appl", false, L"appl", -1); in wide_match_tests()
218 docheck(sym, L"pineapplez", true, L"z", 9); in wide_match_tests()
219 docheck(sym, L"orangez", true, L"z", 6); in wide_match_tests()
220 docheck(sym, L"bananaz", true, L"z", 6); in wide_match_tests()
221 docheck(sym, L"applez", true, L"z", 5); in wide_match_tests()
222 docheck(sym, L"pizzaz", false, L"pizzaz", -1); in wide_match_tests()
223 docheck(sym, L"steakz", false, L"steakz", -1); in wide_match_tests()
224 docheck(sym, L"applepiez", true, L"z", 8); in wide_match_tests()
225 docheck(sym, L"bananaramaz", true, L"ramaz", 6); in wide_match_tests()
226 docheck(sym, L"appletz", true, L"tz", 5); in wide_match_tests()
227 docheck(sym, L"applepix", true, L"pix", 5); in wide_match_tests()
232 wsymbols sym; in wide_copy_ctor_tests() local
233 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_copy_ctor_tests()
235 wsymbols sym2(sym); in wide_copy_ctor_tests()
243 wsymbols sym; in wide_assigment_operator_tests() local
244 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_assigment_operator_tests()
247 sym2 = sym; in wide_assigment_operator_tests()
256 wsymbols sym, sym2; in wide_swap_tests() local
257 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_swap_tests()
260 boost::swap(sym, sym2); in wide_swap_tests()
265 docheck(sym, L"potatoe", true, L"e", 6); in wide_swap_tests()
266 docheck(sym, L"cauliflour", false, L"cauliflour", -1); in wide_swap_tests()
271 wsymbols sym; in wide_value_tests() local
273 sym = L"orange", L"banana"; in wide_value_tests()
274 sym.add(L"pineapple", 1234); in wide_value_tests()
275 sym.add(L"lemon"); in wide_value_tests()
277 parse(L"orange", sym[store(12345)]); in wide_value_tests()
278 parse(L"orange", sym[docheck(12345)]); in wide_value_tests()
279 parse(L"pineapple", sym[docheck(1234)]); in wide_value_tests()
280 parse(L"banana", sym[docheck(int())]); in wide_value_tests()
281 parse(L"lemon", sym[docheck(int())]); in wide_value_tests()
286 wsymbols sym; in wide_free_functions_tests() local
288 int* res = add(sym, L"pineapple"); in wide_free_functions_tests()
290 res = add(sym, L"pineapple"); in wide_free_functions_tests()
293 res = find(sym, L"pineapple"); in wide_free_functions_tests()
295 res = find(sym, L"banana"); in wide_free_functions_tests()
301 nsymbols sym; in free_add_find_functions_tests() local
302 BOOST_TEST(*add(sym, "a", 0) == 0); in free_add_find_functions_tests()
303 BOOST_TEST(*add(sym, "a2", 1) == 1); in free_add_find_functions_tests()
304 BOOST_TEST(add(sym, "a2", 2) == 0); in free_add_find_functions_tests()
305 BOOST_TEST(find(sym, "a2")); in free_add_find_functions_tests()
306 BOOST_TEST(find(sym, "a")); in free_add_find_functions_tests()
331 nsymbols sym; in duplicate_add_tests() local
332 sym.add(foo1, foo2, 1); in duplicate_add_tests()
333 nsymbols sym2 = sym; in duplicate_add_tests()
334 sym.add(foo1, foo2, 2); in duplicate_add_tests()
337 BOOST_TEST(find(sym, "foo") && *find(sym, "foo") == 2); in duplicate_add_tests()
342 info = parse("foo ", sym[check_parse_value(2)]); in duplicate_add_tests()
345 info = parse("foo", sym[check_parse_value(2)]); in duplicate_add_tests()