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

Side by Side Diff: Source/core/html/parser/HTMLParserIdioms.h

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/html/canvas/WebGLGetInfo.cpp ('k') | Source/core/inspector/InjectedScriptHost.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Convert the specified string to a decimal/double. If the conversion fails, th e return value is fallback value or NaN if not specified. 56 // Convert the specified string to a decimal/double. If the conversion fails, th e return value is fallback value or NaN if not specified.
57 // Leading or trailing illegal characters cause failure, as does passing an empt y string. 57 // Leading or trailing illegal characters cause failure, as does passing an empt y string.
58 // The double* parameter may be 0 to check if the string can be parsed without g etting the result. 58 // The double* parameter may be 0 to check if the string can be parsed without g etting the result.
59 Decimal parseToDecimalForNumberType(const String&, const Decimal& fallbackValue = Decimal::nan()); 59 Decimal parseToDecimalForNumberType(const String&, const Decimal& fallbackValue = Decimal::nan());
60 double parseToDoubleForNumberType(const String&, double fallbackValue = std::num eric_limits<double>::quiet_NaN()); 60 double parseToDoubleForNumberType(const String&, double fallbackValue = std::num eric_limits<double>::quiet_NaN());
61 61
62 // http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-integers 62 // http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-integers
63 bool parseHTMLInteger(const String&, int&); 63 bool parseHTMLInteger(const String&, int&);
64 64
65 // http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-non-nega tive-integers 65 // http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-non-nega tive-integers
66 bool parseHTMLNonNegativeInteger(const String&, unsigned int&); 66 bool parseHTMLNonNegativeInteger(const String&, unsigned&);
67 67
68 typedef Vector<pair<String, String> > HTMLAttributeList; 68 typedef Vector<pair<String, String> > HTMLAttributeList;
69 // The returned encoding might not be valid. 69 // The returned encoding might not be valid.
70 WTF::TextEncoding encodingFromMetaAttributes(const HTMLAttributeList&); 70 WTF::TextEncoding encodingFromMetaAttributes(const HTMLAttributeList&);
71 71
72 // Inline implementations of some of the functions declared above. 72 // Inline implementations of some of the functions declared above.
73 73
74 template<typename CharType> 74 template<typename CharType>
75 inline bool isHTMLSpace(CharType character) 75 inline bool isHTMLSpace(CharType character)
76 { 76 {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 inline static String attemptStaticStringCreation(const String str) 126 inline static String attemptStaticStringCreation(const String str)
127 { 127 {
128 if (!str.is8Bit()) 128 if (!str.is8Bit())
129 return attemptStaticStringCreation(str.characters16(), str.length(), For ce16Bit); 129 return attemptStaticStringCreation(str.characters16(), str.length(), For ce16Bit);
130 return attemptStaticStringCreation(str.characters8(), str.length()); 130 return attemptStaticStringCreation(str.characters8(), str.length());
131 } 131 }
132 132
133 133
134 } 134 }
135 #endif 135 #endif
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLGetInfo.cpp ('k') | Source/core/inspector/InjectedScriptHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698