OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 3 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 } | 525 } |
526 | 526 |
527 AtomicString AtomicString::number(double number, unsigned precision, TrailingZer
osTruncatingPolicy trailingZerosTruncatingPolicy) | 527 AtomicString AtomicString::number(double number, unsigned precision, TrailingZer
osTruncatingPolicy trailingZerosTruncatingPolicy) |
528 { | 528 { |
529 NumberToStringBuffer buffer; | 529 NumberToStringBuffer buffer; |
530 return AtomicString(numberToFixedPrecisionString(number, precision, buffer,
trailingZerosTruncatingPolicy == TruncateTrailingZeros)); | 530 return AtomicString(numberToFixedPrecisionString(number, precision, buffer,
trailingZerosTruncatingPolicy == TruncateTrailingZeros)); |
531 } | 531 } |
532 | 532 |
533 std::ostream& operator<<(std::ostream& out, const AtomicString& s) | 533 std::ostream& operator<<(std::ostream& out, const AtomicString& s) |
534 { | 534 { |
535 return out << s.string(); | 535 return out << s.getString(); |
536 } | 536 } |
537 | 537 |
538 #ifndef NDEBUG | 538 #ifndef NDEBUG |
539 void AtomicString::show() const | 539 void AtomicString::show() const |
540 { | 540 { |
541 m_string.show(); | 541 m_string.show(); |
542 } | 542 } |
543 #endif | 543 #endif |
544 | 544 |
545 } // namespace WTF | 545 } // namespace WTF |
OLD | NEW |