OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_DTOA_H_ | 5 #ifndef V8_DTOA_H_ |
6 #define V8_DTOA_H_ | 6 #define V8_DTOA_H_ |
7 | 7 |
8 #include "src/vector.h" | 8 #include "src/vector.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // 'requested_digits', the function is allowed to return fewer digits, in | 52 // 'requested_digits', the function is allowed to return fewer digits, in |
53 // which case the caller has to fill the missing digits with '0's. | 53 // which case the caller has to fill the missing digits with '0's. |
54 // Halfway cases are again rounded away from 0. | 54 // Halfway cases are again rounded away from 0. |
55 // 'DoubleToAscii' expects the given buffer to be big enough to hold all digits | 55 // 'DoubleToAscii' expects the given buffer to be big enough to hold all digits |
56 // and a terminating null-character. In SHORTEST-mode it expects a buffer of | 56 // and a terminating null-character. In SHORTEST-mode it expects a buffer of |
57 // at least kBase10MaximalLength + 1. Otherwise, the size of the output is | 57 // at least kBase10MaximalLength + 1. Otherwise, the size of the output is |
58 // limited to requested_digits digits plus the null terminator. | 58 // limited to requested_digits digits plus the null terminator. |
59 void DoubleToAscii(double v, DtoaMode mode, int requested_digits, | 59 void DoubleToAscii(double v, DtoaMode mode, int requested_digits, |
60 Vector<char> buffer, int* sign, int* length, int* point); | 60 Vector<char> buffer, int* sign, int* length, int* point); |
61 | 61 |
62 } } // namespace v8::internal | 62 } // namespace internal |
| 63 } // namespace v8 |
63 | 64 |
64 #endif // V8_DTOA_H_ | 65 #endif // V8_DTOA_H_ |
OLD | NEW |