Home
last modified time | relevance | path

Searched refs:double_ (Results 1 – 25 of 146) sorted by relevance

123456

/third_party/boost/libs/spirit/test/qi/
Dreal2.cpp22 using boost::spirit::qi::double_; in main()
28 BOOST_TEST(test("-1234", double_)); in main()
29 BOOST_TEST(test_attr("-1234", double_, d) && compare(d, -1234)); in main()
31 BOOST_TEST(test("-1.2e3", double_)); in main()
32 BOOST_TEST(test_attr("-1.2e3", double_, d) && compare(d, -1.2e3)); in main()
34 BOOST_TEST(test("+1.2e3", double_)); in main()
35 BOOST_TEST(test_attr("+1.2e3", double_, d) && compare(d, 1.2e3)); in main()
37 BOOST_TEST(test("-0.1", double_)); in main()
38 BOOST_TEST(test_attr("-0.1", double_, d) && compare(d, -0.1)); in main()
40 BOOST_TEST(test("-1.2e-3", double_)); in main()
[all …]
Dreal5.cpp25 using boost::spirit::qi::double_; in main()
28 BOOST_TEST(test("+1234", double_(1234))); in main()
29 BOOST_TEST(!test("+1234", double_(-1234))); in main()
30 BOOST_TEST(test_attr("+1234", double_(1234), d)); in main()
32 BOOST_TEST(!test_attr("+1234", double_(-1234), d)); in main()
34 BOOST_TEST(test("-1234", double_(-1234))); in main()
35 BOOST_TEST(!test("-1234", double_(1234))); in main()
36 BOOST_TEST(test_attr("-1234", double_(-1234), d)); in main()
38 BOOST_TEST(!test_attr("-1234", double_(1234), d)); in main()
40 BOOST_TEST(test("+1.2e3", double_(1.2e3))); in main()
[all …]
/third_party/boost/libs/spirit/test/karma/
Dreal1.cpp19 BOOST_TEST(test("0.0", double_, 0.0)); in main()
20 BOOST_TEST(test("1.0", double_, 1.0)); in main()
21 BOOST_TEST(test("1.0", double_, 1.0001)); in main()
22 BOOST_TEST(test("1.001", double_, 1.001)); in main()
23 BOOST_TEST(test("1.01", double_, 1.010)); in main()
24 BOOST_TEST(test("1.1", double_, 1.100)); in main()
26 BOOST_TEST(test("1.234e-04", double_, 0.00012345)); in main()
27 BOOST_TEST(test("0.001", double_, 0.0012345)); in main()
28 BOOST_TEST(test("0.012", double_, 0.012345)); in main()
29 BOOST_TEST(test("0.123", double_, 0.12345)); in main()
[all …]
Dreal2.cpp18 BOOST_TEST(test_delimited("0.0 ", double_, 0.0, char_(' '))); in main()
19 BOOST_TEST(test_delimited("1.0 ", double_, 1.0, char_(' '))); in main()
20 BOOST_TEST(test_delimited("1.0 ", double_, 1.0001, char_(' '))); in main()
21 BOOST_TEST(test_delimited("1.001 ", double_, 1.001, char_(' '))); in main()
22 BOOST_TEST(test_delimited("1.01 ", double_, 1.010, char_(' '))); in main()
23 BOOST_TEST(test_delimited("1.1 ", double_, 1.100, char_(' '))); in main()
25 BOOST_TEST(test_delimited("1.234e-04 ", double_, 0.00012345, char_(' '))); in main()
26 BOOST_TEST(test_delimited("0.001 ", double_, 0.0012345, char_(' '))); in main()
27 BOOST_TEST(test_delimited("0.012 ", double_, 0.012345, char_(' '))); in main()
28 BOOST_TEST(test_delimited("0.123 ", double_, 0.12345, char_(' '))); in main()
[all …]
Dduplicate.cpp18 using boost::spirit::karma::double_; in main()
24 BOOST_TEST(test("2.02.0", duplicate[double_ << double_], 2.0)); in main()
26 duplicate[double_ << double_], 2.0, space)); in main()
28 duplicate[double_ << double_ << double_], 2.0)); in main()
30 duplicate[double_ << double_ << double_], 2.0, space)); in main()
35 BOOST_TEST(test("2.02.0", duplicate["2.0" << double_], 2.0)); in main()
37 duplicate["2.0" << double_], 2.0, space)); in main()
42 BOOST_TEST(test("2.02.0", duplicate["2.0"] << double_, 2.0)); in main()
44 duplicate["2.0"] << double_, 2.0, space)); in main()
50 BOOST_TEST(test("2.0", (duplicate[double_] | "foo"), 2.0)); in main()
[all …]
Dbuffer.cpp25 using boost::spirit::karma::double_; in main()
29 BOOST_TEST(test("", -buffer['[' << +double_ << ']'], v)); in main()
33 BOOST_TEST(test("[1.02.0]", buffer['[' << +double_ << ']'], v)); in main()
34 BOOST_TEST(test("[1.02.0]", buffer[buffer['[' << +double_ << ']']], v)); in main()
38 using boost::spirit::karma::double_; in main()
44 -buffer['[' << +double_ << ']'], v, space)); in main()
49 buffer['[' << +double_ << ']'], v, space)); in main()
Domit.cpp23 using boost::spirit::karma::double_; in main()
45 BOOST_TEST(test("2.0", omit[double_] << double_, p)); in main()
57 r %= omit[double_(1.0) << double_] | "42"; in main()
68 using boost::spirit::karma::double_; in main()
72 BOOST_TEST(test("2.0", skip[double_] << double_, p)); in main()
Dregression_real_policy_sign.cpp35 using karma::double_; in main()
36 BOOST_TEST(test("-0.123", double_, -0.123)); in main()
37 BOOST_TEST(test("-1.123", double_, -1.123)); in main()
38 BOOST_TEST(test("0.0", double_, 0)); in main()
39 BOOST_TEST(test("0.123", double_, 0.123)); in main()
40 BOOST_TEST(test("1.123", double_, 1.123)); in main()
Dutree1.cpp33 using boost::spirit::karma::double_; in main()
52 BOOST_TEST(test("123.45", double_, ut)); in main()
79 BOOST_TEST(test_delimited("1.23 4.56 ", double_ << double_, ut, space)); in main()
84 BOOST_TEST(test("1.23ab", double_ << string, ut)); in main()
88 rule<output_iterator, double()> r1 = double_; in main()
89 rule<output_iterator, utree()> r2 = double_; in main()
95 BOOST_TEST(test("1.23ab", double_ << *char_, ut)); in main()
114 BOOST_TEST(test("ab1.23", repeat(2)[~digit] << double_, ut)); in main()
Dregression_adapt_adt.cpp142 using boost::spirit::karma::double_; in main()
144 BOOST_TEST(test("x=0.0\n", "x=" << double_ << "\n", data3(0))); in main()
145 BOOST_TEST(test("x=1.1\n", "x=" << double_ << "\n", data3(1.1))); in main()
146 BOOST_TEST(test("x=1.0e10\n", "x=" << double_ << "\n", data3(1e10))); in main()
152 BOOST_TEST(test("x=inf\n", "x=" << double_ << "\n", in main()
155 BOOST_TEST(test("x=nan\n", "x=" << double_ << "\n", in main()
159 BOOST_TEST(test("x=nan\n", "x=" << double_ << "\n", in main()
168 using boost::spirit::karma::double_; in main()
178 << -("b: " << double_ << "\n") in main()
Dpattern3.cpp36 start = char_[_1 = 'a'] << int_[_1 = 10] << double_[_1 = 12.4]; in main()
39 start = (char_ << int_ << double_)[(_1 = 'a', _2 = 10, _3 = 12.4)]; in main()
45 c = double_[_1 = 12.4]; in main()
55 start = char_[_1 = 'a'] << int_[_1 = 10] << double_[_1 = 12.4]; in main()
58 start = (char_ << int_ << double_)[(_1 = 'a', _2 = 10, _3 = 12.4)]; in main()
64 c = double_[_1 = 12.4]; in main()
76 start = (char_ | int_ | double_)[_1 = _r0]; in main()
91 start = (char_ | int_ | double_)[_1 = _r0]; in main()
Dalternative2.cpp76 BOOST_TEST(test("10.0", double_ | lit(11), v)); in main()
77 BOOST_TEST(test("11", lit(11) | double_, v)); in main()
82 BOOST_TEST(test("11", double_ | lit(11), v)); in main()
101 BOOST_TEST(test_delimited("10.0 ", double_ | lit(11), v, char_(' '))); in main()
102 BOOST_TEST(test_delimited("11 ", lit(11) | double_, v, char_(' '))); in main()
107 BOOST_TEST(test_delimited("11 ", double_ | lit(11), v, char_(' '))); in main()
117 BOOST_TEST(test_delimited("10.0 ", double_ | lit(11), v, char_(' '))); in main()
118 BOOST_TEST(test_delimited("11 ", lit(11) | double_, v, char_(' '))); in main()
123 BOOST_TEST(test_delimited("11 ", double_ | lit(11), v, char_(' '))); in main()
Dutree3.cpp33 using boost::spirit::karma::double_; in main()
53 BOOST_TEST(test("ab1.2", as_string[*~digit] << double_, ut)); in main()
54 BOOST_TEST(test("a,b1.2", as_string[~digit % ','] << double_, ut)); in main()
76 BOOST_TEST(test("ab1.2", as_string[*~digit] << double_, ut)); in main()
77 BOOST_TEST(test("a,b1.2", as_string[~digit % ','] << double_, ut)); in main()
87 BOOST_TEST(test("ab1.2", as_symbol[*~digit] << double_, ut)); in main()
88 BOOST_TEST(test("a,b1.2", as_symbol[~digit % ','] << double_, ut)); in main()
130 BOOST_TEST(test_delimited("ab 1.2 ", verbatim[repeat(2)[~digit]] << double_, ut, space)); in main()
Dpattern4.cpp37 start = char_[_1 = _r1] << int_[_1 = _r2] << double_[_1 = _r3]; in main()
40 start = (char_ << int_ << double_)[(_1 = _r1, _2 = _r2, _3 = _r3)]; in main()
49 c = double_[_1 = _r1]; in main()
58 start = char_[_1 = _r1] << int_[_1 = _r2] << double_[_1 = _r3]; in main()
61 start = (char_ << int_ << double_)[(_1 = _r1, _2 = _r2, _3 = _r3)]; in main()
70 c = double_[_1 = _r1]; in main()
81 c = double_(12.4); in main()
97 c = double_(12.4); in main()
Dutree2.cpp33 using boost::spirit::karma::double_; in main()
55 BOOST_TEST(test_delimited("1.23 4.56 ", *double_, ut, space)); in main()
64 r1 = double_ | int_ | r1str | r1list | r1ref; in main()
116 BOOST_TEST(test("1.23,4.56", double_ % ',', ut)); in main()
135 rule<output_iterator, utree()> r1 = int_ | double_; in main()
137 BOOST_TEST(test("10", int_ | double_, ut)); in main()
141 BOOST_TEST(test("10.2", int_ | double_, ut)); in main()
/third_party/boost/libs/spirit/test/x3/
Dreal2.cpp59 BOOST_SPIRIT_ASSERT_CONSTEXPR_CTORS(boost::spirit::x3::double_); in main()
67 basic_real_parser_test<double>(boost::spirit::x3::double_); in main()
72 using boost::spirit::x3::double_; in main()
76 BOOST_TEST(test_attr("-5.7222349715140557e+307", double_, d)); in main()
79 BOOST_TEST(test_attr("2.0332938517515416e-308", double_, d)); in main()
82 BOOST_TEST(test_attr("20332938517515416e291", double_, d)); in main()
85 BOOST_TEST(test_attr("2.0332938517515416e307", double_, d)); in main()
92 BOOST_TEST(test("-inf", double_)); in main()
93 BOOST_TEST(test("-infinity", double_)); in main()
94 BOOST_TEST(test_attr("-inf", double_, d) && in main()
[all …]
/third_party/boost/libs/spirit/example/karma/
Dreference.cpp164 BOOST_TYPEOF('{' << karma::double_ << ',' << karma::double_ << '}')
170 '{' << karma::double_ << ',' << karma::double_ << '}'); in call()
226 using boost::spirit::karma::double_; in main()
230 test_generator_attr("1.0,2.0", double_ << ',' << double_, std::make_pair(1.0, 2.0)); in main()
236 using boost::spirit::karma::double_; in main()
242 test_generator_attr("1.0", string | double_, v1); in main()
243 test_generator_attr("2.0", string | double_, 2.0); in main()
248 test_generator_attr("example", string | double_, v2); in main()
249 test_generator_attr("example", string | double_, "example"); in main()
255 using boost::spirit::karma::double_; in main()
[all …]
Dcomplex_number_easier.cpp35 using boost::spirit::qi::double_; in parse_complex()
45 '(' >> double_[ref(rN) = _1] in parse_complex()
46 >> -(',' >> double_[ref(iN) = _1]) >> ')' in parse_complex()
47 | double_[ref(rN) = _1] in parse_complex()
64 using boost::spirit::karma::double_; in generate_complex()
72 !double_(0.0) << '(' << double_ << ", " << double_ << ')' in generate_complex()
73 | omit[double_] << double_ << omit[double_] in generate_complex()
Dcomplex_number_adapt.cpp53 using boost::spirit::qi::double_; in parse_complex()
63 '(' >> double_[ref(rN) = _1] in parse_complex()
64 >> -(',' >> double_[ref(iN) = _1]) >> ')' in parse_complex()
65 | double_[ref(rN) = _1] in parse_complex()
82 using boost::spirit::karma::double_; in generate_complex()
92 &true_ << '(' << double_ << ", " << double_ << ')' in generate_complex()
93 | omit[bool_] << double_ << omit[double_] in generate_complex()
Dcomplex_number.cpp35 using boost::spirit::qi::double_; in parse_complex()
45 '(' >> double_[ref(rN) = _1] in parse_complex()
46 >> -(',' >> double_[ref(iN) = _1]) >> ')' in parse_complex()
47 | double_[ref(rN) = _1] in parse_complex()
65 using boost::spirit::karma::double_; in generate_complex()
73 '(' << double_[_1 = c.real()] << ", " << double_[_1 = c.imag()] << ')' in generate_complex()
74 | double_[_1 = c.real()] in generate_complex()
Dnum_list1.cpp37 using qi::double_; in parse_numbers()
41 bool r = phrase_parse(first, last, double_ >> *(',' >> double_), space, v); in parse_numbers()
54 using karma::double_; in generate_numbers()
60 double_ << *(',' << double_), // the generator in generate_numbers()
/third_party/boost/libs/spirit/repository/test/karma/
Dsubrule.cpp45 sr = char_[_1 = 'a'] << int_[_1 = 10] << double_[_1 = 12.4] in main()
50 sr = (char_ << int_ << double_)[(_1 = 'a', _2 = 10, _3 = 12.4)] in main()
61 , c = double_[_1 = 12.4] in main()
72 sr = char_[_1 = 'a'] << int_[_1 = 10] << double_[_1 = 12.4] in main()
77 sr = (char_ << int_ << double_)[(_1 = 'a', _2 = 10, _3 = 12.4)] in main()
88 , c = double_[_1 = 12.4] in main()
101 sr = (char_ | int_ | double_)[_1 = _r0] in main()
119 sr = (char_ | int_ | double_)[_1 = _r0] in main()
135 sr = char_[_1 = _r1] << int_[_1 = _r2] << double_[_1 = _r3] in main()
140 sr = (char_ << int_ << double_)[(_1 = _r1, _2 = _r2, _3 = _r3)] in main()
[all …]
/third_party/boost/libs/spirit/doc/x3/tutorial/
Dcomplex.qbk15 '(' >> double_ >> -(',' >> double_) >> ')'
16 | double_
42 using boost::spirit::x3::double_;
56 '(' >> double_[fr]
57 >> -(',' >> double_[fi]) >> ')'
58 | double_[fr]
74 The `double_` parser attaches this action:
78 This assigns the parsed result (actually, the attribute of `double_`) to n.
/third_party/boost/boost/spirit/home/qi/numeric/
Dreal.hpp39 : spirit::terminal<tag::stateful_tag<Policies, tag::double_, T> >
41 typedef tag::stateful_tag<Policies, tag::double_, T> tag_type;
57 struct use_terminal<qi::domain, tag::double_>
91 , terminal_ex<tag::double_, fusion::vector1<A0> >
104 struct use_lazy_terminal<qi::domain, tag::double_, 1>
115 , tag::stateful_tag<Policies, tag::double_, T> >
121 , terminal_ex<tag::stateful_tag<Policies, tag::double_, T>
129 , tag::stateful_tag<Policies, tag::double_, T>
138 using spirit::double_;
299 tag::stateful_tag<Policies, tag::double_, T>, Modifiers>
[all …]
/third_party/boost/boost/spirit/home/karma/numeric/
Dreal.hpp52 : spirit::terminal<tag::stateful_tag<Policies, tag::double_, T> >
54 typedef tag::stateful_tag<Policies, tag::double_, T> tag_type;
70 struct use_terminal<karma::domain, tag::double_> // enables double_
98 , terminal_ex<tag::double_, fusion::vector1<A0> >
112 struct use_lazy_terminal<karma::domain, tag::double_, 1>
123 , tag::stateful_tag<Policies, tag::double_, T> >
128 , terminal_ex<tag::stateful_tag<Policies, tag::double_, T>
136 , tag::stateful_tag<Policies, tag::double_, T>
153 using spirit::double_;
306 typedef tag::stateful_tag<Policies, tag::double_, T> tag_type; in operator ()()
[all …]

123456