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

Side by Side Diff: third_party/WebKit/Source/wtf/text/WTFString.h

Issue 1636333003: Implement specced parsing algorithm for <area coords> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 WTF_EXPORT int64_t charactersToInt64(const UChar*, size_t, bool* ok = 0); // ign ores trailing garbage 63 WTF_EXPORT int64_t charactersToInt64(const UChar*, size_t, bool* ok = 0); // ign ores trailing garbage
64 WTF_EXPORT uint64_t charactersToUInt64(const LChar*, size_t, bool* ok = 0); // i gnores trailing garbage 64 WTF_EXPORT uint64_t charactersToUInt64(const LChar*, size_t, bool* ok = 0); // i gnores trailing garbage
65 WTF_EXPORT uint64_t charactersToUInt64(const UChar*, size_t, bool* ok = 0); // i gnores trailing garbage 65 WTF_EXPORT uint64_t charactersToUInt64(const UChar*, size_t, bool* ok = 0); // i gnores trailing garbage
66 66
67 // FIXME: Like the strict functions above, these give false for "ok" when there 67 // FIXME: Like the strict functions above, these give false for "ok" when there
68 // is trailing garbage. Like the non-strict functions above, these return the 68 // is trailing garbage. Like the non-strict functions above, these return the
69 // value when there is trailing garbage. It would be better if these were more 69 // value when there is trailing garbage. It would be better if these were more
70 // consistent with the above functions instead. 70 // consistent with the above functions instead.
71 WTF_EXPORT double charactersToDouble(const LChar*, size_t, bool* ok = 0); 71 WTF_EXPORT double charactersToDouble(const LChar*, size_t, bool* ok = 0);
72 WTF_EXPORT double charactersToDouble(const UChar*, size_t, bool* ok = 0); 72 WTF_EXPORT double charactersToDouble(const UChar*, size_t, bool* ok = 0);
73 WTF_EXPORT double charactersToDouble(const LChar*, size_t, size_t& parsedLength) ;
74 WTF_EXPORT double charactersToDouble(const UChar*, size_t, size_t& parsedLength) ;
73 WTF_EXPORT float charactersToFloat(const LChar*, size_t, bool* ok = 0); 75 WTF_EXPORT float charactersToFloat(const LChar*, size_t, bool* ok = 0);
74 WTF_EXPORT float charactersToFloat(const UChar*, size_t, bool* ok = 0); 76 WTF_EXPORT float charactersToFloat(const UChar*, size_t, bool* ok = 0);
75 WTF_EXPORT float charactersToFloat(const LChar*, size_t, size_t& parsedLength); 77 WTF_EXPORT float charactersToFloat(const LChar*, size_t, size_t& parsedLength);
76 WTF_EXPORT float charactersToFloat(const UChar*, size_t, size_t& parsedLength); 78 WTF_EXPORT float charactersToFloat(const UChar*, size_t, size_t& parsedLength);
77 79
78 enum TrailingZerosTruncatingPolicy { 80 enum TrailingZerosTruncatingPolicy {
79 KeepTrailingZeros, 81 KeepTrailingZeros,
80 TruncateTrailingZeros 82 TruncateTrailingZeros
81 }; 83 };
82 84
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 using WTF::charactersToFloat; 706 using WTF::charactersToFloat;
705 using WTF::equal; 707 using WTF::equal;
706 using WTF::equalIgnoringCase; 708 using WTF::equalIgnoringCase;
707 using WTF::find; 709 using WTF::find;
708 using WTF::isAllSpecialCharacters; 710 using WTF::isAllSpecialCharacters;
709 using WTF::isSpaceOrNewline; 711 using WTF::isSpaceOrNewline;
710 using WTF::reverseFind; 712 using WTF::reverseFind;
711 713
712 #include "wtf/text/AtomicString.h" 714 #include "wtf/text/AtomicString.h"
713 #endif // WTFString_h 715 #endif // WTFString_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Length.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698