chillerlan-QRCode-Data-AlphaNum.html 50 KB

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