Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2305)

Unified Diff: icu4c/source/io/ustream.cpp

Issue 343900043: [Abandoned] Adding ostream<< operator to FormattedNumber. Base URL: svn+icussh://source.icu-project.org/repos/icu/trunk/
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu4c/source/io/unicode/ustream.h ('k') | icu4c/source/test/iotest/stream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu4c/source/io/ustream.cpp
===================================================================
--- icu4c/source/io/ustream.cpp (revision 41377)
+++ icu4c/source/io/ustream.cpp (working copy)
@@ -18,6 +18,7 @@
#if !UCONFIG_NO_CONVERSION
+#include "unicode/numberformatter.h"
#include "unicode/uobject.h"
#include "unicode/ustream.h"
#include "unicode/ucnv.h"
@@ -165,6 +166,13 @@
return stream;
}
+#if !UCONFIG_NO_FORMATTING
+std::ostream& operator<<(std::ostream& os, const number::FormattedNumber& fn) {
+ os << fn.toString();
+ return os;
+}
+#endif
+
U_NAMESPACE_END
#endif
« no previous file with comments | « icu4c/source/io/unicode/ustream.h ('k') | icu4c/source/test/iotest/stream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b