tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

SVGDataParser.h (1024B)


      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/. */
      6 
      7 #ifndef DOM_SVG_SVGDATAPARSER_H_
      8 #define DOM_SVG_SVGDATAPARSER_H_
      9 
     10 #include "nsAString.h"
     11 
     12 namespace mozilla {
     13 
     14 ////////////////////////////////////////////////////////////////////////
     15 // SVGDataParser: a simple base class for parsing values
     16 // for path and transform values.
     17 //
     18 class SVGDataParser {
     19 public:
     20  explicit SVGDataParser(const nsAString& aValue);
     21 
     22 protected:
     23  // Returns true if there are more characters to read, false otherwise.
     24  bool SkipCommaWsp();
     25 
     26  // Returns true if there are more characters to read, false otherwise.
     27  bool SkipWsp();
     28 
     29  nsAString::const_iterator mIter;
     30  nsAString::const_iterator mEnd;
     31 };
     32 
     33 }  // namespace mozilla
     34 
     35 #endif  // DOM_SVG_SVGDATAPARSER_H_