Bug 1936278 - Prevent search mode chiclet from being dismissed when clicking in page...
[gecko.git] / dom / svg / SVGDataParser.h
blobca983d7662f607175beb0f23f007bceb73600932
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DOM_SVG_SVGDATAPARSER_H_
8 #define DOM_SVG_SVGDATAPARSER_H_
10 #include "nsAString.h"
12 namespace mozilla {
14 ////////////////////////////////////////////////////////////////////////
15 // SVGDataParser: a simple base class for parsing values
16 // for path and transform values.
18 class SVGDataParser {
19 public:
20 explicit SVGDataParser(const nsAString& aValue);
22 protected:
23 // Returns true if there are more characters to read, false otherwise.
24 bool SkipCommaWsp();
26 // Returns true if there are more characters to read, false otherwise.
27 bool SkipWsp();
29 nsAString::const_iterator mIter;
30 nsAString::const_iterator mEnd;
33 } // namespace mozilla
35 #endif // DOM_SVG_SVGDATAPARSER_H_