OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2002, 2003 The Karbon Developers | 2 * Copyright (C) 2002, 2003 The Karbon Developers |
3 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2013 Apple Inc. All rights reserved. | 4 * Copyright (C) 2013 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 21 matching lines...) Expand all Loading... |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class FloatPoint; | 34 class FloatPoint; |
35 class FloatRect; | 35 class FloatRect; |
36 class SVGPointList; | 36 class SVGPointList; |
37 | 37 |
38 template <typename CharType> | 38 template <typename CharType> |
39 bool parseSVGNumber(CharType* ptr, size_t length, double& number); | 39 bool parseSVGNumber(CharType* ptr, size_t length, double& number); |
40 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip =
true); | 40 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip =
true); |
41 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip =
true); | 41 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip =
true); |
42 bool parseNumberFromString(const String&, float& number, bool skip = true); | |
43 bool parseNumberOptionalNumber(const String& s, float& h, float& v); | 42 bool parseNumberOptionalNumber(const String& s, float& h, float& v); |
44 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag); | 43 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag); |
45 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag); | 44 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag); |
46 | 45 |
47 template <typename CharType> | 46 template <typename CharType> |
48 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&)
; | 47 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&)
; |
49 template <typename CharType> | 48 template <typename CharType> |
50 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&); | 49 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&); |
51 template <typename CharType> | 50 template <typename CharType> |
52 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&, FloatPoint&); | 51 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&, FloatPoint&); |
(...skipping 21 matching lines...) Expand all Loading... |
74 return false; | 73 return false; |
75 if (skipOptionalSVGSpaces(ptr, end)) { | 74 if (skipOptionalSVGSpaces(ptr, end)) { |
76 if (ptr < end && *ptr == delimiter) { | 75 if (ptr < end && *ptr == delimiter) { |
77 ptr++; | 76 ptr++; |
78 skipOptionalSVGSpaces(ptr, end); | 77 skipOptionalSVGSpaces(ptr, end); |
79 } | 78 } |
80 } | 79 } |
81 return ptr < end; | 80 return ptr < end; |
82 } | 81 } |
83 | 82 |
84 bool pointsListFromSVGData(SVGPointList& pointsList, const String& points); | |
85 Vector<String> parseDelimitedString(const String& input, const char seperator); | 83 Vector<String> parseDelimitedString(const String& input, const char seperator); |
86 bool parseKerningUnicodeString(const String& input, UnicodeRanges&, HashSet<Stri
ng>& stringList); | 84 bool parseKerningUnicodeString(const String& input, UnicodeRanges&, HashSet<Stri
ng>& stringList); |
87 bool parseGlyphName(const String& input, HashSet<String>& values); | 85 bool parseGlyphName(const String& input, HashSet<String>& values); |
88 | 86 |
89 template<typename CharType> | 87 template<typename CharType> |
90 bool parseAndSkipTransformType(const CharType*& ptr, const CharType* end, SVGTra
nsformType&); | 88 bool parseAndSkipTransformType(const CharType*& ptr, const CharType* end, SVGTra
nsformType&); |
91 SVGTransformType parseTransformType(const String&); | 89 SVGTransformType parseTransformType(const String&); |
92 | 90 |
93 } // namespace WebCore | 91 } // namespace WebCore |
94 | 92 |
95 #endif // SVGParserUtilities_h | 93 #endif // SVGParserUtilities_h |
OLD | NEW |