Lines Matching refs:buffer
61 Vector<char> buffer(buffer_container, kBufferSize);
66 DoubleToAscii(0.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
67 CHECK_EQ("0", buffer.start());
70 DoubleToAscii(0.0, DTOA_FIXED, 2, buffer, &sign, &length, &point);
72 CHECK_EQ("0", buffer.start());
75 DoubleToAscii(0.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point);
77 CHECK_EQ("0", buffer.start());
80 DoubleToAscii(1.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
81 CHECK_EQ("1", buffer.start());
84 DoubleToAscii(1.0, DTOA_FIXED, 3, buffer, &sign, &length, &point);
86 TrimRepresentation(buffer);
87 CHECK_EQ("1", buffer.start());
90 DoubleToAscii(1.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point);
92 TrimRepresentation(buffer);
93 CHECK_EQ("1", buffer.start());
96 DoubleToAscii(1.5, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
97 CHECK_EQ("15", buffer.start());
100 DoubleToAscii(1.5, DTOA_FIXED, 10, buffer, &sign, &length, &point);
102 TrimRepresentation(buffer);
103 CHECK_EQ("15", buffer.start());
106 DoubleToAscii(1.5, DTOA_PRECISION, 10, buffer, &sign, &length, &point);
108 TrimRepresentation(buffer);
109 CHECK_EQ("15", buffer.start());
113 DoubleToAscii(min_double, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
114 CHECK_EQ("5", buffer.start());
117 DoubleToAscii(min_double, DTOA_FIXED, 5, buffer, &sign, &length, &point);
119 TrimRepresentation(buffer);
120 CHECK_EQ("", buffer.start());
123 DoubleToAscii(min_double, DTOA_PRECISION, 5, buffer, &sign, &length, &point);
125 TrimRepresentation(buffer);
126 CHECK_EQ("49407", buffer.start());
130 DoubleToAscii(max_double, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
131 CHECK_EQ("17976931348623157", buffer.start());
134 DoubleToAscii(max_double, DTOA_PRECISION, 7, buffer, &sign, &length, &point);
136 TrimRepresentation(buffer);
137 CHECK_EQ("1797693", buffer.start());
140 DoubleToAscii(4294967272.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
141 CHECK_EQ("4294967272", buffer.start());
144 DoubleToAscii(4294967272.0, DTOA_FIXED, 5, buffer, &sign, &length, &point);
146 TrimRepresentation(buffer);
147 CHECK_EQ("4294967272", buffer.start());
152 buffer, &sign, &length, &point);
154 TrimRepresentation(buffer);
155 CHECK_EQ("4294967272", buffer.start());
159 buffer, &sign, &length, &point);
160 CHECK_EQ("4185580496821357", buffer.start());
164 buffer, &sign, &length, &point);
166 TrimRepresentation(buffer);
167 CHECK_EQ("41855804968213567225", buffer.start());
171 buffer, &sign, &length, &point);
172 CHECK_EQ("5562684646268003", buffer.start());
176 buffer, &sign, &length, &point);
178 TrimRepresentation(buffer);
179 CHECK_EQ("6", buffer.start());
183 buffer, &sign, &length, &point);
185 CHECK_EQ("2147483648", buffer.start());
189 DoubleToAscii(-2147483648.0, DTOA_FIXED, 2, buffer, &sign, &length, &point);
191 TrimRepresentation(buffer);
193 CHECK_EQ("2147483648", buffer.start());
197 buffer, &sign, &length, &point);
199 TrimRepresentation(buffer);
201 CHECK_EQ("21475", buffer.start());
205 buffer, &sign, &length, &point);
207 CHECK_EQ("35844466002796428", buffer.start());
211 buffer, &sign, &length, &point);
214 TrimRepresentation(buffer);
215 CHECK_EQ("35844466", buffer.start());
220 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
221 CHECK_EQ("22250738585072014", buffer.start());
224 DoubleToAscii(v, DTOA_PRECISION, 20, buffer, &sign, &length, &point);
226 TrimRepresentation(buffer);
227 CHECK_EQ("22250738585072013831", buffer.start());
232 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
233 CHECK_EQ("2225073858507201", buffer.start());
236 DoubleToAscii(v, DTOA_PRECISION, 20, buffer, &sign, &length, &point);
238 TrimRepresentation(buffer);
239 CHECK_EQ("2225073858507200889", buffer.start());
243 buffer, &sign, &length, &point);
245 CHECK_EQ("4128420500802942", buffer.start());
249 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
250 CHECK_EQ("39292015898194143", buffer.start());
253 DoubleToAscii(v, DTOA_FIXED, 5, buffer, &sign, &length, &point);
255 TrimRepresentation(buffer);
256 CHECK_EQ("4194304", buffer.start());
259 DoubleToAscii(v, DTOA_PRECISION, 19, buffer, &sign, &length, &point);
261 TrimRepresentation(buffer);
262 CHECK_EQ("3316133905216739056", buffer.start());
269 Vector<char> buffer(buffer_container, kBufferSize);
279 DoubleToAscii(v, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
282 CHECK_EQ(current_test.representation, buffer.start());
289 Vector<char> buffer(buffer_container, kBufferSize);
300 DoubleToAscii(v, DTOA_FIXED, number_digits, buffer, &sign, &length, &point);
304 TrimRepresentation(buffer);
305 CHECK_EQ(current_test.representation, buffer.start());
312 Vector<char> buffer(buffer_container, kBufferSize);
324 buffer, &sign, &length, &point);
328 TrimRepresentation(buffer);
329 CHECK_EQ(current_test.representation, buffer.start());