• Home
  • Raw
  • Download

Lines Matching refs:StringToDouble

15   CHECK_EQ(0.0, StringToDouble(&uc, "0x0", ALLOW_HEX | ALLOW_OCTALS));  in TEST()
16 CHECK_EQ(0.0, StringToDouble(&uc, "0X0", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
17 CHECK_EQ(1.0, StringToDouble(&uc, "0x1", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
18 CHECK_EQ(16.0, StringToDouble(&uc, "0x10", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
19 CHECK_EQ(255.0, StringToDouble(&uc, "0xff", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
20 CHECK_EQ(175.0, StringToDouble(&uc, "0xAF", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
22 CHECK_EQ(0.0, StringToDouble(&uc, "0x0", ALLOW_HEX)); in TEST()
23 CHECK_EQ(0.0, StringToDouble(&uc, "0X0", ALLOW_HEX)); in TEST()
24 CHECK_EQ(1.0, StringToDouble(&uc, "0x1", ALLOW_HEX)); in TEST()
25 CHECK_EQ(16.0, StringToDouble(&uc, "0x10", ALLOW_HEX)); in TEST()
26 CHECK_EQ(255.0, StringToDouble(&uc, "0xff", ALLOW_HEX)); in TEST()
27 CHECK_EQ(175.0, StringToDouble(&uc, "0xAF", ALLOW_HEX)); in TEST()
33 CHECK_EQ(0.0, StringToDouble(&uc, "0", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
34 CHECK_EQ(0.0, StringToDouble(&uc, "00", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
35 CHECK_EQ(1.0, StringToDouble(&uc, "01", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
36 CHECK_EQ(7.0, StringToDouble(&uc, "07", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
37 CHECK_EQ(8.0, StringToDouble(&uc, "010", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
38 CHECK_EQ(63.0, StringToDouble(&uc, "077", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
40 CHECK_EQ(0.0, StringToDouble(&uc, "0", ALLOW_HEX)); in TEST()
41 CHECK_EQ(0.0, StringToDouble(&uc, "00", ALLOW_HEX)); in TEST()
42 CHECK_EQ(1.0, StringToDouble(&uc, "01", ALLOW_HEX)); in TEST()
43 CHECK_EQ(7.0, StringToDouble(&uc, "07", ALLOW_HEX)); in TEST()
44 CHECK_EQ(10.0, StringToDouble(&uc, "010", ALLOW_HEX)); in TEST()
45 CHECK_EQ(77.0, StringToDouble(&uc, "077", ALLOW_HEX)); in TEST()
48 CHECK_EQ(x * x * x * x * x, StringToDouble(&uc, "01" "0000000000" "0000000000" in TEST()
55 CHECK_EQ(8.0, StringToDouble(&uc, "08", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
56 CHECK_EQ(81.0, StringToDouble(&uc, "081", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
57 CHECK_EQ(78.0, StringToDouble(&uc, "078", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
59 CHECK(isnan(StringToDouble(&uc, "07.7", ALLOW_HEX | ALLOW_OCTALS))); in TEST()
60 CHECK(isnan(StringToDouble(&uc, "07.8", ALLOW_HEX | ALLOW_OCTALS))); in TEST()
61 CHECK(isnan(StringToDouble(&uc, "07e8", ALLOW_HEX | ALLOW_OCTALS))); in TEST()
62 CHECK(isnan(StringToDouble(&uc, "07e7", ALLOW_HEX | ALLOW_OCTALS))); in TEST()
64 CHECK_EQ(8.7, StringToDouble(&uc, "08.7", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
65 CHECK_EQ(8e7, StringToDouble(&uc, "08e7", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
67 CHECK_EQ(0.001, StringToDouble(&uc, "0.001", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
68 CHECK_EQ(0.713, StringToDouble(&uc, "0.713", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
70 CHECK_EQ(8.0, StringToDouble(&uc, "08", ALLOW_HEX)); in TEST()
71 CHECK_EQ(81.0, StringToDouble(&uc, "081", ALLOW_HEX)); in TEST()
72 CHECK_EQ(78.0, StringToDouble(&uc, "078", ALLOW_HEX)); in TEST()
74 CHECK_EQ(7.7, StringToDouble(&uc, "07.7", ALLOW_HEX)); in TEST()
75 CHECK_EQ(7.8, StringToDouble(&uc, "07.8", ALLOW_HEX)); in TEST()
76 CHECK_EQ(7e8, StringToDouble(&uc, "07e8", ALLOW_HEX)); in TEST()
77 CHECK_EQ(7e7, StringToDouble(&uc, "07e7", ALLOW_HEX)); in TEST()
79 CHECK_EQ(8.7, StringToDouble(&uc, "08.7", ALLOW_HEX)); in TEST()
80 CHECK_EQ(8e7, StringToDouble(&uc, "08e7", ALLOW_HEX)); in TEST()
82 CHECK_EQ(0.001, StringToDouble(&uc, "0.001", ALLOW_HEX)); in TEST()
83 CHECK_EQ(0.713, StringToDouble(&uc, "0.713", ALLOW_HEX)); in TEST()
89 CHECK_EQ(8.0, StringToDouble(&uc, "8q", ALLOW_TRAILING_JUNK)); in TEST()
91 StringToDouble(&uc, "077qqq", ALLOW_OCTALS | ALLOW_TRAILING_JUNK)); in TEST()
93 StringToDouble(&uc, "10e", ALLOW_OCTALS | ALLOW_TRAILING_JUNK)); in TEST()
95 StringToDouble(&uc, "10e-", ALLOW_OCTALS | ALLOW_TRAILING_JUNK)); in TEST()
101 CHECK(isnan(StringToDouble(&uc, " ", NO_FLAGS, OS::nan_value()))); in TEST()
102 CHECK(isnan(StringToDouble(&uc, "", NO_FLAGS, OS::nan_value()))); in TEST()
103 CHECK(isnan(StringToDouble(&uc, " ", NO_FLAGS, OS::nan_value()))); in TEST()
104 CHECK_EQ(0.0, StringToDouble(&uc, "", NO_FLAGS)); in TEST()
105 CHECK_EQ(0.0, StringToDouble(&uc, " ", NO_FLAGS)); in TEST()
110 CHECK_EQ(0.0, StringToDouble(&uc, "0.0", NO_FLAGS)); in TEST()
111 CHECK_EQ(0.0, StringToDouble(&uc, "0", NO_FLAGS)); in TEST()
112 CHECK_EQ(0.0, StringToDouble(&uc, "00", NO_FLAGS)); in TEST()
113 CHECK_EQ(0.0, StringToDouble(&uc, "000", NO_FLAGS)); in TEST()
114 CHECK_EQ(1.0, StringToDouble(&uc, "1", NO_FLAGS)); in TEST()
115 CHECK_EQ(-1.0, StringToDouble(&uc, "-1", NO_FLAGS)); in TEST()
116 CHECK_EQ(-1.0, StringToDouble(&uc, " -1 ", NO_FLAGS)); in TEST()
117 CHECK_EQ(1.0, StringToDouble(&uc, " +1 ", NO_FLAGS)); in TEST()
118 CHECK(isnan(StringToDouble(&uc, " - 1 ", NO_FLAGS))); in TEST()
119 CHECK(isnan(StringToDouble(&uc, " + 1 ", NO_FLAGS))); in TEST()
121 CHECK_EQ(0.0, StringToDouble(&uc, "0e0", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
122 CHECK_EQ(0.0, StringToDouble(&uc, "0e1", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
123 CHECK_EQ(0.0, StringToDouble(&uc, "0e-1", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
124 CHECK_EQ(0.0, StringToDouble(&uc, "0e-100000", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
125 CHECK_EQ(0.0, StringToDouble(&uc, "0e+100000", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
126 CHECK_EQ(0.0, StringToDouble(&uc, "0.", ALLOW_HEX | ALLOW_OCTALS)); in TEST()
131 CHECK_EQ(1e10, StringToDouble(&uc, "1" "0000000000", NO_FLAGS)); in TEST()
132 CHECK_EQ(1e20, StringToDouble(&uc, "1" "0000000000" "0000000000", NO_FLAGS)); in TEST()
134 CHECK_EQ(1e60, StringToDouble(&uc, "1" "0000000000" "0000000000" "0000000000" in TEST()
137 CHECK_EQ(1e-2, StringToDouble(&uc, "." "0" "1", NO_FLAGS)); in TEST()
138 CHECK_EQ(1e-11, StringToDouble(&uc, "." "0000000000" "1", NO_FLAGS)); in TEST()
139 CHECK_EQ(1e-21, StringToDouble(&uc, "." "0000000000" "0000000000" "1", in TEST()
142 CHECK_EQ(1e-61, StringToDouble(&uc, "." "0000000000" "0000000000" "0000000000" in TEST()
149 StringToDouble(&uc, "24414062505131250.0", NO_FLAGS)); in TEST()
153 StringToDouble(&uc, "24414062505131250.000000001", NO_FLAGS)); in TEST()
174 CHECK_EQ(4.4501477170144017780491e-308, StringToDouble(&uc, num, NO_FLAGS)); in TEST()
179 CHECK_EQ(4.4501477170144022721148e-308, StringToDouble(&uc, num, NO_FLAGS)); in TEST()
200 CHECK_EQ(4.4501477170144017780491e-308, StringToDouble(&uc, num, NO_FLAGS)); in TEST()
205 CHECK_EQ(4.4501477170144022721148e-308, StringToDouble(&uc, num, NO_FLAGS)); in TEST()
213 CHECK_EQ(1.59999999999999997765e+308, StringToDouble(&uc, num, NO_FLAGS)); in TEST()
219 CHECK_EQ(1e1, StringToDouble(&uc, "1e1", NO_FLAGS)); in TEST()
220 CHECK_EQ(1e1, StringToDouble(&uc, "1e+1", NO_FLAGS)); in TEST()
221 CHECK_EQ(1e-1, StringToDouble(&uc, "1e-1", NO_FLAGS)); in TEST()
222 CHECK_EQ(1e100, StringToDouble(&uc, "1e+100", NO_FLAGS)); in TEST()
223 CHECK_EQ(1e-100, StringToDouble(&uc, "1e-100", NO_FLAGS)); in TEST()
224 CHECK_EQ(1e-106, StringToDouble(&uc, ".000001e-100", NO_FLAGS)); in TEST()