chillerlan-QRCode-Data-Number.html 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. Number
  89. <span class="phpdocumentor-element__extends">
  90. extends <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeAbstract">QRDataModeAbstract</abbr></a>
  91. </span>
  92. <div class="phpdocumentor-element__package">
  93. in package
  94. <ul class="phpdocumentor-breadcrumbs">
  95. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  96. </ul>
  97. </div>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">23</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">Numeric mode: decimal digits 0 to 9</p>
  105. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 8.3.2
  106. ISO/IEC 18004:2000 Section 8.4.2</p>
  107. </section>
  108. <h3 id="toc">
  109. Table of Contents
  110. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  111. </h3>
  112. <dl class="phpdocumentor-table-of-contents">
  113. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  114. <a href="classes/chillerlan-QRCode-Data-Number.html#constant_CHAR_MAP_NUMBER">CHAR_MAP_NUMBER</a>
  115. <span>
  116. &nbsp;= [&#039;0&#039; =&gt; 0, &#039;1&#039; =&gt; 1, &#039;2&#039; =&gt; 2, &#039;3&#039; =&gt; 3, &#039;4&#039; =&gt; 4, &#039;5&#039; =&gt; 5, &#039;6&#039; =&gt; 6, &#039;7&#039; =&gt; 7, &#039;8&#039; =&gt; 8, &#039;9&#039; =&gt; 9] </span>
  117. </dt>
  118. <dd></dd>
  119. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  120. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data">$data</a>
  121. <span>
  122. &nbsp;: string </span>
  123. </dt>
  124. <dd>The data to write</dd>
  125. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  126. <a href="classes/chillerlan-QRCode-Data-Number.html#property_datamode">$datamode</a>
  127. <span>
  128. &nbsp;: int </span>
  129. </dt>
  130. <dd>the current data mode: Num, Alphanum, Kanji, Byte</dd>
  131. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  132. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct">__construct()</a>
  133. <span>
  134. &nbsp;: mixed </span>
  135. </dt>
  136. <dd>QRDataModeAbstract constructor.</dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  138. <a href="classes/chillerlan-QRCode-Data-Number.html#method_decodeSegment">decodeSegment()</a>
  139. <span>
  140. &nbsp;: string </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  144. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getDataMode">getDataMode()</a>
  145. <span>
  146. &nbsp;: int </span>
  147. </dt>
  148. <dd>returns the current data mode constant</dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  150. <a href="classes/chillerlan-QRCode-Data-Number.html#method_getLengthInBits">getLengthInBits()</a>
  151. <span>
  152. &nbsp;: int </span>
  153. </dt>
  154. <dd></dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  156. <a href="classes/chillerlan-QRCode-Data-Number.html#method_validateString">validateString()</a>
  157. <span>
  158. &nbsp;: bool </span>
  159. </dt>
  160. <dd></dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  162. <a href="classes/chillerlan-QRCode-Data-Number.html#method_write">write()</a>
  163. <span>
  164. &nbsp;: void </span>
  165. </dt>
  166. <dd></dd>
  167. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  168. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount">getCharCount()</a>
  169. <span>
  170. &nbsp;: int </span>
  171. </dt>
  172. <dd>returns the character count of the $data string</dd>
  173. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  174. <a href="classes/chillerlan-QRCode-Data-Number.html#method_parseInt">parseInt()</a>
  175. <span>
  176. &nbsp;: int </span>
  177. </dt>
  178. <dd>get the code for the given numeric string</dd>
  179. </dl>
  180. <section class="phpdocumentor-constants">
  181. <h3 class="phpdocumentor-elements__header" id="constants">
  182. Constants
  183. <a href="classes/chillerlan-QRCode-Data-Number.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  184. </h3>
  185. <article class="phpdocumentor-element -constant -private ">
  186. <h4 class="phpdocumentor-element__name" id="constant_CHAR_MAP_NUMBER">
  187. CHAR_MAP_NUMBER
  188. <a href="classes/chillerlan-QRCode-Data-Number.html#constant_CHAR_MAP_NUMBER" class="headerlink"><i class="fas fa-link"></i></a>
  189. </h4>
  190. <aside class="phpdocumentor-element-found-in">
  191. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  192. :
  193. <span class="phpdocumentor-element-found-in__line">28</span>
  194. </aside>
  195. <code class="phpdocumentor-signature phpdocumentor-code ">
  196. <span class="phpdocumentor-signature__visibility">private</span>
  197. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  198. <span class="phpdocumentor-signature__name">CHAR_MAP_NUMBER</span>
  199. = <span class="phpdocumentor-signature__default-value">[&#039;0&#039; =&gt; 0, &#039;1&#039; =&gt; 1, &#039;2&#039; =&gt; 2, &#039;3&#039; =&gt; 3, &#039;4&#039; =&gt; 4, &#039;5&#039; =&gt; 5, &#039;6&#039; =&gt; 6, &#039;7&#039; =&gt; 7, &#039;8&#039; =&gt; 8, &#039;9&#039; =&gt; 9]</span>
  200. </code>
  201. </article>
  202. </section>
  203. <section class="phpdocumentor-properties">
  204. <h3 class="phpdocumentor-elements__header" id="properties">
  205. Properties
  206. <a href="classes/chillerlan-QRCode-Data-Number.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  207. </h3>
  208. <article
  209. class="
  210. phpdocumentor-element
  211. -property
  212. -protected
  213. "
  214. >
  215. <h4 class="phpdocumentor-element__name" id="property_data">
  216. $data
  217. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#property_data" class="headerlink"><i class="fas fa-link"></i></a>
  218. <span class="phpdocumentor-element__modifiers">
  219. </span>
  220. </h4>
  221. <aside class="phpdocumentor-element-found-in">
  222. <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>
  223. :
  224. <span class="phpdocumentor-element-found-in__line">25</span>
  225. </aside>
  226. <p class="phpdocumentor-summary">The data to write</p>
  227. <code class="phpdocumentor-code phpdocumentor-signature ">
  228. <span class="phpdocumentor-signature__visibility">protected</span>
  229. <span class="phpdocumentor-signature__type">string</span>
  230. <span class="phpdocumentor-signature__name">$data</span>
  231. </code>
  232. <section class="phpdocumentor-description"></section>
  233. </article>
  234. <article
  235. class="
  236. phpdocumentor-element
  237. -property
  238. -protected
  239. -static "
  240. >
  241. <h4 class="phpdocumentor-element__name" id="property_datamode">
  242. $datamode
  243. <a href="classes/chillerlan-QRCode-Data-Number.html#property_datamode" class="headerlink"><i class="fas fa-link"></i></a>
  244. <span class="phpdocumentor-element__modifiers">
  245. </span>
  246. </h4>
  247. <aside class="phpdocumentor-element-found-in">
  248. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  249. :
  250. <span class="phpdocumentor-element-found-in__line">32</span>
  251. </aside>
  252. <p class="phpdocumentor-summary">the current data mode: Num, Alphanum, Kanji, Byte</p>
  253. <code class="phpdocumentor-code phpdocumentor-signature ">
  254. <span class="phpdocumentor-signature__visibility">protected</span>
  255. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">int</span>
  256. <span class="phpdocumentor-signature__name">$datamode</span>
  257. = <span class="phpdocumentor-signature__default-value">chillerlanQRCodeCommonMode::DATA_NUMBER</span></code>
  258. <section class="phpdocumentor-description"></section>
  259. </article>
  260. </section>
  261. <section class="phpdocumentor-methods">
  262. <h3 class="phpdocumentor-elements__header" id="methods">
  263. Methods
  264. <a href="classes/chillerlan-QRCode-Data-Number.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  265. </h3>
  266. <article
  267. class="phpdocumentor-element
  268. -method
  269. -public
  270. "
  271. >
  272. <h4 class="phpdocumentor-element__name" id="method___construct">
  273. __construct()
  274. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method___construct" 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/QRDataModeAbstract.php"><a href="files/src-data-qrdatamodeabstract.html"><abbr title="src/Data/QRDataModeAbstract.php">QRDataModeAbstract.php</abbr></a></abbr>
  278. :
  279. <span class="phpdocumentor-element-found-in__line">30</span>
  280. </aside>
  281. <p class="phpdocumentor-summary">QRDataModeAbstract constructor.</p>
  282. <code class="phpdocumentor-code phpdocumentor-signature ">
  283. <span class="phpdocumentor-signature__visibility">public</span>
  284. <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>
  285. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  286. <dl class="phpdocumentor-argument-list">
  287. <dt class="phpdocumentor-argument-list__entry">
  288. <span class="phpdocumentor-signature__argument__name">$data</span>
  289. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  290. </dt>
  291. <dd class="phpdocumentor-argument-list__definition">
  292. <section class="phpdocumentor-description"></section>
  293. </dd>
  294. </dl>
  295. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  296. <span class="phpdocumentor-signature__response_type">mixed</span>
  297. &mdash;
  298. </article>
  299. <article
  300. class="phpdocumentor-element
  301. -method
  302. -public
  303. -static "
  304. >
  305. <h4 class="phpdocumentor-element__name" id="method_decodeSegment">
  306. decodeSegment()
  307. <a href="classes/chillerlan-QRCode-Data-Number.html#method_decodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  308. </h4>
  309. <aside class="phpdocumentor-element-found-in">
  310. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  311. :
  312. <span class="phpdocumentor-element-found-in__line">116</span>
  313. </aside>
  314. <code class="phpdocumentor-code phpdocumentor-signature ">
  315. <span class="phpdocumentor-signature__visibility">public</span>
  316. <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>
  317. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  318. <dl class="phpdocumentor-argument-list">
  319. <dt class="phpdocumentor-argument-list__entry">
  320. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  321. : <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>
  322. </dt>
  323. <dd class="phpdocumentor-argument-list__definition">
  324. <section class="phpdocumentor-description"></section>
  325. </dd>
  326. <dt class="phpdocumentor-argument-list__entry">
  327. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  328. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  329. </dt>
  330. <dd class="phpdocumentor-argument-list__definition">
  331. <section class="phpdocumentor-description"></section>
  332. </dd>
  333. </dl>
  334. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  335. Tags
  336. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  337. </h5>
  338. <dl class="phpdocumentor-tag-list">
  339. <dt class="phpdocumentor-tag-list__entry">
  340. <span class="phpdocumentor-tag__name">inheritdoc</span>
  341. </dt>
  342. <dd class="phpdocumentor-tag-list__definition">
  343. </dd>
  344. <dt class="phpdocumentor-tag-list__entry">
  345. <span class="phpdocumentor-tag__name">throws</span>
  346. </dt>
  347. <dd class="phpdocumentor-tag-list__definition">
  348. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  349. </dd>
  350. </dl>
  351. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  352. <span class="phpdocumentor-signature__response_type">string</span>
  353. &mdash;
  354. </article>
  355. <article
  356. class="phpdocumentor-element
  357. -method
  358. -public
  359. "
  360. >
  361. <h4 class="phpdocumentor-element__name" id="method_getDataMode">
  362. getDataMode()
  363. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getDataMode" class="headerlink"><i class="fas fa-link"></i></a>
  364. </h4>
  365. <aside class="phpdocumentor-element-found-in">
  366. <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>
  367. :
  368. <span class="phpdocumentor-element-found-in__line">44</span>
  369. </aside>
  370. <p class="phpdocumentor-summary">returns the current data mode constant</p>
  371. <code class="phpdocumentor-code phpdocumentor-signature ">
  372. <span class="phpdocumentor-signature__visibility">public</span>
  373. <span class="phpdocumentor-signature__name">getDataMode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  374. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  375. Tags
  376. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  377. </h5>
  378. <dl class="phpdocumentor-tag-list">
  379. <dt class="phpdocumentor-tag-list__entry">
  380. <span class="phpdocumentor-tag__name">inheritDoc</span>
  381. </dt>
  382. <dd class="phpdocumentor-tag-list__definition">
  383. </dd>
  384. </dl>
  385. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  386. <span class="phpdocumentor-signature__response_type">int</span>
  387. &mdash;
  388. </article>
  389. <article
  390. class="phpdocumentor-element
  391. -method
  392. -public
  393. "
  394. >
  395. <h4 class="phpdocumentor-element__name" id="method_getLengthInBits">
  396. getLengthInBits()
  397. <a href="classes/chillerlan-QRCode-Data-Number.html#method_getLengthInBits" class="headerlink"><i class="fas fa-link"></i></a>
  398. </h4>
  399. <aside class="phpdocumentor-element-found-in">
  400. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  401. :
  402. <span class="phpdocumentor-element-found-in__line">37</span>
  403. </aside>
  404. <code class="phpdocumentor-code phpdocumentor-signature ">
  405. <span class="phpdocumentor-signature__visibility">public</span>
  406. <span class="phpdocumentor-signature__name">getLengthInBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  407. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  408. Tags
  409. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  410. </h5>
  411. <dl class="phpdocumentor-tag-list">
  412. <dt class="phpdocumentor-tag-list__entry">
  413. <span class="phpdocumentor-tag__name">inheritdoc</span>
  414. </dt>
  415. <dd class="phpdocumentor-tag-list__definition">
  416. </dd>
  417. </dl>
  418. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  419. <span class="phpdocumentor-signature__response_type">int</span>
  420. &mdash;
  421. </article>
  422. <article
  423. class="phpdocumentor-element
  424. -method
  425. -public
  426. -static "
  427. >
  428. <h4 class="phpdocumentor-element__name" id="method_validateString">
  429. validateString()
  430. <a href="classes/chillerlan-QRCode-Data-Number.html#method_validateString" class="headerlink"><i class="fas fa-link"></i></a>
  431. </h4>
  432. <aside class="phpdocumentor-element-found-in">
  433. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  434. :
  435. <span class="phpdocumentor-element-found-in__line">44</span>
  436. </aside>
  437. <code class="phpdocumentor-code phpdocumentor-signature ">
  438. <span class="phpdocumentor-signature__visibility">public</span>
  439. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">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>
  440. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  441. <dl class="phpdocumentor-argument-list">
  442. <dt class="phpdocumentor-argument-list__entry">
  443. <span class="phpdocumentor-signature__argument__name">$string</span>
  444. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  445. </dt>
  446. <dd class="phpdocumentor-argument-list__definition">
  447. <section class="phpdocumentor-description"></section>
  448. </dd>
  449. </dl>
  450. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  451. Tags
  452. <a href="#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">inheritdoc</span>
  457. </dt>
  458. <dd class="phpdocumentor-tag-list__definition">
  459. </dd>
  460. </dl>
  461. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  462. <span class="phpdocumentor-signature__response_type">bool</span>
  463. &mdash;
  464. </article>
  465. <article
  466. class="phpdocumentor-element
  467. -method
  468. -public
  469. "
  470. >
  471. <h4 class="phpdocumentor-element__name" id="method_write">
  472. write()
  473. <a href="classes/chillerlan-QRCode-Data-Number.html#method_write" class="headerlink"><i class="fas fa-link"></i></a>
  474. </h4>
  475. <aside class="phpdocumentor-element-found-in">
  476. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  477. :
  478. <span class="phpdocumentor-element-found-in__line">58</span>
  479. </aside>
  480. <code class="phpdocumentor-code phpdocumentor-signature ">
  481. <span class="phpdocumentor-signature__visibility">public</span>
  482. <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">void</span></code>
  483. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  484. <dl class="phpdocumentor-argument-list">
  485. <dt class="phpdocumentor-argument-list__entry">
  486. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  487. : <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>
  488. </dt>
  489. <dd class="phpdocumentor-argument-list__definition">
  490. <section class="phpdocumentor-description"></section>
  491. </dd>
  492. <dt class="phpdocumentor-argument-list__entry">
  493. <span class="phpdocumentor-signature__argument__name">$versionNumber</span>
  494. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  495. </dt>
  496. <dd class="phpdocumentor-argument-list__definition">
  497. <section class="phpdocumentor-description"></section>
  498. </dd>
  499. </dl>
  500. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  501. Tags
  502. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  503. </h5>
  504. <dl class="phpdocumentor-tag-list">
  505. <dt class="phpdocumentor-tag-list__entry">
  506. <span class="phpdocumentor-tag__name">inheritdoc</span>
  507. </dt>
  508. <dd class="phpdocumentor-tag-list__definition">
  509. </dd>
  510. </dl>
  511. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  512. <span class="phpdocumentor-signature__response_type">void</span>
  513. &mdash;
  514. </article>
  515. <article
  516. class="phpdocumentor-element
  517. -method
  518. -protected
  519. "
  520. >
  521. <h4 class="phpdocumentor-element__name" id="method_getCharCount">
  522. getCharCount()
  523. <a href="classes/chillerlan-QRCode-Data-QRDataModeAbstract.html#method_getCharCount" class="headerlink"><i class="fas fa-link"></i></a>
  524. </h4>
  525. <aside class="phpdocumentor-element-found-in">
  526. <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>
  527. :
  528. <span class="phpdocumentor-element-found-in__line">37</span>
  529. </aside>
  530. <p class="phpdocumentor-summary">returns the character count of the $data string</p>
  531. <code class="phpdocumentor-code phpdocumentor-signature ">
  532. <span class="phpdocumentor-signature__visibility">protected</span>
  533. <span class="phpdocumentor-signature__name">getCharCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  534. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  535. <span class="phpdocumentor-signature__response_type">int</span>
  536. &mdash;
  537. </article>
  538. <article
  539. class="phpdocumentor-element
  540. -method
  541. -protected
  542. "
  543. >
  544. <h4 class="phpdocumentor-element__name" id="method_parseInt">
  545. parseInt()
  546. <a href="classes/chillerlan-QRCode-Data-Number.html#method_parseInt" class="headerlink"><i class="fas fa-link"></i></a>
  547. </h4>
  548. <aside class="phpdocumentor-element-found-in">
  549. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/Number.php"><a href="files/src-data-number.html"><abbr title="src/Data/Number.php">Number.php</abbr></a></abbr>
  550. :
  551. <span class="phpdocumentor-element-found-in__line">94</span>
  552. </aside>
  553. <p class="phpdocumentor-summary">get the code for the given numeric string</p>
  554. <code class="phpdocumentor-code phpdocumentor-signature ">
  555. <span class="phpdocumentor-signature__visibility">protected</span>
  556. <span class="phpdocumentor-signature__name">parseInt</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">int</span></code>
  557. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  558. <dl class="phpdocumentor-argument-list">
  559. <dt class="phpdocumentor-argument-list__entry">
  560. <span class="phpdocumentor-signature__argument__name">$string</span>
  561. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  562. </dt>
  563. <dd class="phpdocumentor-argument-list__definition">
  564. <section class="phpdocumentor-description"></section>
  565. </dd>
  566. </dl>
  567. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  568. Tags
  569. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  570. </h5>
  571. <dl class="phpdocumentor-tag-list">
  572. <dt class="phpdocumentor-tag-list__entry">
  573. <span class="phpdocumentor-tag__name">throws</span>
  574. </dt>
  575. <dd class="phpdocumentor-tag-list__definition">
  576. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  577. <section class="phpdocumentor-description"><p>on an illegal character occurence</p>
  578. </section>
  579. </dd>
  580. </dl>
  581. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  582. <span class="phpdocumentor-signature__response_type">int</span>
  583. &mdash;
  584. </article>
  585. </section>
  586. <script type="text/javascript">
  587. function loadExternalCodeSnippets(line) {
  588. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  589. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  590. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  591. var language = 'php';
  592. var code = document.createElement('code');
  593. code.className = 'language-' + language;
  594. pre.textContent = '';
  595. pre.setAttribute('data-line', line)
  596. code.textContent = 'Loading…';
  597. pre.appendChild(code);
  598. var xhr = new XMLHttpRequest();
  599. xhr.open('GET', src, true);
  600. xhr.onreadystatechange = function () {
  601. if (xhr.readyState == 4) {
  602. if (xhr.status < 400 && xhr.responseText) {
  603. code.textContent = xhr.responseText;
  604. Prism.highlightElement(code);
  605. }
  606. else if (xhr.status >= 400) {
  607. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  608. }
  609. else {
  610. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  611. }
  612. }
  613. };
  614. xhr.send(null);
  615. });
  616. }
  617. var modals = document.querySelectorAll("[data-modal]");
  618. modals.forEach(function (trigger) {
  619. trigger.addEventListener("click", function (event) {
  620. //event.preventDefault();
  621. const modal = document.getElementById(trigger.dataset.modal);
  622. modal.classList.add("phpdocumentor-modal__open");
  623. loadExternalCodeSnippets(trigger.dataset.line)
  624. const exits = modal.querySelectorAll("[data-exit-button]");
  625. exits.forEach(function (exit) {
  626. exit.addEventListener("click", function (event) {
  627. event.preventDefault();
  628. modal.classList.remove("phpdocumentor-modal__open");
  629. });
  630. });
  631. });
  632. });
  633. </script>
  634. </article>
  635. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  636. <section class="phpdocumentor-search-results__dialog">
  637. <header class="phpdocumentor-search-results__header">
  638. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  639. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  640. </header>
  641. <section class="phpdocumentor-search-results__body">
  642. <ul class="phpdocumentor-search-results__entries"></ul>
  643. </section>
  644. </section>
  645. </section>
  646. </div>
  647. </div>
  648. <a href="classes/chillerlan-QRCode-Data-Number.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  649. </main>
  650. <script>
  651. cssVars({});
  652. </script>
  653. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  654. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  655. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  656. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  657. </body>
  658. </html>