Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1696)

Unified Diff: Source/wtf/text/IntegerToStringConversion.h

Issue 84713002: Add number() static methods to AtomicString class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass NaN as default argument Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/text/AtomicStringTest.cpp ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/IntegerToStringConversion.h
diff --git a/Source/wtf/text/IntegerToStringConversion.h b/Source/wtf/text/IntegerToStringConversion.h
index 0962352eb026586054ea371035a8fc4211357959..df63448e2b618445a561c102ca91ce621bd14ed5 100644
--- a/Source/wtf/text/IntegerToStringConversion.h
+++ b/Source/wtf/text/IntegerToStringConversion.h
@@ -44,6 +44,11 @@ template<> struct ConversionTrait<StringBuilder> {
typedef StringBuilder AdditionalArgumentType;
static inline ReturnType flush(LChar* characters, unsigned length, StringBuilder* stringBuilder) { stringBuilder->append(characters, length); }
};
+template<> struct ConversionTrait<AtomicString> {
+ typedef AtomicString ReturnType;
+ typedef void AdditionalArgumentType;
+ static inline ReturnType flush(LChar* characters, unsigned length, void*) { return AtomicString(characters, length); }
+};
template<typename T> struct UnsignedIntegerTrait;
« no previous file with comments | « Source/wtf/text/AtomicStringTest.cpp ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698