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

Unified Diff: third_party/WebKit/Source/wtf/dtoa.h

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h ('k') | third_party/WebKit/Source/wtf/dtoa.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/dtoa.h
diff --git a/third_party/WebKit/Source/wtf/dtoa.h b/third_party/WebKit/Source/wtf/dtoa.h
index fad2f7ba33d1f6c29f55db3a6c18a0e9f9a050fc..c855e126b0f8296556317625107182c7a7194a11 100644
--- a/third_party/WebKit/Source/wtf/dtoa.h
+++ b/third_party/WebKit/Source/wtf/dtoa.h
@@ -51,26 +51,24 @@ WTF_EXPORT double parseDouble(const LChar* string, size_t length, size_t& parsed
WTF_EXPORT double parseDouble(const UChar* string, size_t length, size_t& parsedLength);
namespace Internal {
- double parseDoubleFromLongString(const UChar* string, size_t length, size_t& parsedLength);
+double parseDoubleFromLongString(const UChar* string, size_t length, size_t& parsedLength);
}
-inline double parseDouble(const LChar* string, size_t length, size_t& parsedLength)
-{
- return double_conversion::StringToDoubleConverter::StringToDouble(reinterpret_cast<const char*>(string), length, &parsedLength);
+inline double parseDouble(const LChar* string, size_t length, size_t& parsedLength) {
+ return double_conversion::StringToDoubleConverter::StringToDouble(reinterpret_cast<const char*>(string), length, &parsedLength);
}
-inline double parseDouble(const UChar* string, size_t length, size_t& parsedLength)
-{
- const size_t conversionBufferSize = 64;
- if (length > conversionBufferSize)
- return Internal::parseDoubleFromLongString(string, length, parsedLength);
- LChar conversionBuffer[conversionBufferSize];
- for (size_t i = 0; i < length; ++i)
- conversionBuffer[i] = isASCII(string[i]) ? static_cast<LChar>(string[i]) : 0;
- return parseDouble(conversionBuffer, length, parsedLength);
+inline double parseDouble(const UChar* string, size_t length, size_t& parsedLength) {
+ const size_t conversionBufferSize = 64;
+ if (length > conversionBufferSize)
+ return Internal::parseDoubleFromLongString(string, length, parsedLength);
+ LChar conversionBuffer[conversionBufferSize];
+ for (size_t i = 0; i < length; ++i)
+ conversionBuffer[i] = isASCII(string[i]) ? static_cast<LChar>(string[i]) : 0;
+ return parseDouble(conversionBuffer, length, parsedLength);
}
-} // namespace WTF
+} // namespace WTF
using WTF::NumberToStringBuffer;
using WTF::NumberToLStringBuffer;
@@ -79,4 +77,4 @@ using WTF::numberToFixedPrecisionString;
using WTF::numberToFixedWidthString;
using WTF::parseDouble;
-#endif // WTF_dtoa_h
+#endif // WTF_dtoa_h
« no previous file with comments | « third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h ('k') | third_party/WebKit/Source/wtf/dtoa.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698