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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp

Issue 2058613002: Move WTF string to number converter functions to StringToNumber.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing files. Created 4 years, 6 months 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #include "core/html/parser/HTMLParserIdioms.h" 25 #include "core/html/parser/HTMLParserIdioms.h"
26 26
27 #include "core/HTMLNames.h" 27 #include "core/HTMLNames.h"
28 #include "platform/ParsingUtilities.h" 28 #include "platform/ParsingUtilities.h"
29 #include "wtf/MathExtras.h" 29 #include "wtf/MathExtras.h"
30 #include "wtf/text/AtomicString.h" 30 #include "wtf/text/AtomicString.h"
31 #include "wtf/text/StringBuilder.h" 31 #include "wtf/text/StringBuilder.h"
32 #include "wtf/text/StringHash.h" 32 #include "wtf/text/StringHash.h"
33 #include "wtf/text/StringToNumber.h"
33 #include "wtf/text/TextEncoding.h" 34 #include "wtf/text/TextEncoding.h"
34 35
35 #include <limits> 36 #include <limits>
36 37
37 namespace blink { 38 namespace blink {
38 39
39 using namespace HTMLNames; 40 using namespace HTMLNames;
40 41
41 template <typename CharType> 42 template <typename CharType>
42 static String stripLeadingAndTrailingHTMLSpaces(String string, const CharType* c haracters, unsigned length) 43 static String stripLeadingAndTrailingHTMLSpaces(String string, const CharType* c haracters, unsigned length)
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 string = StringImpl::create8BitIfPossible(characters, size); 478 string = StringImpl::create8BitIfPossible(characters, size);
478 else if (width == Force8Bit) 479 else if (width == Force8Bit)
479 string = String::make8BitFrom16BitSource(characters, size); 480 string = String::make8BitFrom16BitSource(characters, size);
480 else 481 else
481 string = String(characters, size); 482 string = String(characters, size);
482 483
483 return string; 484 return string;
484 } 485 }
485 486
486 } // namespace blink 487 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698