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 26 matching lines...) Expand all Loading... |
37 class SVGTransformList; | 37 class SVGTransformList; |
38 | 38 |
39 template <typename CharType> | 39 template <typename CharType> |
40 bool parseSVGNumber(CharType* ptr, size_t length, double& number); | 40 bool parseSVGNumber(CharType* ptr, size_t length, double& number); |
41 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip =
true); | 41 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip =
true); |
42 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip =
true); | 42 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip =
true); |
43 bool parseNumberFromString(const String&, float& number, bool skip = true); | 43 bool parseNumberFromString(const String&, float& number, bool skip = true); |
44 bool parseNumberOptionalNumber(const String& s, float& h, float& v); | 44 bool parseNumberOptionalNumber(const String& s, float& h, float& v); |
45 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag); | 45 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag); |
46 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag); | 46 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag); |
47 bool parseRect(const String&, FloatRect&); | |
48 | 47 |
49 template <typename CharType> | 48 template <typename CharType> |
50 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&)
; | 49 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&)
; |
51 template <typename CharType> | 50 template <typename CharType> |
52 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&); | 51 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&); |
53 template <typename CharType> | 52 template <typename CharType> |
54 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&, FloatPoint&); | 53 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint&
, FloatPoint&, FloatPoint&); |
55 | 54 |
56 // SVG allows several different whitespace characters: | 55 // SVG allows several different whitespace characters: |
57 // http://www.w3.org/TR/SVG/paths.html#PathDataBNF | 56 // http://www.w3.org/TR/SVG/paths.html#PathDataBNF |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 bool parseTransformAttribute(SVGTransformList&, const UChar*& ptr, const UChar*
end, TransformParsingMode = ClearList); | 96 bool parseTransformAttribute(SVGTransformList&, const UChar*& ptr, const UChar*
end, TransformParsingMode = ClearList); |
98 | 97 |
99 bool parseTransformValue(unsigned type, const LChar*& ptr, const LChar* end, SVG
Transform&); | 98 bool parseTransformValue(unsigned type, const LChar*& ptr, const LChar* end, SVG
Transform&); |
100 bool parseTransformValue(unsigned type, const UChar*& ptr, const UChar* end, SVG
Transform&); | 99 bool parseTransformValue(unsigned type, const UChar*& ptr, const UChar* end, SVG
Transform&); |
101 | 100 |
102 SVGTransform::SVGTransformType parseTransformType(const String&); | 101 SVGTransform::SVGTransformType parseTransformType(const String&); |
103 | 102 |
104 } // namespace WebCore | 103 } // namespace WebCore |
105 | 104 |
106 #endif // SVGParserUtilities_h | 105 #endif // SVGParserUtilities_h |
OLD | NEW |