• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FDE_CSS_CFDE_CSSVALUELISTPARSER_H_
8 #define XFA_FDE_CSS_CFDE_CSSVALUELISTPARSER_H_
9 
10 #include "core/fxcrt/fx_system.h"
11 #include "xfa/fde/css/fde_css.h"
12 
13 class CFDE_CSSValueListParser {
14  public:
15   CFDE_CSSValueListParser(const FX_WCHAR* psz,
16                           int32_t iLen,
17                           FX_WCHAR separator);
18 
19   bool NextValue(FDE_CSSPrimitiveType& eType,
20                  const FX_WCHAR*& pStart,
21                  int32_t& iLength);
22 
23   FX_WCHAR m_Separator;
24 
25  private:
26   int32_t SkipTo(FX_WCHAR wch, bool breakOnSpace, bool matchBrackets);
27 
28   const FX_WCHAR* m_pCur;
29   const FX_WCHAR* m_pEnd;
30 };
31 
32 #endif  // XFA_FDE_CSS_CFDE_CSSVALUELISTPARSER_H_
33