chillerlan-QRCode-Data-Kanji.html 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  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. Kanji
  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/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">29</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">Kanji mode: 13-bit double-byte characters from the Shift-JIS character set</p>
  135. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 8.3.5
  136. ISO/IEC 18004:2000 Section 8.4.5</p>
  137. </section>
  138. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  139. Tags
  140. <a href="classes/chillerlan-QRCode-Data-Kanji.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  141. </h5>
  142. <dl class="phpdocumentor-tag-list">
  143. <dt class="phpdocumentor-tag-list__entry">
  144. <span class="phpdocumentor-tag__name">see</span>
  145. </dt>
  146. <dd class="phpdocumentor-tag-list__definition">
  147. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/Shift_JIS#As_defined_in_JIS_X_0208:1997">https://en.wikipedia.org/wiki/Shift_JIS#As_defined_in_JIS_X_0208:1997</a></span>
  148. </dd>
  149. <dt class="phpdocumentor-tag-list__entry">
  150. <span class="phpdocumentor-tag__name">see</span>
  151. </dt>
  152. <dd class="phpdocumentor-tag-list__definition">
  153. <span class="phpdocumentor-tag-link"><a href="http://www.rikai.com/library/kanjitables/kanji_codes.sjis.shtml">http://www.rikai.com/library/kanjitables/kanji_codes.sjis.shtml</a></span>
  154. </dd>
  155. <dt class="phpdocumentor-tag-list__entry">
  156. <span class="phpdocumentor-tag__name">see</span>
  157. </dt>
  158. <dd class="phpdocumentor-tag-list__definition">
  159. <span class="phpdocumentor-tag-link"><a href="https://gist.github.com/codemasher/d07d3e6e9346c08e7a41b8b978784952">https://gist.github.com/codemasher/d07d3e6e9346c08e7a41b8b978784952</a></span>
  160. </dd>
  161. </dl>
  162. <h3 id="toc">
  163. Table of Contents
  164. <a href="classes/chillerlan-QRCode-Data-Kanji.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  165. </h3>
  166. <h4 id="toc-constants">
  167. Constants
  168. <a href="classes/chillerlan-QRCode-Data-Kanji.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  169. </h4>
  170. <dl class="phpdocumentor-table-of-contents">
  171. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  172. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#constant_DATAMODE">DATAMODE</a>
  173. <span>
  174. &nbsp;= \chillerlan\QRCode\Common\Mode::KANJI </span>
  175. </dt>
  176. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  177. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#constant_ENCODING">ENCODING</a>
  178. <span>
  179. &nbsp;= &#039;SJIS&#039; </span>
  180. </dt>
  181. <dd>possible values: SJIS, SJIS-2004</dd>
  182. </dl>
  183. <h4 id="toc-properties">
  184. Properties
  185. <a href="classes/chillerlan-QRCode-Data-Kanji.html#toc-properties" 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 -property -protected">
  189. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a>
  190. <span>
  191. &nbsp;: string </span>
  192. </dt>
  193. <dd>The data to write</dd>
  194. </dl>
  195. <h4 id="toc-methods">
  196. Methods
  197. <a href="classes/chillerlan-QRCode-Data-Kanji.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  198. </h4>
  199. <dl class="phpdocumentor-table-of-contents">
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a>
  202. <span>
  203. &nbsp;: mixed </span>
  204. </dt>
  205. <dd>QRDataModeAbstract constructor.</dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  207. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#method_convertEncoding">convertEncoding()</a>
  208. <span>
  209. &nbsp;: string </span>
  210. </dt>
  211. <dd>encoding conversion helper</dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  213. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#method_decodeSegment">decodeSegment()</a>
  214. <span>
  215. &nbsp;: string </span>
  216. </dt>
  217. <dd>reads a segment from the BitBuffer and decodes in the current data mode</dd>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  219. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#method_getLengthInBits">getLengthInBits()</a>
  220. <span>
  221. &nbsp;: int </span>
  222. </dt>
  223. <dd>retruns the length in bits of the data string</dd>
  224. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  225. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#method_validateString">validateString()</a>
  226. <span>
  227. &nbsp;: bool </span>
  228. </dt>
  229. <dd>checks if a string qualifies as SJIS Kanji</dd>
  230. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  231. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#method_write">write()</a>
  232. <span>
  233. &nbsp;: static </span>
  234. </dt>
  235. <dd>writes the actual data string to the BitBuffer, uses the given version to determine the length bits</dd>
  236. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  237. <a class="" href="classes/chillerlan-QRCode-Data-Kanji.html#method_getCharCount">getCharCount()</a>
  238. <span>
  239. &nbsp;: int </span>
  240. </dt>
  241. <dd>returns the character count of the $data string</dd>
  242. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  243. <a class="" href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a>
  244. <span>
  245. &nbsp;: int </span>
  246. </dt>
  247. <dd>shortcut</dd>
  248. </dl>
  249. <section class="phpdocumentor-constants">
  250. <h3 class="phpdocumentor-elements__header" id="constants">
  251. Constants
  252. <a href="classes/chillerlan-QRCode-Data-Kanji.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  253. </h3>
  254. <article class="phpdocumentor-element -constant -public ">
  255. <h4 class="phpdocumentor-element__name" id="constant_DATAMODE">
  256. DATAMODE
  257. <a href="classes/chillerlan-QRCode-Data-Kanji.html#constant_DATAMODE" class="headerlink"><i class="fas fa-link"></i></a>
  258. </h4>
  259. <aside class="phpdocumentor-element-found-in">
  260. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  261. :
  262. <span class="phpdocumentor-element-found-in__line">40</span>
  263. </aside>
  264. <code class="phpdocumentor-signature phpdocumentor-code ">
  265. <span class="phpdocumentor-signature__visibility">public</span>
  266. <span class="phpdocumentor-signature__type">mixed</span>
  267. <span class="phpdocumentor-signature__name">DATAMODE</span>
  268. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\Mode::KANJI</span>
  269. </code>
  270. </article>
  271. <article class="phpdocumentor-element -constant -public ">
  272. <h4 class="phpdocumentor-element__name" id="constant_ENCODING">
  273. ENCODING
  274. <a href="classes/chillerlan-QRCode-Data-Kanji.html#constant_ENCODING" class="headerlink"><i class="fas fa-link"></i></a>
  275. </h4>
  276. <aside class="phpdocumentor-element-found-in">
  277. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  278. :
  279. <span class="phpdocumentor-element-found-in__line">38</span>
  280. </aside>
  281. <p class="phpdocumentor-summary">possible values: SJIS, SJIS-2004</p>
  282. <code class="phpdocumentor-signature phpdocumentor-code ">
  283. <span class="phpdocumentor-signature__visibility">public</span>
  284. <span class="phpdocumentor-signature__type">string</span>
  285. <span class="phpdocumentor-signature__name">ENCODING</span>
  286. = <span class="phpdocumentor-signature__default-value">&#039;SJIS&#039;</span>
  287. </code>
  288. <section class="phpdocumentor-description"><p>SJIS-2004 may produce errors in PHP &lt; 8</p>
  289. </section>
  290. </article>
  291. </section>
  292. <section class="phpdocumentor-properties">
  293. <h3 class="phpdocumentor-elements__header" id="properties">
  294. Properties
  295. <a href="classes/chillerlan-QRCode-Data-Kanji.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  296. </h3>
  297. <article
  298. class="
  299. phpdocumentor-element
  300. -property
  301. -protected
  302. "
  303. >
  304. <h4 class="phpdocumentor-element__name" id="property_data">
  305. $data
  306. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data" class="headerlink"><i class="fas fa-link"></i></a>
  307. <span class="phpdocumentor-element__modifiers">
  308. </span>
  309. </h4>
  310. <aside class="phpdocumentor-element-found-in">
  311. <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>
  312. :
  313. <span class="phpdocumentor-element-found-in__line">24</span>
  314. </aside>
  315. <p class="phpdocumentor-summary">The data to write</p>
  316. <code class="phpdocumentor-code phpdocumentor-signature ">
  317. <span class="phpdocumentor-signature__visibility">protected</span>
  318. <span class="phpdocumentor-signature__type">string</span>
  319. <span class="phpdocumentor-signature__name">$data</span>
  320. = <span class="phpdocumentor-signature__default-value">&#039;&#039;</span></code>
  321. </article>
  322. </section>
  323. <section class="phpdocumentor-methods">
  324. <h3 class="phpdocumentor-elements__header" id="methods">
  325. Methods
  326. <a href="classes/chillerlan-QRCode-Data-Kanji.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  327. </h3>
  328. <article
  329. class="phpdocumentor-element
  330. -method
  331. -public
  332. "
  333. >
  334. <h4 class="phpdocumentor-element__name" id="method___construct">
  335. __construct()
  336. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  337. </h4>
  338. <aside class="phpdocumentor-element-found-in">
  339. <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>
  340. :
  341. <span class="phpdocumentor-element-found-in__line">31</span>
  342. </aside>
  343. <p class="phpdocumentor-summary">QRDataModeAbstract constructor.</p>
  344. <code class="phpdocumentor-code phpdocumentor-signature ">
  345. <span class="phpdocumentor-signature__visibility">public</span>
  346. <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>
  347. <div class="phpdocumentor-label-line">
  348. </div>
  349. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  350. <dl class="phpdocumentor-argument-list">
  351. <dt class="phpdocumentor-argument-list__entry">
  352. <span class="phpdocumentor-signature__argument__name">$data</span>
  353. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  354. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  355. <dd class="phpdocumentor-argument-list__definition">
  356. </dd>
  357. </dl>
  358. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  359. Tags
  360. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  361. </h5>
  362. <dl class="phpdocumentor-tag-list">
  363. <dt class="phpdocumentor-tag-list__entry">
  364. <span class="phpdocumentor-tag__name">throws</span>
  365. </dt>
  366. <dd class="phpdocumentor-tag-list__definition">
  367. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  368. </dd>
  369. </dl>
  370. </article>
  371. <article
  372. class="phpdocumentor-element
  373. -method
  374. -public
  375. -static "
  376. >
  377. <h4 class="phpdocumentor-element__name" id="method_convertEncoding">
  378. convertEncoding()
  379. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_convertEncoding" class="headerlink"><i class="fas fa-link"></i></a>
  380. </h4>
  381. <aside class="phpdocumentor-element-found-in">
  382. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  383. :
  384. <span class="phpdocumentor-element-found-in__line">50</span>
  385. </aside>
  386. <p class="phpdocumentor-summary">encoding conversion helper</p>
  387. <code class="phpdocumentor-code phpdocumentor-signature ">
  388. <span class="phpdocumentor-signature__visibility">public</span>
  389. <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>
  390. <div class="phpdocumentor-label-line">
  391. </div>
  392. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  393. <dl class="phpdocumentor-argument-list">
  394. <dt class="phpdocumentor-argument-list__entry">
  395. <span class="phpdocumentor-signature__argument__name">$string</span>
  396. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  397. </dt>
  398. <dd class="phpdocumentor-argument-list__definition">
  399. </dd>
  400. </dl>
  401. <section>
  402. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  403. <span class="phpdocumentor-signature__response_type">string</span>
  404. </section>
  405. </article>
  406. <article
  407. class="phpdocumentor-element
  408. -method
  409. -public
  410. "
  411. >
  412. <h4 class="phpdocumentor-element__name" id="method_decodeSegment">
  413. decodeSegment()
  414. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_decodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  415. </h4>
  416. <aside class="phpdocumentor-element-found-in">
  417. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  418. :
  419. <span class="phpdocumentor-element-found-in__line">149</span>
  420. </aside>
  421. <p class="phpdocumentor-summary">reads a segment from the BitBuffer and decodes in the current data mode</p>
  422. <code class="phpdocumentor-code phpdocumentor-signature ">
  423. <span class="phpdocumentor-signature__visibility">public</span>
  424. <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>
  425. <div class="phpdocumentor-label-line">
  426. </div>
  427. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  428. <dl class="phpdocumentor-argument-list">
  429. <dt class="phpdocumentor-argument-list__entry">
  430. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  431. : <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>
  432. </dt>
  433. <dd class="phpdocumentor-argument-list__definition">
  434. </dd>
  435. <dt class="phpdocumentor-argument-list__entry">
  436. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  437. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  438. </dt>
  439. <dd class="phpdocumentor-argument-list__definition">
  440. </dd>
  441. </dl>
  442. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  443. Tags
  444. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_decodeSegment#tags" class="headerlink"><i class="fas fa-link"></i></a>
  445. </h5>
  446. <dl class="phpdocumentor-tag-list">
  447. <dt class="phpdocumentor-tag-list__entry">
  448. <span class="phpdocumentor-tag__name">inheritDoc</span>
  449. </dt>
  450. <dd class="phpdocumentor-tag-list__definition">
  451. </dd>
  452. <dt class="phpdocumentor-tag-list__entry">
  453. <span class="phpdocumentor-tag__name">throws</span>
  454. </dt>
  455. <dd class="phpdocumentor-tag-list__definition">
  456. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  457. </dd>
  458. </dl>
  459. <section>
  460. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  461. <span class="phpdocumentor-signature__response_type">string</span>
  462. </section>
  463. </article>
  464. <article
  465. class="phpdocumentor-element
  466. -method
  467. -public
  468. "
  469. >
  470. <h4 class="phpdocumentor-element__name" id="method_getLengthInBits">
  471. getLengthInBits()
  472. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_getLengthInBits" class="headerlink"><i class="fas fa-link"></i></a>
  473. </h4>
  474. <aside class="phpdocumentor-element-found-in">
  475. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  476. :
  477. <span class="phpdocumentor-element-found-in__line">46</span>
  478. </aside>
  479. <p class="phpdocumentor-summary">retruns the length in bits of the data string</p>
  480. <code class="phpdocumentor-code phpdocumentor-signature ">
  481. <span class="phpdocumentor-signature__visibility">public</span>
  482. <span class="phpdocumentor-signature__name">getLengthInBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  483. <div class="phpdocumentor-label-line">
  484. </div>
  485. <section>
  486. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  487. <span class="phpdocumentor-signature__response_type">int</span>
  488. </section>
  489. </article>
  490. <article
  491. class="phpdocumentor-element
  492. -method
  493. -public
  494. -static "
  495. >
  496. <h4 class="phpdocumentor-element__name" id="method_validateString">
  497. validateString()
  498. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_validateString" class="headerlink"><i class="fas fa-link"></i></a>
  499. </h4>
  500. <aside class="phpdocumentor-element-found-in">
  501. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  502. :
  503. <span class="phpdocumentor-element-found-in__line">73</span>
  504. </aside>
  505. <p class="phpdocumentor-summary">checks if a string qualifies as SJIS Kanji</p>
  506. <code class="phpdocumentor-code phpdocumentor-signature ">
  507. <span class="phpdocumentor-signature__visibility">public</span>
  508. <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>
  509. <div class="phpdocumentor-label-line">
  510. </div>
  511. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  512. <dl class="phpdocumentor-argument-list">
  513. <dt class="phpdocumentor-argument-list__entry">
  514. <span class="phpdocumentor-signature__argument__name">$string</span>
  515. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  516. </dt>
  517. <dd class="phpdocumentor-argument-list__definition">
  518. </dd>
  519. </dl>
  520. <section>
  521. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  522. <span class="phpdocumentor-signature__response_type">bool</span>
  523. </section>
  524. </article>
  525. <article
  526. class="phpdocumentor-element
  527. -method
  528. -public
  529. "
  530. >
  531. <h4 class="phpdocumentor-element__name" id="method_write">
  532. write()
  533. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_write" class="headerlink"><i class="fas fa-link"></i></a>
  534. </h4>
  535. <aside class="phpdocumentor-element-found-in">
  536. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  537. :
  538. <span class="phpdocumentor-element-found-in__line">112</span>
  539. </aside>
  540. <p class="phpdocumentor-summary">writes the actual data string to the BitBuffer, uses the given version to determine the length bits</p>
  541. <code class="phpdocumentor-code phpdocumentor-signature ">
  542. <span class="phpdocumentor-signature__visibility">public</span>
  543. <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>
  544. <div class="phpdocumentor-label-line">
  545. </div>
  546. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  547. <dl class="phpdocumentor-argument-list">
  548. <dt class="phpdocumentor-argument-list__entry">
  549. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  550. : <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>
  551. </dt>
  552. <dd class="phpdocumentor-argument-list__definition">
  553. </dd>
  554. <dt class="phpdocumentor-argument-list__entry">
  555. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  556. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  557. </dt>
  558. <dd class="phpdocumentor-argument-list__definition">
  559. </dd>
  560. </dl>
  561. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  562. Tags
  563. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_write#tags" class="headerlink"><i class="fas fa-link"></i></a>
  564. </h5>
  565. <dl class="phpdocumentor-tag-list">
  566. <dt class="phpdocumentor-tag-list__entry">
  567. <span class="phpdocumentor-tag__name">inheritDoc</span>
  568. </dt>
  569. <dd class="phpdocumentor-tag-list__definition">
  570. </dd>
  571. <dt class="phpdocumentor-tag-list__entry">
  572. <span class="phpdocumentor-tag__name">throws</span>
  573. </dt>
  574. <dd class="phpdocumentor-tag-list__definition">
  575. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  576. <section class="phpdocumentor-description"><p>on an illegal character occurence</p>
  577. </section>
  578. </dd>
  579. </dl>
  580. <section>
  581. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  582. <span class="phpdocumentor-signature__response_type">static</span>
  583. </section>
  584. </article>
  585. <article
  586. class="phpdocumentor-element
  587. -method
  588. -protected
  589. "
  590. >
  591. <h4 class="phpdocumentor-element__name" id="method_getCharCount">
  592. getCharCount()
  593. <a href="classes/chillerlan-QRCode-Data-Kanji.html#method_getCharCount" class="headerlink"><i class="fas fa-link"></i></a>
  594. </h4>
  595. <aside class="phpdocumentor-element-found-in">
  596. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Kanji.php"><a href="files/src-data-kanji.html"><abbr title="src/Data/Kanji.php">Kanji.php</abbr></a></abbr>
  597. :
  598. <span class="phpdocumentor-element-found-in__line">42</span>
  599. </aside>
  600. <p class="phpdocumentor-summary">returns the character count of the $data string</p>
  601. <code class="phpdocumentor-code phpdocumentor-signature ">
  602. <span class="phpdocumentor-signature__visibility">protected</span>
  603. <span class="phpdocumentor-signature__name">getCharCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  604. <div class="phpdocumentor-label-line">
  605. </div>
  606. <section>
  607. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  608. <span class="phpdocumentor-signature__response_type">int</span>
  609. </section>
  610. </article>
  611. <article
  612. class="phpdocumentor-element
  613. -method
  614. -protected
  615. "
  616. >
  617. <h4 class="phpdocumentor-element__name" id="method_getLengthBits">
  618. getLengthBits()
  619. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits" class="headerlink"><i class="fas fa-link"></i></a>
  620. </h4>
  621. <aside class="phpdocumentor-element-found-in">
  622. <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>
  623. :
  624. <span class="phpdocumentor-element-found-in__line">59</span>
  625. </aside>
  626. <p class="phpdocumentor-summary">shortcut</p>
  627. <code class="phpdocumentor-code phpdocumentor-signature ">
  628. <span class="phpdocumentor-signature__visibility">protected</span>
  629. <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>
  630. <div class="phpdocumentor-label-line">
  631. </div>
  632. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  633. <dl class="phpdocumentor-argument-list">
  634. <dt class="phpdocumentor-argument-list__entry">
  635. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  636. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  637. </dt>
  638. <dd class="phpdocumentor-argument-list__definition">
  639. </dd>
  640. </dl>
  641. <section>
  642. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  643. <span class="phpdocumentor-signature__response_type">int</span>
  644. </section>
  645. </article>
  646. </section>
  647. <div class="phpdocumentor-modal" id="source-view">
  648. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  649. <div class="phpdocumentor-modal-container">
  650. <div class="phpdocumentor-modal-content">
  651. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Data/Kanji.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  652. </div>
  653. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  654. </div>
  655. </div>
  656. <script type="text/javascript">
  657. (function () {
  658. function loadExternalCodeSnippet(el, url, line) {
  659. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  660. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  661. const language = 'php';
  662. const code = document.createElement('code');
  663. code.className = 'language-' + language;
  664. pre.textContent = '';
  665. pre.setAttribute('data-line', line)
  666. code.textContent = 'Loading…';
  667. pre.appendChild(code);
  668. var xhr = new XMLHttpRequest();
  669. xhr.open('GET', src, true);
  670. xhr.onreadystatechange = function () {
  671. if (xhr.readyState !== 4) {
  672. return;
  673. }
  674. if (xhr.status < 400 && xhr.responseText) {
  675. code.textContent = xhr.responseText;
  676. Prism.highlightElement(code);
  677. d=document.getElementsByClassName("line-numbers");
  678. d[0].scrollTop = d[0].children[1].offsetTop;
  679. return;
  680. }
  681. if (xhr.status === 404) {
  682. code.textContent = '✖ Error: File could not be found';
  683. return;
  684. }
  685. if (xhr.status >= 400) {
  686. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  687. return;
  688. }
  689. code.textContent = '✖ Error: An unknown error occurred';
  690. };
  691. xhr.send(null);
  692. });
  693. }
  694. const modalButtons = document.querySelectorAll("[data-modal]");
  695. const openedAsLocalFile = window.location.protocol === 'file:';
  696. if (modalButtons.length > 0 && openedAsLocalFile) {
  697. console.warn(
  698. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  699. 'browsers block XHR requests when a page is opened this way'
  700. );
  701. }
  702. modalButtons.forEach(function (trigger) {
  703. if (openedAsLocalFile) {
  704. trigger.setAttribute("hidden", "hidden");
  705. }
  706. trigger.addEventListener("click", function (event) {
  707. event.preventDefault();
  708. const modal = document.getElementById(trigger.dataset.modal);
  709. if (!modal) {
  710. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  711. return;
  712. }
  713. modal.classList.add("phpdocumentor-modal__open");
  714. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  715. const exits = modal.querySelectorAll("[data-exit-button]");
  716. exits.forEach(function (exit) {
  717. exit.addEventListener("click", function (event) {
  718. event.preventDefault();
  719. modal.classList.remove("phpdocumentor-modal__open");
  720. });
  721. });
  722. });
  723. });
  724. })();
  725. </script>
  726. </article>
  727. </section>
  728. <section class="phpdocumentor-on-this-page__sidebar">
  729. <section class="phpdocumentor-on-this-page__content">
  730. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  731. <ul class="phpdocumentor-list -clean">
  732. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  733. <li>
  734. <ul class="phpdocumentor-list -clean">
  735. <li><a href="classes/chillerlan-QRCode-Data-Kanji.html#toc-constants">Constants</a></li>
  736. <li><a href="classes/chillerlan-QRCode-Data-Kanji.html#toc-properties">Properties</a></li>
  737. <li><a href="classes/chillerlan-QRCode-Data-Kanji.html#toc-methods">Methods</a></li>
  738. </ul>
  739. </li>
  740. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  741. <li>
  742. <ul class="phpdocumentor-list -clean">
  743. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#constant_DATAMODE">DATAMODE</a></li>
  744. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#constant_ENCODING">ENCODING</a></li>
  745. </ul>
  746. </li>
  747. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  748. <li>
  749. <ul class="phpdocumentor-list -clean">
  750. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a></li>
  751. </ul>
  752. </li>
  753. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  754. <li>
  755. <ul class="phpdocumentor-list -clean">
  756. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a></li>
  757. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#method_convertEncoding">convertEncoding()</a></li>
  758. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#method_decodeSegment">decodeSegment()</a></li>
  759. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#method_getLengthInBits">getLengthInBits()</a></li>
  760. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#method_validateString">validateString()</a></li>
  761. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#method_write">write()</a></li>
  762. <li class=""><a href="classes/chillerlan-QRCode-Data-Kanji.html#method_getCharCount">getCharCount()</a></li>
  763. <li class=""><a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getLengthBits">getLengthBits()</a></li>
  764. </ul>
  765. </li>
  766. </ul>
  767. </section>
  768. </section>
  769. </div>
  770. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  771. <section class="phpdocumentor-search-results__dialog">
  772. <header class="phpdocumentor-search-results__header">
  773. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  774. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  775. </header>
  776. <section class="phpdocumentor-search-results__body">
  777. <ul class="phpdocumentor-search-results__entries"></ul>
  778. </section>
  779. </section>
  780. </section>
  781. </div>
  782. <a href="classes/chillerlan-QRCode-Data-Kanji.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  783. </main>
  784. <script>
  785. cssVars({});
  786. </script>
  787. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  788. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  789. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  790. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  791. </body>
  792. </html>