You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

439 lines
15 KiB

8 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="theme-color" content="#375EAB">
  7. <title>xpp - The Go Programming Language</title>
  8. <link type="text/css" rel="stylesheet" href="../../../../lib/godoc/style.css">
  9. <link rel="stylesheet" href="../../../../lib/godoc/jquery.treeview.css">
  10. <script type="text/javascript">window.initFuncs = [];</script>
  11. </head>
  12. <body>
  13. <div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
  14. ...
  15. </div><!-- #lowframe -->
  16. <div id="topbar" class="wide"><div class="container">
  17. <div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
  18. <div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
  19. <a href="index.html#" id="menu-button"><span id="menu-button-arrow">&#9661;</span></a>
  20. <form method="GET" action="http://localhost:6060/search">
  21. <div id="menu">
  22. <a href="http://localhost:6060/doc/">Documents</a>
  23. <a href="http://localhost:6060/pkg/">Packages</a>
  24. <a href="http://localhost:6060/project/">The Project</a>
  25. <a href="http://localhost:6060/help/">Help</a>
  26. <a href="http://localhost:6060/blog/">Blog</a>
  27. <input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
  28. </div>
  29. </form>
  30. </div></div>
  31. <div id="page" class="wide">
  32. <div class="container">
  33. <h1>Package xpp</h1>
  34. <div id="nav"></div>
  35. <!--
  36. Copyright 2009 The Go Authors. All rights reserved.
  37. Use of this source code is governed by a BSD-style
  38. license that can be found in the LICENSE file.
  39. -->
  40. <!--
  41. Note: Static (i.e., not template-generated) href and id
  42. attributes start with "pkg-" to make it impossible for
  43. them to conflict with generated attributes (some of which
  44. correspond to Go identifiers).
  45. -->
  46. <script type='text/javascript'>
  47. document.ANALYSIS_DATA = null;
  48. document.CALLGRAPH = null;
  49. </script>
  50. <div id="short-nav">
  51. <dl>
  52. <dd><code>import "github.com/mmcdole/goxpp"</code></dd>
  53. </dl>
  54. <dl>
  55. <dd><a href="index.html#pkg-overview" class="overviewLink">Overview</a></dd>
  56. <dd><a href="index.html#pkg-index" class="indexLink">Index</a></dd>
  57. </dl>
  58. </div>
  59. <!-- The package's Name is printed as title by the top-level template -->
  60. <div id="pkg-overview" class="toggleVisible">
  61. <div class="collapsed">
  62. <h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
  63. </div>
  64. <div class="expanded">
  65. <h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
  66. </div>
  67. </div>
  68. <div id="pkg-index" class="toggleVisible">
  69. <div class="collapsed">
  70. <h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
  71. </div>
  72. <div class="expanded">
  73. <h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
  74. <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
  75. <div id="manual-nav">
  76. <dl>
  77. <dd><a href="index.html#CharsetReader">type CharsetReader</a></dd>
  78. <dd><a href="index.html#XMLEventType">type XMLEventType</a></dd>
  79. <dd><a href="index.html#XMLPullParser">type XMLPullParser</a></dd>
  80. <dd>&nbsp; &nbsp; <a href="index.html#NewXMLPullParser">func NewXMLPullParser(r io.Reader, strict bool, cr CharsetReader) *XMLPullParser</a></dd>
  81. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.Attribute">func (p *XMLPullParser) Attribute(name string) string</a></dd>
  82. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.DecodeElement">func (p *XMLPullParser) DecodeElement(v interface{}) error</a></dd>
  83. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.EventName">func (p *XMLPullParser) EventName(e XMLEventType) (name string)</a></dd>
  84. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.EventType">func (p *XMLPullParser) EventType(t xml.Token) (event XMLEventType)</a></dd>
  85. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.Expect">func (p *XMLPullParser) Expect(event XMLEventType, name string) (err error)</a></dd>
  86. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.ExpectAll">func (p *XMLPullParser) ExpectAll(event XMLEventType, space string, name string) (err error)</a></dd>
  87. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.IsWhitespace">func (p *XMLPullParser) IsWhitespace() bool</a></dd>
  88. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.Next">func (p *XMLPullParser) Next() (event XMLEventType, err error)</a></dd>
  89. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.NextTag">func (p *XMLPullParser) NextTag() (event XMLEventType, err error)</a></dd>
  90. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.NextText">func (p *XMLPullParser) NextText() (string, error)</a></dd>
  91. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.NextToken">func (p *XMLPullParser) NextToken() (event XMLEventType, err error)</a></dd>
  92. <dd>&nbsp; &nbsp; <a href="index.html#XMLPullParser.Skip">func (p *XMLPullParser) Skip() error</a></dd>
  93. </dl>
  94. </div><!-- #manual-nav -->
  95. <h4>Package files</h4>
  96. <p>
  97. <span style="font-size:90%">
  98. <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go">xpp.go</a>
  99. </span>
  100. </p>
  101. </div><!-- .expanded -->
  102. </div><!-- #pkg-index -->
  103. <div id="pkg-callgraph" class="toggle" style="display: none">
  104. <div class="collapsed">
  105. <h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
  106. </div> <!-- .expanded -->
  107. <div class="expanded">
  108. <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
  109. <p>
  110. In the call graph viewer below, each node
  111. is a function belonging to this package
  112. and its children are the functions it
  113. calls&mdash;perhaps dynamically.
  114. </p>
  115. <p>
  116. The root nodes are the entry points of the
  117. package: functions that may be called from
  118. outside the package.
  119. There may be non-exported or anonymous
  120. functions among them if they are called
  121. dynamically from another package.
  122. </p>
  123. <p>
  124. Click a node to visit that function's source code.
  125. From there you can visit its callers by
  126. clicking its declaring <code>func</code>
  127. token.
  128. </p>
  129. <p>
  130. Functions may be omitted if they were
  131. determined to be unreachable in the
  132. particular programs or tests that were
  133. analyzed.
  134. </p>
  135. <!-- Zero means show all package entry points. -->
  136. <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
  137. </div>
  138. </div> <!-- #pkg-callgraph -->
  139. <h2 id="CharsetReader">type <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=97:172#L2">CharsetReader</a></h2>
  140. <pre>type CharsetReader func(charset <a href="../../../builtin/index.html#string">string</a>, input <a href="../../../io/index.html">io</a>.<a href="../../../io/index.html#Reader">Reader</a>) (<a href="../../../io/index.html">io</a>.<a href="../../../io/index.html#Reader">Reader</a>, <a href="../../../builtin/index.html#error">error</a>)</pre>
  141. <h2 id="XMLEventType">type <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=75:96#L1">XMLEventType</a></h2>
  142. <pre>type XMLEventType <a href="../../../builtin/index.html#int">int</a></pre>
  143. <pre>const (
  144. <span id="StartDocument">StartDocument</span> <a href="index.html#XMLEventType">XMLEventType</a> = <a href="../../../builtin/index.html#iota">iota</a>
  145. <span id="EndDocument">EndDocument</span>
  146. <span id="StartTag">StartTag</span>
  147. <span id="EndTag">EndTag</span>
  148. <span id="Text">Text</span>
  149. <span id="Comment">Comment</span>
  150. <span id="ProcessingInstruction">ProcessingInstruction</span>
  151. <span id="Directive">Directive</span>
  152. <span id="IgnorableWhitespace">IgnorableWhitespace</span> <span class="comment">// TODO: ?</span>
  153. )</pre>
  154. <h2 id="XMLPullParser">type <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=351:577#L17">XMLPullParser</a></h2>
  155. <pre>type XMLPullParser struct {
  156. <span class="comment">// Document State</span>
  157. Spaces map[<a href="../../../builtin/index.html#string">string</a>]<a href="../../../builtin/index.html#string">string</a>
  158. <span class="comment">// Token State</span>
  159. Depth <a href="../../../builtin/index.html#int">int</a>
  160. Event <a href="index.html#XMLEventType">XMLEventType</a>
  161. Attrs []<a href="../../../encoding/xml/index.html">xml</a>.<a href="../../../encoding/xml/index.html#Attr">Attr</a>
  162. Name <a href="../../../builtin/index.html#string">string</a>
  163. Space <a href="../../../builtin/index.html#string">string</a>
  164. Text <a href="../../../builtin/index.html#string">string</a>
  165. <span class="comment">// contains filtered or unexported fields</span>
  166. }</pre>
  167. <h3 id="NewXMLPullParser">func <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=579:659#L33">NewXMLPullParser</a></h3>
  168. <pre>func NewXMLPullParser(r <a href="../../../io/index.html">io</a>.<a href="../../../io/index.html#Reader">Reader</a>, strict <a href="../../../builtin/index.html#bool">bool</a>, cr <a href="index.html#CharsetReader">CharsetReader</a>) *<a href="index.html#XMLPullParser">XMLPullParser</a></pre>
  169. <h3 id="XMLPullParser.Attribute">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=3221:3274#L162">Attribute</a></h3>
  170. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) Attribute(name <a href="../../../builtin/index.html#string">string</a>) <a href="../../../builtin/index.html#string">string</a></pre>
  171. <h3 id="XMLPullParser.DecodeElement">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=3979:4037#L182">DecodeElement</a></h3>
  172. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) DecodeElement(v interface{}) <a href="../../../builtin/index.html#error">error</a></pre>
  173. <h3 id="XMLPullParser.EventName">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=4626:4689#L212">EventName</a></h3>
  174. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) EventName(e <a href="index.html#XMLEventType">XMLEventType</a>) (name <a href="../../../builtin/index.html#string">string</a>)</pre>
  175. <h3 id="XMLPullParser.EventType">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=5094:5161#L236">EventType</a></h3>
  176. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) EventType(t <a href="../../../encoding/xml/index.html">xml</a>.<a href="../../../encoding/xml/index.html#Token">Token</a>) (event <a href="index.html#XMLEventType">XMLEventType</a>)</pre>
  177. <h3 id="XMLPullParser.Expect">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=3382:3457#L171">Expect</a></h3>
  178. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) Expect(event <a href="index.html#XMLEventType">XMLEventType</a>, name <a href="../../../builtin/index.html#string">string</a>) (err <a href="../../../builtin/index.html#error">error</a>)</pre>
  179. <h3 id="XMLPullParser.ExpectAll">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=3501:3593#L175">ExpectAll</a></h3>
  180. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) ExpectAll(event <a href="index.html#XMLEventType">XMLEventType</a>, space <a href="../../../builtin/index.html#string">string</a>, name <a href="../../../builtin/index.html#string">string</a>) (err <a href="../../../builtin/index.html#error">error</a>)</pre>
  181. <h3 id="XMLPullParser.IsWhitespace">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=4537:4580#L208">IsWhitespace</a></h3>
  182. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) IsWhitespace() <a href="../../../builtin/index.html#bool">bool</a></pre>
  183. <h3 id="XMLPullParser.Next">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=1257:1319#L65">Next</a></h3>
  184. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) Next() (event <a href="index.html#XMLEventType">XMLEventType</a>, err <a href="../../../builtin/index.html#error">error</a>)</pre>
  185. <h3 id="XMLPullParser.NextTag">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=843:908#L45">NextTag</a></h3>
  186. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) NextTag() (event <a href="index.html#XMLEventType">XMLEventType</a>, err <a href="../../../builtin/index.html#error">error</a>)</pre>
  187. <h3 id="XMLPullParser.NextText">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=2326:2376#L115">NextText</a></h3>
  188. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) NextText() (<a href="../../../builtin/index.html#string">string</a>, <a href="../../../builtin/index.html#error">error</a>)</pre>
  189. <h3 id="XMLPullParser.NextToken">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=1788:1855#L91">NextToken</a></h3>
  190. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) NextToken() (event <a href="index.html#XMLEventType">XMLEventType</a>, err <a href="../../../builtin/index.html#error">error</a>)</pre>
  191. <h3 id="XMLPullParser.Skip">func (*XMLPullParser) <a href="http://localhost:6060/src/github.com/mmcdole/goxpp/xpp.go?s=2980:3016#L146">Skip</a></h3>
  192. <pre>func (p *<a href="index.html#XMLPullParser">XMLPullParser</a>) Skip() <a href="../../../builtin/index.html#error">error</a></pre>
  193. <div id="footer">
  194. Build version go1.6.<br>
  195. Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
  196. the content of this page is licensed under the
  197. Creative Commons Attribution 3.0 License,
  198. and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
  199. <a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
  200. <a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
  201. </div>
  202. </div><!-- .container -->
  203. </div><!-- #page -->
  204. <!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
  205. <script type="text/javascript" src="../../../../lib/godoc/jquery.js"></script>
  206. <script type="text/javascript" src="../../../../lib/godoc/jquery.treeview.js"></script>
  207. <script type="text/javascript" src="../../../../lib/godoc/jquery.treeview.edit.js"></script>
  208. <script type="text/javascript" src="../../../../lib/godoc/godocs.js"></script>
  209. </body>
  210. </html>