2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-06-16 21:20:25 +04:00
|
|
|
|
2020-07-15 02:40:05 +03:00
|
|
|
#ifndef DOM_SVG_SVGDATAPARSER_H_
|
|
|
|
#define DOM_SVG_SVGDATAPARSER_H_
|
2006-06-16 21:20:25 +04:00
|
|
|
|
2013-10-29 21:15:39 +04:00
|
|
|
#include "mozilla/RangedPtr.h"
|
2018-12-22 02:29:24 +03:00
|
|
|
#include "nsStringFwd.h"
|
2006-06-16 21:20:25 +04:00
|
|
|
|
2018-12-21 23:19:15 +03:00
|
|
|
namespace mozilla {
|
|
|
|
|
2006-06-16 21:20:25 +04:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
2018-12-21 23:19:15 +03:00
|
|
|
// SVGDataParser: a simple base class for parsing values
|
2006-06-16 21:20:25 +04:00
|
|
|
// for path and transform values.
|
|
|
|
//
|
2018-12-21 23:19:15 +03:00
|
|
|
class SVGDataParser {
|
2006-06-16 21:20:25 +04:00
|
|
|
public:
|
2018-12-21 23:19:15 +03:00
|
|
|
explicit SVGDataParser(const nsAString& aValue);
|
2006-06-16 21:20:25 +04:00
|
|
|
|
|
|
|
protected:
|
2013-10-29 21:15:39 +04:00
|
|
|
// Returns true if there are more characters to read, false otherwise.
|
|
|
|
bool SkipCommaWsp();
|
|
|
|
|
|
|
|
// Returns true if there are more characters to read, false otherwise.
|
|
|
|
bool SkipWsp();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
mozilla::RangedPtr<const char16_t> mIter;
|
|
|
|
const mozilla::RangedPtr<const char16_t> mEnd;
|
2006-06-16 21:20:25 +04:00
|
|
|
};
|
|
|
|
|
2018-12-21 23:19:15 +03:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2020-07-15 02:40:05 +03:00
|
|
|
#endif // DOM_SVG_SVGDATAPARSER_H_
|