SVGPathStringSource.h [plain text]
#ifndef SVGPathStringSource_h
#define SVGPathStringSource_h
#include "SVGPathSource.h"
#include <wtf/text/WTFString.h>
namespace WebCore {
class SVGPathStringSource final : public SVGPathSource {
public:
explicit SVGPathStringSource(const String&);
private:
bool hasMoreData() const override;
bool moveToNextToken() override;
bool parseSVGSegmentType(SVGPathSegType&) override;
SVGPathSegType nextCommand(SVGPathSegType previousCommand) override;
bool parseMoveToSegment(FloatPoint&) override;
bool parseLineToSegment(FloatPoint&) override;
bool parseLineToHorizontalSegment(float&) override;
bool parseLineToVerticalSegment(float&) override;
bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) override;
bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) override;
bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) override;
bool parseCurveToQuadraticSmoothSegment(FloatPoint&) override;
bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) override;
String m_string;
bool m_is8BitSource;
union {
const LChar* m_character8;
const UChar* m_character16;
} m_current;
union {
const LChar* m_character8;
const UChar* m_character16;
} m_end;
};
}
#endif // SVGPathStringSource_h