chillerlan-QRCode-Data-Hanzi.html 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  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=Source+Sans+Pro:wght@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/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  103. </ul>
  104. <article class="phpdocumentor-element -class">
  105. <h2 class="phpdocumentor-content__title">
  106. Hanzi
  107. <span class="phpdocumentor-element__extends">
  108. extends <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeAbstract">QRDataModeAbstract</abbr></a>
  109. </span>
  110. <div class="phpdocumentor-element__package">
  111. in package
  112. <ul class="phpdocumentor-breadcrumbs">
  113. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  114. </ul>
  115. </div>
  116. </h2>
  117. <aside class="phpdocumentor-element-found-in">
  118. <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>
  119. :
  120. <span class="phpdocumentor-element-found-in__line">31</span>
  121. </aside>
  122. <p class="phpdocumentor-summary">Hanzi (simplified Chinese) mode, GBT18284-2000: 13-bit double-byte characters from the GB2312/GB18030 character set</p>
  123. <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>
  124. </section>
  125. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  126. Tags
  127. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  128. </h5>
  129. <dl class="phpdocumentor-tag-list">
  130. <dt class="phpdocumentor-tag-list__entry">
  131. <span class="phpdocumentor-tag__name">see</span>
  132. </dt>
  133. <dd class="phpdocumentor-tag-list__definition">
  134. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/GB_2312"><abbr title="https://en.wikipedia.org/wiki/GB_2312">https://en.wikipedia.org/wiki/GB_2312</abbr></a></span>
  135. </dd>
  136. <dt class="phpdocumentor-tag-list__entry">
  137. <span class="phpdocumentor-tag__name">see</span>
  138. </dt>
  139. <dd class="phpdocumentor-tag-list__definition">
  140. <span class="phpdocumentor-tag-link"><a href="http://www.herongyang.com/GB2312/Introduction-of-GB2312.html"><abbr title="http://www.herongyang.com/GB2312/Introduction-of-GB2312.html">http://www.herongyang.com/GB2312/Introduction-of-GB2312.html</abbr></a></span>
  141. </dd>
  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/GBK_(character_encoding)#Encoding"><abbr title="https://en.wikipedia.org/wiki/GBK_(character_encoding)#Encoding">https://en.wikipedia.org/wiki/GBK_(character_encoding)#Encoding</abbr></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="https://gist.github.com/codemasher/91da33c44bfb48a81a6c1426bb8e4338"><abbr title="https://gist.github.com/codemasher/91da33c44bfb48a81a6c1426bb8e4338">https://gist.github.com/codemasher/91da33c44bfb48a81a6c1426bb8e4338</abbr></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://github.com/zxing/zxing/blob/dfb06fa33b17a9e68321be151c22846c7b78048f/core/src/main/java/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java#L172-L209"><abbr title="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</abbr></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://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000"><abbr title="https://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000">https://www.chinesestandard.net/PDF/English.aspx/GBT18284-2000</abbr></a></span>
  165. </dd>
  166. </dl>
  167. <h3 id="toc">
  168. Table of Contents
  169. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  170. </h3>
  171. <dl class="phpdocumentor-table-of-contents">
  172. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  173. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_DATAMODE">DATAMODE</a>
  174. <span>
  175. &nbsp;= \chillerlan\QRCode\Common\Mode::HANZI </span>
  176. </dt>
  177. <dd></dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  179. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_ENCODING">ENCODING</a>
  180. <span>
  181. &nbsp;= &#039;GB18030&#039; </span>
  182. </dt>
  183. <dd>possible values: GB2312, GB18030</dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  185. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_GB2312_SUBSET">GB2312_SUBSET</a>
  186. <span>
  187. &nbsp;= 0b1 </span>
  188. </dt>
  189. <dd></dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  191. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a>
  192. <span>
  193. &nbsp;: string </span>
  194. </dt>
  195. <dd>The data to write</dd>
  196. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  197. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a>
  198. <span>
  199. &nbsp;: mixed </span>
  200. </dt>
  201. <dd>QRDataModeAbstract constructor.</dd>
  202. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  203. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_convertEncoding">convertEncoding()</a>
  204. <span>
  205. &nbsp;: string </span>
  206. </dt>
  207. <dd>encoding conversion helper</dd>
  208. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  209. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_decodeSegment">decodeSegment()</a>
  210. <span>
  211. &nbsp;: string </span>
  212. </dt>
  213. <dd>See specification GBT 18284-2000</dd>
  214. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  215. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getLengthInBits">getLengthInBits()</a>
  216. <span>
  217. &nbsp;: int </span>
  218. </dt>
  219. <dd></dd>
  220. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  221. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_validateString">validateString()</a>
  222. <span>
  223. &nbsp;: bool </span>
  224. </dt>
  225. <dd>checks if a string qualifies as Hanzi/GB2312</dd>
  226. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  227. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_write">write()</a>
  228. <span>
  229. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  230. </dt>
  231. <dd></dd>
  232. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  233. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getCharCount">getCharCount()</a>
  234. <span>
  235. &nbsp;: int </span>
  236. </dt>
  237. <dd>returns the character count of the $data string</dd>
  238. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  239. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a>
  240. <span>
  241. &nbsp;: int </span>
  242. </dt>
  243. <dd>shortcut</dd>
  244. </dl>
  245. <section class="phpdocumentor-constants">
  246. <h3 class="phpdocumentor-elements__header" id="constants">
  247. Constants
  248. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  249. </h3>
  250. <article class="phpdocumentor-element -constant -public ">
  251. <h4 class="phpdocumentor-element__name" id="constant_DATAMODE">
  252. DATAMODE
  253. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_DATAMODE" class="headerlink"><i class="fas fa-link"></i></a>
  254. </h4>
  255. <aside class="phpdocumentor-element-found-in">
  256. <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>
  257. :
  258. <span class="phpdocumentor-element-found-in__line">50</span>
  259. </aside>
  260. <code class="phpdocumentor-signature phpdocumentor-code ">
  261. <span class="phpdocumentor-signature__visibility">public</span>
  262. <span class="phpdocumentor-signature__type">mixed</span>
  263. <span class="phpdocumentor-signature__name">DATAMODE</span>
  264. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\Mode::HANZI</span>
  265. </code>
  266. <section class="phpdocumentor-description"></section>
  267. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  268. Tags
  269. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  270. </h5>
  271. <dl class="phpdocumentor-tag-list">
  272. <dt class="phpdocumentor-tag-list__entry">
  273. <span class="phpdocumentor-tag__name">inheritDoc</span>
  274. </dt>
  275. <dd class="phpdocumentor-tag-list__definition">
  276. </dd>
  277. </dl>
  278. </article>
  279. <article class="phpdocumentor-element -constant -public ">
  280. <h4 class="phpdocumentor-element__name" id="constant_ENCODING">
  281. ENCODING
  282. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_ENCODING" class="headerlink"><i class="fas fa-link"></i></a>
  283. </h4>
  284. <aside class="phpdocumentor-element-found-in">
  285. <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>
  286. :
  287. <span class="phpdocumentor-element-found-in__line">38</span>
  288. </aside>
  289. <p class="phpdocumentor-summary">possible values: GB2312, GB18030</p>
  290. <code class="phpdocumentor-signature phpdocumentor-code ">
  291. <span class="phpdocumentor-signature__visibility">public</span>
  292. <span class="phpdocumentor-signature__type">string</span>
  293. <span class="phpdocumentor-signature__name">ENCODING</span>
  294. = <span class="phpdocumentor-signature__default-value">&#039;GB18030&#039;</span>
  295. </code>
  296. </article>
  297. <article class="phpdocumentor-element -constant -public ">
  298. <h4 class="phpdocumentor-element__name" id="constant_GB2312_SUBSET">
  299. GB2312_SUBSET
  300. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#constant_GB2312_SUBSET" class="headerlink"><i class="fas fa-link"></i></a>
  301. </h4>
  302. <aside class="phpdocumentor-element-found-in">
  303. <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>
  304. :
  305. <span class="phpdocumentor-element-found-in__line">45</span>
  306. </aside>
  307. <code class="phpdocumentor-signature phpdocumentor-code ">
  308. <span class="phpdocumentor-signature__visibility">public</span>
  309. <span class="phpdocumentor-signature__type">int</span>
  310. <span class="phpdocumentor-signature__name">GB2312_SUBSET</span>
  311. = <span class="phpdocumentor-signature__default-value">0b1</span>
  312. </code>
  313. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  314. Tags
  315. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  316. </h5>
  317. <dl class="phpdocumentor-tag-list">
  318. <dt class="phpdocumentor-tag-list__entry">
  319. <span class="phpdocumentor-tag__name">todo:</span>
  320. </dt>
  321. <dd class="phpdocumentor-tag-list__definition">
  322. <section class="phpdocumentor-description"><p>other subsets???</p>
  323. </section>
  324. </dd>
  325. </dl>
  326. </article>
  327. </section>
  328. <section class="phpdocumentor-properties">
  329. <h3 class="phpdocumentor-elements__header" id="properties">
  330. Properties
  331. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  332. </h3>
  333. <article
  334. class="
  335. phpdocumentor-element
  336. -property
  337. -protected
  338. "
  339. >
  340. <h4 class="phpdocumentor-element__name" id="property_data">
  341. $data
  342. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data" class="headerlink"><i class="fas fa-link"></i></a>
  343. <span class="phpdocumentor-element__modifiers">
  344. </span>
  345. </h4>
  346. <aside class="phpdocumentor-element-found-in">
  347. <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>
  348. :
  349. <span class="phpdocumentor-element-found-in__line">23</span>
  350. </aside>
  351. <p class="phpdocumentor-summary">The data to write</p>
  352. <code class="phpdocumentor-code phpdocumentor-signature ">
  353. <span class="phpdocumentor-signature__visibility">protected</span>
  354. <span class="phpdocumentor-signature__type">string</span>
  355. <span class="phpdocumentor-signature__name">$data</span>
  356. </code>
  357. <section class="phpdocumentor-description"></section>
  358. </article>
  359. </section>
  360. <section class="phpdocumentor-methods">
  361. <h3 class="phpdocumentor-elements__header" id="methods">
  362. Methods
  363. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  364. </h3>
  365. <article
  366. class="phpdocumentor-element
  367. -method
  368. -public
  369. "
  370. >
  371. <h4 class="phpdocumentor-element__name" id="method___construct">
  372. __construct()
  373. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <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>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">30</span>
  379. </aside>
  380. <p class="phpdocumentor-summary">QRDataModeAbstract constructor.</p>
  381. <code class="phpdocumentor-code phpdocumentor-signature ">
  382. <span class="phpdocumentor-signature__visibility">public</span>
  383. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  384. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  385. <dl class="phpdocumentor-argument-list">
  386. <dt class="phpdocumentor-argument-list__entry">
  387. <span class="phpdocumentor-signature__argument__name">$data</span>
  388. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  389. </dt>
  390. <dd class="phpdocumentor-argument-list__definition">
  391. <section class="phpdocumentor-description"></section>
  392. </dd>
  393. </dl>
  394. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  395. Tags
  396. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  397. </h5>
  398. <dl class="phpdocumentor-tag-list">
  399. <dt class="phpdocumentor-tag-list__entry">
  400. <span class="phpdocumentor-tag__name">throws</span>
  401. </dt>
  402. <dd class="phpdocumentor-tag-list__definition">
  403. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  404. </dd>
  405. </dl>
  406. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  407. <span class="phpdocumentor-signature__response_type">mixed</span>
  408. &mdash;
  409. </article>
  410. <article
  411. class="phpdocumentor-element
  412. -method
  413. -public
  414. -static "
  415. >
  416. <h4 class="phpdocumentor-element__name" id="method_convertEncoding">
  417. convertEncoding()
  418. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_convertEncoding" class="headerlink"><i class="fas fa-link"></i></a>
  419. </h4>
  420. <aside class="phpdocumentor-element-found-in">
  421. <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>
  422. :
  423. <span class="phpdocumentor-element-found-in__line">69</span>
  424. </aside>
  425. <p class="phpdocumentor-summary">encoding conversion helper</p>
  426. <code class="phpdocumentor-code phpdocumentor-signature ">
  427. <span class="phpdocumentor-signature__visibility">public</span>
  428. <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>
  429. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  430. <dl class="phpdocumentor-argument-list">
  431. <dt class="phpdocumentor-argument-list__entry">
  432. <span class="phpdocumentor-signature__argument__name">$string</span>
  433. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  434. </dt>
  435. <dd class="phpdocumentor-argument-list__definition">
  436. <section class="phpdocumentor-description"></section>
  437. </dd>
  438. </dl>
  439. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  440. Tags
  441. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  442. </h5>
  443. <dl class="phpdocumentor-tag-list">
  444. <dt class="phpdocumentor-tag-list__entry">
  445. <span class="phpdocumentor-tag__name">inheritDoc</span>
  446. </dt>
  447. <dd class="phpdocumentor-tag-list__definition">
  448. </dd>
  449. </dl>
  450. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  451. <span class="phpdocumentor-signature__response_type">string</span>
  452. &mdash;
  453. </article>
  454. <article
  455. class="phpdocumentor-element
  456. -method
  457. -public
  458. -static "
  459. >
  460. <h4 class="phpdocumentor-element__name" id="method_decodeSegment">
  461. decodeSegment()
  462. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_decodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  463. </h4>
  464. <aside class="phpdocumentor-element-found-in">
  465. <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>
  466. :
  467. <span class="phpdocumentor-element-found-in__line">171</span>
  468. </aside>
  469. <p class="phpdocumentor-summary">See specification GBT 18284-2000</p>
  470. <code class="phpdocumentor-code phpdocumentor-signature ">
  471. <span class="phpdocumentor-signature__visibility">public</span>
  472. <span class="phpdocumentor-signature__static">static</span> <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>
  473. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  474. <dl class="phpdocumentor-argument-list">
  475. <dt class="phpdocumentor-argument-list__entry">
  476. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  477. : <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>
  478. </dt>
  479. <dd class="phpdocumentor-argument-list__definition">
  480. <section class="phpdocumentor-description"></section>
  481. </dd>
  482. <dt class="phpdocumentor-argument-list__entry">
  483. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  484. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  485. </dt>
  486. <dd class="phpdocumentor-argument-list__definition">
  487. <section class="phpdocumentor-description"></section>
  488. </dd>
  489. </dl>
  490. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  491. Tags
  492. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  493. </h5>
  494. <dl class="phpdocumentor-tag-list">
  495. <dt class="phpdocumentor-tag-list__entry">
  496. <span class="phpdocumentor-tag__name">throws</span>
  497. </dt>
  498. <dd class="phpdocumentor-tag-list__definition">
  499. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  500. </dd>
  501. </dl>
  502. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  503. <span class="phpdocumentor-signature__response_type">string</span>
  504. &mdash;
  505. </article>
  506. <article
  507. class="phpdocumentor-element
  508. -method
  509. -public
  510. "
  511. >
  512. <h4 class="phpdocumentor-element__name" id="method_getLengthInBits">
  513. getLengthInBits()
  514. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_getLengthInBits" class="headerlink"><i class="fas fa-link"></i></a>
  515. </h4>
  516. <aside class="phpdocumentor-element-found-in">
  517. <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>
  518. :
  519. <span class="phpdocumentor-element-found-in__line">62</span>
  520. </aside>
  521. <code class="phpdocumentor-code phpdocumentor-signature ">
  522. <span class="phpdocumentor-signature__visibility">public</span>
  523. <span class="phpdocumentor-signature__name">getLengthInBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  524. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  525. Tags
  526. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  527. </h5>
  528. <dl class="phpdocumentor-tag-list">
  529. <dt class="phpdocumentor-tag-list__entry">
  530. <span class="phpdocumentor-tag__name">inheritDoc</span>
  531. </dt>
  532. <dd class="phpdocumentor-tag-list__definition">
  533. </dd>
  534. </dl>
  535. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  536. <span class="phpdocumentor-signature__response_type">int</span>
  537. &mdash;
  538. </article>
  539. <article
  540. class="phpdocumentor-element
  541. -method
  542. -public
  543. -static "
  544. >
  545. <h4 class="phpdocumentor-element__name" id="method_validateString">
  546. validateString()
  547. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_validateString" class="headerlink"><i class="fas fa-link"></i></a>
  548. </h4>
  549. <aside class="phpdocumentor-element-found-in">
  550. <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>
  551. :
  552. <span class="phpdocumentor-element-found-in__line">94</span>
  553. </aside>
  554. <p class="phpdocumentor-summary">checks if a string qualifies as Hanzi/GB2312</p>
  555. <code class="phpdocumentor-code phpdocumentor-signature ">
  556. <span class="phpdocumentor-signature__visibility">public</span>
  557. <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>
  558. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  559. <dl class="phpdocumentor-argument-list">
  560. <dt class="phpdocumentor-argument-list__entry">
  561. <span class="phpdocumentor-signature__argument__name">$string</span>
  562. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  563. </dt>
  564. <dd class="phpdocumentor-argument-list__definition">
  565. <section class="phpdocumentor-description"></section>
  566. </dd>
  567. </dl>
  568. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  569. <span class="phpdocumentor-signature__response_type">bool</span>
  570. &mdash;
  571. </article>
  572. <article
  573. class="phpdocumentor-element
  574. -method
  575. -public
  576. "
  577. >
  578. <h4 class="phpdocumentor-element__name" id="method_write">
  579. write()
  580. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#method_write" class="headerlink"><i class="fas fa-link"></i></a>
  581. </h4>
  582. <aside class="phpdocumentor-element-found-in">
  583. <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>
  584. :
  585. <span class="phpdocumentor-element-found-in__line">133</span>
  586. </aside>
  587. <code class="phpdocumentor-code phpdocumentor-signature ">
  588. <span class="phpdocumentor-signature__visibility">public</span>
  589. <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"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span></code>
  590. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  591. <dl class="phpdocumentor-argument-list">
  592. <dt class="phpdocumentor-argument-list__entry">
  593. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  594. : <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>
  595. </dt>
  596. <dd class="phpdocumentor-argument-list__definition">
  597. <section class="phpdocumentor-description"></section>
  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. <section class="phpdocumentor-description"></section>
  605. </dd>
  606. </dl>
  607. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  608. Tags
  609. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  610. </h5>
  611. <dl class="phpdocumentor-tag-list">
  612. <dt class="phpdocumentor-tag-list__entry">
  613. <span class="phpdocumentor-tag__name">inheritDoc</span>
  614. </dt>
  615. <dd class="phpdocumentor-tag-list__definition">
  616. </dd>
  617. <dt class="phpdocumentor-tag-list__entry">
  618. <span class="phpdocumentor-tag__name">throws</span>
  619. </dt>
  620. <dd class="phpdocumentor-tag-list__definition">
  621. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  622. <section class="phpdocumentor-description"><p>on an illegal character occurence</p>
  623. </section>
  624. </dd>
  625. </dl>
  626. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  627. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  628. &mdash;
  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">55</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. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  650. Tags
  651. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  652. </h5>
  653. <dl class="phpdocumentor-tag-list">
  654. <dt class="phpdocumentor-tag-list__entry">
  655. <span class="phpdocumentor-tag__name">inheritDoc</span>
  656. </dt>
  657. <dd class="phpdocumentor-tag-list__definition">
  658. </dd>
  659. </dl>
  660. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  661. <span class="phpdocumentor-signature__response_type">int</span>
  662. &mdash;
  663. </article>
  664. <article
  665. class="phpdocumentor-element
  666. -method
  667. -protected
  668. -static "
  669. >
  670. <h4 class="phpdocumentor-element__name" id="method_getLengthBits">
  671. getLengthBits()
  672. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits" class="headerlink"><i class="fas fa-link"></i></a>
  673. </h4>
  674. <aside class="phpdocumentor-element-found-in">
  675. <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>
  676. :
  677. <span class="phpdocumentor-element-found-in__line">57</span>
  678. </aside>
  679. <p class="phpdocumentor-summary">shortcut</p>
  680. <code class="phpdocumentor-code phpdocumentor-signature ">
  681. <span class="phpdocumentor-signature__visibility">protected</span>
  682. <span class="phpdocumentor-signature__static">static</span> <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>
  683. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  684. <dl class="phpdocumentor-argument-list">
  685. <dt class="phpdocumentor-argument-list__entry">
  686. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  687. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  688. </dt>
  689. <dd class="phpdocumentor-argument-list__definition">
  690. <section class="phpdocumentor-description"></section>
  691. </dd>
  692. </dl>
  693. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  694. <span class="phpdocumentor-signature__response_type">int</span>
  695. &mdash;
  696. </article>
  697. </section>
  698. <script type="text/javascript">
  699. function loadExternalCodeSnippets(line) {
  700. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  701. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  702. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  703. var language = 'php';
  704. var code = document.createElement('code');
  705. code.className = 'language-' + language;
  706. pre.textContent = '';
  707. pre.setAttribute('data-line', line)
  708. code.textContent = 'Loading…';
  709. pre.appendChild(code);
  710. var xhr = new XMLHttpRequest();
  711. xhr.open('GET', src, true);
  712. xhr.onreadystatechange = function () {
  713. if (xhr.readyState == 4) {
  714. if (xhr.status < 400 && xhr.responseText) {
  715. code.textContent = xhr.responseText;
  716. Prism.highlightElement(code);
  717. }
  718. else if (xhr.status >= 400) {
  719. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  720. }
  721. else {
  722. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  723. }
  724. }
  725. };
  726. xhr.send(null);
  727. });
  728. }
  729. var modals = document.querySelectorAll("[data-modal]");
  730. modals.forEach(function (trigger) {
  731. trigger.addEventListener("click", function (event) {
  732. //event.preventDefault();
  733. const modal = document.getElementById(trigger.dataset.modal);
  734. modal.classList.add("phpdocumentor-modal__open");
  735. loadExternalCodeSnippets(trigger.dataset.line)
  736. const exits = modal.querySelectorAll("[data-exit-button]");
  737. exits.forEach(function (exit) {
  738. exit.addEventListener("click", function (event) {
  739. event.preventDefault();
  740. modal.classList.remove("phpdocumentor-modal__open");
  741. });
  742. });
  743. });
  744. });
  745. </script>
  746. </article>
  747. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  748. <section class="phpdocumentor-search-results__dialog">
  749. <header class="phpdocumentor-search-results__header">
  750. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  751. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  752. </header>
  753. <section class="phpdocumentor-search-results__body">
  754. <ul class="phpdocumentor-search-results__entries"></ul>
  755. </section>
  756. </section>
  757. </section>
  758. </div>
  759. </div>
  760. <a href="classes/chillerlan-QRCode-Data-Hanzi.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  761. </main>
  762. <script>
  763. cssVars({});
  764. </script>
  765. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  766. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  767. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  768. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  769. </body>
  770. </html>