mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
77 lines
2.9 KiB
HTML
77 lines
2.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
<title>获取 XML 解析器的当前字节索引</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.xml-get-current-byte-index" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">xml_get_current_byte_index</h1>
|
||
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">xml_get_current_byte_index</span> — <span class="dc-title">获取 XML 解析器的当前字节索引</span></p>
|
||
|
||
</div>
|
||
<div class="refsect1 description" id="refsect1-function.xml-get-current-byte-index-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>xml_get_current_byte_index</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$parser</code></span>
|
||
) : <span class="type">int</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
获取指定的 XML 解析器的当前字节索引(current byte index)。
|
||
</p>
|
||
</div>
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.xml-get-current-byte-index-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">parser</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
指向要取得字节索引的 XML 解析器的引用。
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.xml-get-current-byte-index-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
如果 <code class="parameter">parser</code> 没有指向一个合法的解析器,该函数将返回
|
||
<strong><code>FALSE</code></strong>,否则将返回解析器当前在其数据缓冲区中的字节索引(起始值为 0)。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 notes" id="refsect1-function.xml-get-current-byte-index-notes">
|
||
<h3 class="title">注释</h3>
|
||
<div class="warning"><strong class="warning">Warning</strong>
|
||
<p class="para">
|
||
该函数将返回根据UTF-8编码的文本的字节索引,而不论输入是否是其他的编码。
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.xml-get-current-byte-index-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><strong>xml_get_current_column_index()</strong></span></li>
|
||
<li class="member"><span class="function"><strong>xml_get_current_line_index()</strong></span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |