Lines Matching refs:sym
39 SymbolsT const &sym, in docheck() argument
46 parse_info<CharT const*> info = parse(candidate, sym); in docheck()
114 symbols<> sym; in narrow_match_tests() local
115 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_match_tests()
117 docheck(sym, "pineapple", true, "", 9); in narrow_match_tests()
118 docheck(sym, "orange", true, "", 6); in narrow_match_tests()
119 docheck(sym, "banana", true, "", 6); in narrow_match_tests()
120 docheck(sym, "apple", true, "", 5); in narrow_match_tests()
121 docheck(sym, "pizza", false, "pizza", -1); in narrow_match_tests()
122 docheck(sym, "steak", false, "steak", -1); in narrow_match_tests()
123 docheck(sym, "applepie", true, "", 8); in narrow_match_tests()
124 docheck(sym, "bananarama", true, "rama", 6); in narrow_match_tests()
125 docheck(sym, "applet", true, "t", 5); in narrow_match_tests()
126 docheck(sym, "applepi", true, "pi", 5); in narrow_match_tests()
127 docheck(sym, "appl", false, "appl", -1); in narrow_match_tests()
129 docheck(sym, "pineapplez", true, "z", 9); in narrow_match_tests()
130 docheck(sym, "orangez", true, "z", 6); in narrow_match_tests()
131 docheck(sym, "bananaz", true, "z", 6); in narrow_match_tests()
132 docheck(sym, "applez", true, "z", 5); in narrow_match_tests()
133 docheck(sym, "pizzaz", false, "pizzaz", -1); in narrow_match_tests()
134 docheck(sym, "steakz", false, "steakz", -1); in narrow_match_tests()
135 docheck(sym, "applepiez", true, "z", 8); in narrow_match_tests()
136 docheck(sym, "bananaramaz", true, "ramaz", 6); in narrow_match_tests()
137 docheck(sym, "appletz", true, "tz", 5); in narrow_match_tests()
138 docheck(sym, "applepix", true, "pix", 5); in narrow_match_tests()
144 symbols<> sym; in narrow_copy_ctor_tests() local
145 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_copy_ctor_tests()
147 symbols<> sym2(sym); in narrow_copy_ctor_tests()
156 symbols<> sym; in narrow_assigment_operator_tests() local
157 sym = "pineapple", "orange", "banana", "applepie", "apple"; in narrow_assigment_operator_tests()
160 sym2 = sym; in narrow_assigment_operator_tests()
170 symbols<> sym; in narrow_value_tests() local
172 sym = "orange", "banana"; in narrow_value_tests()
173 sym.add("pineapple",1234); in narrow_value_tests()
174 sym.add("lemon"); in narrow_value_tests()
176 parse("orange", sym[store(12345)]); in narrow_value_tests()
177 parse("orange", sym[docheck(12345)]); in narrow_value_tests()
178 parse("pineapple", sym[docheck(1234)]); in narrow_value_tests()
179 parse("banana", sym[docheck(int())]); in narrow_value_tests()
180 parse("lemon", sym[docheck(int())]); in narrow_value_tests()
186 symbols<> sym; in narrow_free_functions_tests() local
193 int *res = add(sym,"pineapple"); in narrow_free_functions_tests()
195 res = add(sym,"pineapple"); in narrow_free_functions_tests()
198 res = find(sym, "pineapple"); in narrow_free_functions_tests()
200 res = find(sym, "banana"); in narrow_free_functions_tests()
207 symbols<int, wchar_t> sym; in wide_match_tests() local
208 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_match_tests()
210 docheck(sym, L"pineapple", true, L"", 9); in wide_match_tests()
211 docheck(sym, L"orange", true, L"", 6); in wide_match_tests()
212 docheck(sym, L"banana", true, L"", 6); in wide_match_tests()
213 docheck(sym, L"apple", true, L"", 5); in wide_match_tests()
214 docheck(sym, L"pizza", false, L"pizza", -1); in wide_match_tests()
215 docheck(sym, L"steak", false, L"steak", -1); in wide_match_tests()
216 docheck(sym, L"applepie", true, L"", 8); in wide_match_tests()
217 docheck(sym, L"bananarama", true, L"rama", 6); in wide_match_tests()
218 docheck(sym, L"applet", true, L"t", 5); in wide_match_tests()
219 docheck(sym, L"applepi", true, L"pi", 5); in wide_match_tests()
220 docheck(sym, L"appl", false, L"appl", -1); in wide_match_tests()
222 docheck(sym, L"pineapplez", true, L"z", 9); in wide_match_tests()
223 docheck(sym, L"orangez", true, L"z", 6); in wide_match_tests()
224 docheck(sym, L"bananaz", true, L"z", 6); in wide_match_tests()
225 docheck(sym, L"applez", true, L"z", 5); in wide_match_tests()
226 docheck(sym, L"pizzaz", false, L"pizzaz", -1); in wide_match_tests()
227 docheck(sym, L"steakz", false, L"steakz", -1); in wide_match_tests()
228 docheck(sym, L"applepiez", true, L"z", 8); in wide_match_tests()
229 docheck(sym, L"bananaramaz", true, L"ramaz", 6); in wide_match_tests()
230 docheck(sym, L"appletz", true, L"tz", 5); in wide_match_tests()
231 docheck(sym, L"applepix", true, L"pix", 5); in wide_match_tests()
237 symbols<int, wchar_t> sym; in wide_copy_ctor_tests() local
238 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_copy_ctor_tests()
240 symbols<int, wchar_t> sym2(sym); in wide_copy_ctor_tests()
249 symbols<int, wchar_t> sym; in wide_assigment_operator_tests() local
250 sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; in wide_assigment_operator_tests()
253 sym2 = sym; in wide_assigment_operator_tests()
263 symbols<int, wchar_t> sym; in wide_value_tests() local
265 sym = L"orange", L"banana"; in wide_value_tests()
266 sym.add(L"pineapple",1234); in wide_value_tests()
267 sym.add(L"lemon"); in wide_value_tests()
269 parse(L"orange", sym[store(12345)]); in wide_value_tests()
270 parse(L"orange", sym[docheck(12345)]); in wide_value_tests()
271 parse(L"pineapple", sym[docheck(1234)]); in wide_value_tests()
272 parse(L"banana", sym[docheck(int())]); in wide_value_tests()
273 parse(L"lemon", sym[docheck(int())]); in wide_value_tests()
279 symbols<int, wchar_t> sym; in wide_free_functions_tests() local
281 int *res = add(sym,L"pineapple"); in wide_free_functions_tests()
283 res = add(sym,L"pineapple"); in wide_free_functions_tests()
286 res = find(sym, L"pineapple"); in wide_free_functions_tests()
288 res = find(sym, L"banana"); in wide_free_functions_tests()
295 symbols<> sym; in free_add_find_functions_tests() local
296 BOOST_TEST(*add(sym, "a", 0) == 0); in free_add_find_functions_tests()
297 BOOST_TEST(*add(sym, "a2", 1) == 1); in free_add_find_functions_tests()
298 BOOST_TEST(find(sym, "a2")); in free_add_find_functions_tests()
299 BOOST_TEST(find(sym, "a")); in free_add_find_functions_tests()