blob: bfe3c6fea40fa173950a3acc9ae6272c0622adf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SGL: SkParse.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.0 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">include</a> / <a class="el" href="dir_000001.html">skia</a></div>
<h1>SkParse.h</h1><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifndef SkParse_DEFINED</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define SkParse_DEFINED</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#include "<a class="code" href="SkColor_8h.html">SkColor.h</a>"</span>
00005 <span class="preprocessor">#include "SkMath.h"</span>
00006
00007 <span class="keyword">class </span>SkParse {
00008 <span class="keyword">public</span>:
00009 <span class="keyword">static</span> <span class="keywordtype">int</span> Count(<span class="keyword">const</span> <span class="keywordtype">char</span> str[]); <span class="comment">// number of scalars or S32 values</span>
00010 <span class="keyword">static</span> <span class="keywordtype">int</span> Count(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], <span class="keywordtype">char</span> separator);
00011 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindColor(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], SkColor* value);
00012 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindHex(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], U32* value);
00013 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindMSec(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], SkMSec* value);
00014 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindNamedColor(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], size_t len, SkColor* color);
00015 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindS32(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], S32* value);
00016 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindScalar(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], SkScalar* value);
00017 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* FindScalars(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], SkScalar value[], <span class="keywordtype">int</span> count);
00018
00019 <span class="keyword">static</span> <span class="keywordtype">bool</span> FindBool(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], <span class="keywordtype">bool</span>* value);
00020 <span class="comment">// return the index of str in list[], or -1 if not found</span>
00021 <span class="keyword">static</span> <span class="keywordtype">int</span> FindList(<span class="keyword">const</span> <span class="keywordtype">char</span> str[], <span class="keyword">const</span> <span class="keywordtype">char</span> list[]);
00022 <span class="preprocessor">#ifdef SK_SUPPORT_UNITTEST</span>
00023 <span class="preprocessor"></span> <span class="keyword">static</span> <span class="keywordtype">void</span> TestColor();
00024 <span class="keyword">static</span> <span class="keywordtype">void</span> UnitTest();
00025 <span class="preprocessor">#endif</span>
00026 <span class="preprocessor"></span>};
00027
00028 <span class="preprocessor">#endif</span>
00029 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue May 9 14:35:23 2006 for SGL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address>
</body>
</html>
|