chillerlan-QRCode-Data-Hanzi.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -class">
  114. <h2 class="phpdocumentor-content__title">
  115. Hanzi
  116. <span class="phpdocumentor-element__extends">
  117. extends <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeAbstract">QRDataModeAbstract</abbr></a>
  118. </span>
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  128. </div>
  129. <aside class="phpdocumentor-element-found-in">
  130. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">31</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">Hanzi (simplified Chinese) mode, GBT18284-2000: 13-bit double-byte characters from the GB2312/GB18030 character set</p>
  135. <section class="phpdocumentor-description"><p>Please note that this is not part of the QR Code specification and may not be supported by all readers (ZXing-based ones do).</p>
  136. </section>
  137. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  138. Tags
  139. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  140. </h5>
  141. <dl class="phpdocumentor-tag-list">
  142. <dt class="phpdocumentor-tag-list__entry">
  143. <span class="phpdocumentor-tag__name">see</span>
  144. </dt>
  145. <dd class="phpdocumentor-tag-list__definition">
  146. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/GB_2312">https://en.wikipedia.org/wiki/GB_2312</a></span>
  147. </dd>
  148. <dt class="phpdocumentor-tag-list__entry">
  149. <span class="phpdocumentor-tag__name">see</span>
  150. </dt>
  151. <dd class="phpdocumentor-tag-list__definition">
  152. <span class="phpdocumentor-tag-link"><a href="http://www.herongyang.com/GB2312/Introduction-of-GB2312.html">http://www.herongyang.com/GB2312/Introduction-of-GB2312.html</a></span>
  153. </dd>
  154. <dt class="phpdocumentor-tag-list__entry">
  155. <span class="phpdocumentor-tag__name">see</span>
  156. </dt>
  157. <dd class="phpdocumentor-tag-list__definition">
  158. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/GBK_(character_encoding)#Encoding">https://en.wikipedia.org/wiki/GBK_(character_encoding)#Encoding</a></span>
  159. </dd>
  160. <dt class="phpdocumentor-tag-list__entry">
  161. <span class="phpdocumentor-tag__name">see</span>
  162. </dt>
  163. <dd class="phpdocumentor-tag-list__definition">
  164. <span class="phpdocumentor-tag-link"><a href="https://gist.github.com/codemasher/91da33c44bfb48a81a6c1426bb8e4338">https://gist.github.com/codemasher/91da33c44bfb48a81a6c1426bb8e4338</a></span>
  165. </dd>
  166. <dt class="phpdocumentor-tag-list__entry">
  167. <span class="phpdocumentor-tag__name">see</span>
  168. </dt>
  169. <dd class="phpdocumentor-tag-list__definition">
  170. <span class="phpdocumentor-tag-link"><a href="https://github.com/zxing/zxing/blob/dfb06fa33b17a9e68321be151c22846c7b78048f/core/src/main/java/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java#L172-L209">https://github.com/zxing/zxing/blob/dfb06fa33b17a9e68321be151c22846c7b78048f/core/src/main/java/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java#L172-L209</a></span>
  171. </dd>
  172. <dt class="phpdocumentor-tag-list__entry">
  173. <span class="phpdocumentor-tag__name">see</span>
  174. </dt>
  175. <dd class="phpdocumentor-tag-list__definition">
  176. <span class="phpdocumentor-tag-link"><a href="https://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000">https://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000</a></span>
  177. </dd>
  178. </dl>
  179. <h3 id="toc">
  180. Table of Contents
  181. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  182. </h3>
  183. <h4 id="toc-constants">
  184. Constants
  185. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  186. </h4>
  187. <dl class="phpdocumentor-table-of-contents">
  188. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  189. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_DATAMODE">DATAMODE</a>
  190. <span>
  191. &nbsp;= \chillerlan\QRCode\Common\Mode::HANZI </span>
  192. </dt>
  193. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  194. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_ENCODING">ENCODING</a>
  195. <span>
  196. &nbsp;= &#039;GB18030&#039; </span>
  197. </dt>
  198. <dd>possible values: GB2312, GB18030</dd>
  199. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  200. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_GB2312_SUBSET">GB2312_SUBSET</a>
  201. <span>
  202. &nbsp;= 0b1 </span>
  203. </dt>
  204. </dl>
  205. <h4 id="toc-properties">
  206. Properties
  207. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  208. </h4>
  209. <dl class="phpdocumentor-table-of-contents">
  210. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  211. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a>
  212. <span>
  213. &nbsp;: string </span>
  214. </dt>
  215. <dd>The data to write</dd>
  216. </dl>
  217. <h4 id="toc-methods">
  218. Methods
  219. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  220. </h4>
  221. <dl class="phpdocumentor-table-of-contents">
  222. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  223. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a>
  224. <span>
  225. &nbsp;: mixed </span>
  226. </dt>
  227. <dd>QRDataModeAbstract constructor.</dd>
  228. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  229. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#method_convertEncoding">convertEncoding()</a>
  230. <span>
  231. &nbsp;: string </span>
  232. </dt>
  233. <dd>encoding conversion helper</dd>
  234. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  235. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#method_decodeSegment">decodeSegment()</a>
  236. <span>
  237. &nbsp;: string </span>
  238. </dt>
  239. <dd>See specification GBT 18284-2000</dd>
  240. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  241. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getLengthInBits">getLengthInBits()</a>
  242. <span>
  243. &nbsp;: int </span>
  244. </dt>
  245. <dd>retruns the length in bits of the data string</dd>
  246. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  247. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#method_validateString">validateString()</a>
  248. <span>
  249. &nbsp;: bool </span>
  250. </dt>
  251. <dd>checks if a string qualifies as Hanzi/GB2312</dd>
  252. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  253. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#method_write">write()</a>
  254. <span>
  255. &nbsp;: static </span>
  256. </dt>
  257. <dd>writes the actual data string to the BitBuffer, uses the given version to determine the length bits</dd>
  258. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  259. <a class="" href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getCharCount">getCharCount()</a>
  260. <span>
  261. &nbsp;: int </span>
  262. </dt>
  263. <dd>returns the character count of the $data string</dd>
  264. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  265. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a>
  266. <span>
  267. &nbsp;: int </span>
  268. </dt>
  269. <dd>shortcut</dd>
  270. </dl>
  271. <section class="phpdocumentor-constants">
  272. <h3 class="phpdocumentor-elements__header" id="constants">
  273. Constants
  274. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  275. </h3>
  276. <article class="phpdocumentor-element -constant -public ">
  277. <h4 class="phpdocumentor-element__name" id="constant_DATAMODE">
  278. DATAMODE
  279. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_DATAMODE" class="headerlink"><i class="fas fa-link"></i></a>
  280. </h4>
  281. <aside class="phpdocumentor-element-found-in">
  282. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  283. :
  284. <span class="phpdocumentor-element-found-in__line">47</span>
  285. </aside>
  286. <code class="phpdocumentor-signature phpdocumentor-code ">
  287. <span class="phpdocumentor-signature__visibility">public</span>
  288. <span class="phpdocumentor-signature__type">mixed</span>
  289. <span class="phpdocumentor-signature__name">DATAMODE</span>
  290. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\Mode::HANZI</span>
  291. </code>
  292. </article>
  293. <article class="phpdocumentor-element -constant -public ">
  294. <h4 class="phpdocumentor-element__name" id="constant_ENCODING">
  295. ENCODING
  296. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_ENCODING" class="headerlink"><i class="fas fa-link"></i></a>
  297. </h4>
  298. <aside class="phpdocumentor-element-found-in">
  299. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  300. :
  301. <span class="phpdocumentor-element-found-in__line">38</span>
  302. </aside>
  303. <p class="phpdocumentor-summary">possible values: GB2312, GB18030</p>
  304. <code class="phpdocumentor-signature phpdocumentor-code ">
  305. <span class="phpdocumentor-signature__visibility">public</span>
  306. <span class="phpdocumentor-signature__type">string</span>
  307. <span class="phpdocumentor-signature__name">ENCODING</span>
  308. = <span class="phpdocumentor-signature__default-value">&#039;GB18030&#039;</span>
  309. </code>
  310. </article>
  311. <article class="phpdocumentor-element -constant -public ">
  312. <h4 class="phpdocumentor-element__name" id="constant_GB2312_SUBSET">
  313. GB2312_SUBSET
  314. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_GB2312_SUBSET" class="headerlink"><i class="fas fa-link"></i></a>
  315. </h4>
  316. <aside class="phpdocumentor-element-found-in">
  317. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  318. :
  319. <span class="phpdocumentor-element-found-in__line">45</span>
  320. </aside>
  321. <code class="phpdocumentor-signature phpdocumentor-code ">
  322. <span class="phpdocumentor-signature__visibility">public</span>
  323. <span class="phpdocumentor-signature__type">int</span>
  324. <span class="phpdocumentor-signature__name">GB2312_SUBSET</span>
  325. = <span class="phpdocumentor-signature__default-value">0b1</span>
  326. </code>
  327. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  328. Tags
  329. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_GB2312_SUBSET#tags" class="headerlink"><i class="fas fa-link"></i></a>
  330. </h5>
  331. <dl class="phpdocumentor-tag-list">
  332. <dt class="phpdocumentor-tag-list__entry">
  333. <span class="phpdocumentor-tag__name">todo:</span>
  334. </dt>
  335. <dd class="phpdocumentor-tag-list__definition">
  336. <section class="phpdocumentor-description"><p>other subsets???</p>
  337. </section>
  338. </dd>
  339. </dl>
  340. </article>
  341. </section>
  342. <section class="phpdocumentor-properties">
  343. <h3 class="phpdocumentor-elements__header" id="properties">
  344. Properties
  345. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  346. </h3>
  347. <article
  348. class="
  349. phpdocumentor-element
  350. -property
  351. -protected
  352. "
  353. >
  354. <h4 class="phpdocumentor-element__name" id="property_data">
  355. $data
  356. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data" class="headerlink"><i class="fas fa-link"></i></a>
  357. <span class="phpdocumentor-element__modifiers">
  358. </span>
  359. </h4>
  360. <aside class="phpdocumentor-element-found-in">
  361. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  362. :
  363. <span class="phpdocumentor-element-found-in__line">24</span>
  364. </aside>
  365. <p class="phpdocumentor-summary">The data to write</p>
  366. <code class="phpdocumentor-code phpdocumentor-signature ">
  367. <span class="phpdocumentor-signature__visibility">protected</span>
  368. <span class="phpdocumentor-signature__type">string</span>
  369. <span class="phpdocumentor-signature__name">$data</span>
  370. = <span class="phpdocumentor-signature__default-value">&#039;&#039;</span></code>
  371. </article>
  372. </section>
  373. <section class="phpdocumentor-methods">
  374. <h3 class="phpdocumentor-elements__header" id="methods">
  375. Methods
  376. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  377. </h3>
  378. <article
  379. class="phpdocumentor-element
  380. -method
  381. -public
  382. "
  383. >
  384. <h4 class="phpdocumentor-element__name" id="method___construct">
  385. __construct()
  386. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  387. </h4>
  388. <aside class="phpdocumentor-element-found-in">
  389. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  390. :
  391. <span class="phpdocumentor-element-found-in__line">31</span>
  392. </aside>
  393. <p class="phpdocumentor-summary">QRDataModeAbstract constructor.</p>
  394. <code class="phpdocumentor-code phpdocumentor-signature ">
  395. <span class="phpdocumentor-signature__visibility">public</span>
  396. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  397. <div class="phpdocumentor-label-line">
  398. </div>
  399. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  400. <dl class="phpdocumentor-argument-list">
  401. <dt class="phpdocumentor-argument-list__entry">
  402. <span class="phpdocumentor-signature__argument__name">$data</span>
  403. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  404. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  405. <dd class="phpdocumentor-argument-list__definition">
  406. </dd>
  407. </dl>
  408. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  409. Tags
  410. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  411. </h5>
  412. <dl class="phpdocumentor-tag-list">
  413. <dt class="phpdocumentor-tag-list__entry">
  414. <span class="phpdocumentor-tag__name">throws</span>
  415. </dt>
  416. <dd class="phpdocumentor-tag-list__definition">
  417. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  418. </dd>
  419. </dl>
  420. </article>
  421. <article
  422. class="phpdocumentor-element
  423. -method
  424. -public
  425. -static "
  426. >
  427. <h4 class="phpdocumentor-element__name" id="method_convertEncoding">
  428. convertEncoding()
  429. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_convertEncoding" class="headerlink"><i class="fas fa-link"></i></a>
  430. </h4>
  431. <aside class="phpdocumentor-element-found-in">
  432. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  433. :
  434. <span class="phpdocumentor-element-found-in__line">57</span>
  435. </aside>
  436. <p class="phpdocumentor-summary">encoding conversion helper</p>
  437. <code class="phpdocumentor-code phpdocumentor-signature ">
  438. <span class="phpdocumentor-signature__visibility">public</span>
  439. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">convertEncoding</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  440. <div class="phpdocumentor-label-line">
  441. </div>
  442. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  443. <dl class="phpdocumentor-argument-list">
  444. <dt class="phpdocumentor-argument-list__entry">
  445. <span class="phpdocumentor-signature__argument__name">$string</span>
  446. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  447. </dt>
  448. <dd class="phpdocumentor-argument-list__definition">
  449. </dd>
  450. </dl>
  451. <section>
  452. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  453. <span class="phpdocumentor-signature__response_type">string</span>
  454. </section>
  455. </article>
  456. <article
  457. class="phpdocumentor-element
  458. -method
  459. -public
  460. "
  461. >
  462. <h4 class="phpdocumentor-element__name" id="method_decodeSegment">
  463. decodeSegment()
  464. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_decodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  465. </h4>
  466. <aside class="phpdocumentor-element-found-in">
  467. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  468. :
  469. <span class="phpdocumentor-element-found-in__line">162</span>
  470. </aside>
  471. <p class="phpdocumentor-summary">See specification GBT 18284-2000</p>
  472. <code class="phpdocumentor-code phpdocumentor-signature ">
  473. <span class="phpdocumentor-signature__visibility">public</span>
  474. <span class="phpdocumentor-signature__name">decodeSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bitBuffer</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionNumber</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  475. <div class="phpdocumentor-label-line">
  476. </div>
  477. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  478. <dl class="phpdocumentor-argument-list">
  479. <dt class="phpdocumentor-argument-list__entry">
  480. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  481. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  482. </dt>
  483. <dd class="phpdocumentor-argument-list__definition">
  484. </dd>
  485. <dt class="phpdocumentor-argument-list__entry">
  486. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  487. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  488. </dt>
  489. <dd class="phpdocumentor-argument-list__definition">
  490. </dd>
  491. </dl>
  492. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  493. Tags
  494. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_decodeSegment#tags" class="headerlink"><i class="fas fa-link"></i></a>
  495. </h5>
  496. <dl class="phpdocumentor-tag-list">
  497. <dt class="phpdocumentor-tag-list__entry">
  498. <span class="phpdocumentor-tag__name">throws</span>
  499. </dt>
  500. <dd class="phpdocumentor-tag-list__definition">
  501. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  502. </dd>
  503. </dl>
  504. <section>
  505. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  506. <span class="phpdocumentor-signature__response_type">string</span>
  507. </section>
  508. </article>
  509. <article
  510. class="phpdocumentor-element
  511. -method
  512. -public
  513. "
  514. >
  515. <h4 class="phpdocumentor-element__name" id="method_getLengthInBits">
  516. getLengthInBits()
  517. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getLengthInBits" class="headerlink"><i class="fas fa-link"></i></a>
  518. </h4>
  519. <aside class="phpdocumentor-element-found-in">
  520. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  521. :
  522. <span class="phpdocumentor-element-found-in__line">53</span>
  523. </aside>
  524. <p class="phpdocumentor-summary">retruns the length in bits of the data string</p>
  525. <code class="phpdocumentor-code phpdocumentor-signature ">
  526. <span class="phpdocumentor-signature__visibility">public</span>
  527. <span class="phpdocumentor-signature__name">getLengthInBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  528. <div class="phpdocumentor-label-line">
  529. </div>
  530. <section>
  531. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  532. <span class="phpdocumentor-signature__response_type">int</span>
  533. </section>
  534. </article>
  535. <article
  536. class="phpdocumentor-element
  537. -method
  538. -public
  539. -static "
  540. >
  541. <h4 class="phpdocumentor-element__name" id="method_validateString">
  542. validateString()
  543. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_validateString" class="headerlink"><i class="fas fa-link"></i></a>
  544. </h4>
  545. <aside class="phpdocumentor-element-found-in">
  546. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  547. :
  548. <span class="phpdocumentor-element-found-in__line">85</span>
  549. </aside>
  550. <p class="phpdocumentor-summary">checks if a string qualifies as Hanzi/GB2312</p>
  551. <code class="phpdocumentor-code phpdocumentor-signature ">
  552. <span class="phpdocumentor-signature__visibility">public</span>
  553. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">validateString</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  554. <div class="phpdocumentor-label-line">
  555. </div>
  556. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  557. <dl class="phpdocumentor-argument-list">
  558. <dt class="phpdocumentor-argument-list__entry">
  559. <span class="phpdocumentor-signature__argument__name">$string</span>
  560. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  561. </dt>
  562. <dd class="phpdocumentor-argument-list__definition">
  563. </dd>
  564. </dl>
  565. <section>
  566. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  567. <span class="phpdocumentor-signature__response_type">bool</span>
  568. </section>
  569. </article>
  570. <article
  571. class="phpdocumentor-element
  572. -method
  573. -public
  574. "
  575. >
  576. <h4 class="phpdocumentor-element__name" id="method_write">
  577. write()
  578. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_write" class="headerlink"><i class="fas fa-link"></i></a>
  579. </h4>
  580. <aside class="phpdocumentor-element-found-in">
  581. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  582. :
  583. <span class="phpdocumentor-element-found-in__line">124</span>
  584. </aside>
  585. <p class="phpdocumentor-summary">writes the actual data string to the BitBuffer, uses the given version to determine the length bits</p>
  586. <code class="phpdocumentor-code phpdocumentor-signature ">
  587. <span class="phpdocumentor-signature__visibility">public</span>
  588. <span class="phpdocumentor-signature__name">write</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bitBuffer</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionNumber</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  589. <div class="phpdocumentor-label-line">
  590. </div>
  591. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  592. <dl class="phpdocumentor-argument-list">
  593. <dt class="phpdocumentor-argument-list__entry">
  594. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  595. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  596. </dt>
  597. <dd class="phpdocumentor-argument-list__definition">
  598. </dd>
  599. <dt class="phpdocumentor-argument-list__entry">
  600. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  601. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  602. </dt>
  603. <dd class="phpdocumentor-argument-list__definition">
  604. </dd>
  605. </dl>
  606. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  607. Tags
  608. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_write#tags" class="headerlink"><i class="fas fa-link"></i></a>
  609. </h5>
  610. <dl class="phpdocumentor-tag-list">
  611. <dt class="phpdocumentor-tag-list__entry">
  612. <span class="phpdocumentor-tag__name">inheritDoc</span>
  613. </dt>
  614. <dd class="phpdocumentor-tag-list__definition">
  615. </dd>
  616. <dt class="phpdocumentor-tag-list__entry">
  617. <span class="phpdocumentor-tag__name">throws</span>
  618. </dt>
  619. <dd class="phpdocumentor-tag-list__definition">
  620. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  621. <section class="phpdocumentor-description"><p>on an illegal character occurence</p>
  622. </section>
  623. </dd>
  624. </dl>
  625. <section>
  626. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  627. <span class="phpdocumentor-signature__response_type">static</span>
  628. </section>
  629. </article>
  630. <article
  631. class="phpdocumentor-element
  632. -method
  633. -protected
  634. "
  635. >
  636. <h4 class="phpdocumentor-element__name" id="method_getCharCount">
  637. getCharCount()
  638. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getCharCount" class="headerlink"><i class="fas fa-link"></i></a>
  639. </h4>
  640. <aside class="phpdocumentor-element-found-in">
  641. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Hanzi.php"><a href="files/src-data-hanzi.html"><abbr title="src/Data/Hanzi.php">Hanzi.php</abbr></a></abbr>
  642. :
  643. <span class="phpdocumentor-element-found-in__line">49</span>
  644. </aside>
  645. <p class="phpdocumentor-summary">returns the character count of the $data string</p>
  646. <code class="phpdocumentor-code phpdocumentor-signature ">
  647. <span class="phpdocumentor-signature__visibility">protected</span>
  648. <span class="phpdocumentor-signature__name">getCharCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  649. <div class="phpdocumentor-label-line">
  650. </div>
  651. <section>
  652. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  653. <span class="phpdocumentor-signature__response_type">int</span>
  654. </section>
  655. </article>
  656. <article
  657. class="phpdocumentor-element
  658. -method
  659. -protected
  660. "
  661. >
  662. <h4 class="phpdocumentor-element__name" id="method_getLengthBits">
  663. getLengthBits()
  664. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits" class="headerlink"><i class="fas fa-link"></i></a>
  665. </h4>
  666. <aside class="phpdocumentor-element-found-in">
  667. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  668. :
  669. <span class="phpdocumentor-element-found-in__line">59</span>
  670. </aside>
  671. <p class="phpdocumentor-summary">shortcut</p>
  672. <code class="phpdocumentor-code phpdocumentor-signature ">
  673. <span class="phpdocumentor-signature__visibility">protected</span>
  674. <span class="phpdocumentor-signature__name">getLengthBits</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionNumber</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  675. <div class="phpdocumentor-label-line">
  676. </div>
  677. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  678. <dl class="phpdocumentor-argument-list">
  679. <dt class="phpdocumentor-argument-list__entry">
  680. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  681. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  682. </dt>
  683. <dd class="phpdocumentor-argument-list__definition">
  684. </dd>
  685. </dl>
  686. <section>
  687. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  688. <span class="phpdocumentor-signature__response_type">int</span>
  689. </section>
  690. </article>
  691. </section>
  692. <div class="phpdocumentor-modal" id="source-view">
  693. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  694. <div class="phpdocumentor-modal-container">
  695. <div class="phpdocumentor-modal-content">
  696. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Data/Hanzi.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  697. </div>
  698. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  699. </div>
  700. </div>
  701. <script type="text/javascript">
  702. (function () {
  703. function loadExternalCodeSnippet(el, url, line) {
  704. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  705. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  706. const language = 'php';
  707. const code = document.createElement('code');
  708. code.className = 'language-' + language;
  709. pre.textContent = '';
  710. pre.setAttribute('data-line', line)
  711. code.textContent = 'Loading…';
  712. pre.appendChild(code);
  713. var xhr = new XMLHttpRequest();
  714. xhr.open('GET', src, true);
  715. xhr.onreadystatechange = function () {
  716. if (xhr.readyState !== 4) {
  717. return;
  718. }
  719. if (xhr.status < 400 && xhr.responseText) {
  720. code.textContent = xhr.responseText;
  721. Prism.highlightElement(code);
  722. d=document.getElementsByClassName("line-numbers");
  723. d[0].scrollTop = d[0].children[1].offsetTop;
  724. return;
  725. }
  726. if (xhr.status === 404) {
  727. code.textContent = '✖ Error: File could not be found';
  728. return;
  729. }
  730. if (xhr.status >= 400) {
  731. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  732. return;
  733. }
  734. code.textContent = '✖ Error: An unknown error occurred';
  735. };
  736. xhr.send(null);
  737. });
  738. }
  739. const modalButtons = document.querySelectorAll("[data-modal]");
  740. const openedAsLocalFile = window.location.protocol === 'file:';
  741. if (modalButtons.length > 0 && openedAsLocalFile) {
  742. console.warn(
  743. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  744. 'browsers block XHR requests when a page is opened this way'
  745. );
  746. }
  747. modalButtons.forEach(function (trigger) {
  748. if (openedAsLocalFile) {
  749. trigger.setAttribute("hidden", "hidden");
  750. }
  751. trigger.addEventListener("click", function (event) {
  752. event.preventDefault();
  753. const modal = document.getElementById(trigger.dataset.modal);
  754. if (!modal) {
  755. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  756. return;
  757. }
  758. modal.classList.add("phpdocumentor-modal__open");
  759. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  760. const exits = modal.querySelectorAll("[data-exit-button]");
  761. exits.forEach(function (exit) {
  762. exit.addEventListener("click", function (event) {
  763. event.preventDefault();
  764. modal.classList.remove("phpdocumentor-modal__open");
  765. });
  766. });
  767. });
  768. });
  769. })();
  770. </script>
  771. </article>
  772. </section>
  773. <section class="phpdocumentor-on-this-page__sidebar">
  774. <section class="phpdocumentor-on-this-page__content">
  775. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  776. <ul class="phpdocumentor-list -clean">
  777. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  778. <li>
  779. <ul class="phpdocumentor-list -clean">
  780. <li><a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc-constants">Constants</a></li>
  781. <li><a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc-properties">Properties</a></li>
  782. <li><a href="classes/chillerlan-QRCode-Data-Hanzi.html#toc-methods">Methods</a></li>
  783. </ul>
  784. </li>
  785. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  786. <li>
  787. <ul class="phpdocumentor-list -clean">
  788. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_DATAMODE">DATAMODE</a></li>
  789. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_ENCODING">ENCODING</a></li>
  790. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_GB2312_SUBSET">GB2312_SUBSET</a></li>
  791. </ul>
  792. </li>
  793. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  794. <li>
  795. <ul class="phpdocumentor-list -clean">
  796. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a></li>
  797. </ul>
  798. </li>
  799. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  800. <li>
  801. <ul class="phpdocumentor-list -clean">
  802. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a></li>
  803. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_convertEncoding">convertEncoding()</a></li>
  804. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_decodeSegment">decodeSegment()</a></li>
  805. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getLengthInBits">getLengthInBits()</a></li>
  806. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_validateString">validateString()</a></li>
  807. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_write">write()</a></li>
  808. <li class=""><a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getCharCount">getCharCount()</a></li>
  809. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a></li>
  810. </ul>
  811. </li>
  812. </ul>
  813. </section>
  814. </section>
  815. </div>
  816. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  817. <section class="phpdocumentor-search-results__dialog">
  818. <header class="phpdocumentor-search-results__header">
  819. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  820. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  821. </header>
  822. <section class="phpdocumentor-search-results__body">
  823. <ul class="phpdocumentor-search-results__entries"></ul>
  824. </section>
  825. </section>
  826. </section>
  827. </div>
  828. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  829. </main>
  830. <script>
  831. cssVars({});
  832. </script>
  833. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  834. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  835. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  836. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  837. </body>
  838. </html>