1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* @author: Viskov Sergey |
4
|
|
|
* @date: 3/18/16 |
5
|
|
|
* @time: 11:18 AM |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace LTDBeget\ascii; |
9
|
|
|
|
10
|
|
|
|
11
|
|
|
use MabeEnum\Enum; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* Class AsciiChar |
15
|
|
|
* @package LTDBeget\ascii |
16
|
|
|
* |
17
|
|
|
* @method static AsciiChar NULL() |
18
|
|
|
* @method static AsciiChar HEADING_START() |
19
|
|
|
* @method static AsciiChar TEXT_START() |
20
|
|
|
* @method static AsciiChar TEXT_END() |
21
|
|
|
* @method static AsciiChar TRANSMISSION_END() |
22
|
|
|
* @method static AsciiChar ENQUIRY() |
23
|
|
|
* @method static AsciiChar ACKNOWLEDGMENT() |
24
|
|
|
* @method static AsciiChar BELL() |
25
|
|
|
* @method static AsciiChar BACKSPACE() |
26
|
|
|
* @method static AsciiChar HORIZONTAL_TAB() |
27
|
|
|
* @method static AsciiChar LINE_FEED() |
28
|
|
|
* @method static AsciiChar VERTICAL_TAB() |
29
|
|
|
* @method static AsciiChar FORM_FEED() |
30
|
|
|
* @method static AsciiChar CARRIAGE_RETURN() |
31
|
|
|
* @method static AsciiChar SHIFT_OUT() |
32
|
|
|
* @method static AsciiChar SHIFT_IN() |
33
|
|
|
* @method static AsciiChar DATA_LINE_ESCAPE() |
34
|
|
|
* @method static AsciiChar DEVICE_CONTROL_1() |
35
|
|
|
* @method static AsciiChar DEVICE_CONTROL_2() |
36
|
|
|
* @method static AsciiChar DEVICE_CONTROL_3() |
37
|
|
|
* @method static AsciiChar DEVICE_CONTROL_4() |
38
|
|
|
* @method static AsciiChar NEGATIVE_ACKNOWLEDGEMENT() |
39
|
|
|
* @method static AsciiChar SYNCHRONOUS_IDLE() |
40
|
|
|
* @method static AsciiChar TRANSMIT_BLOCK_END() |
41
|
|
|
* @method static AsciiChar CANCEL() |
42
|
|
|
* @method static AsciiChar MEDIUM_END() |
43
|
|
|
* @method static AsciiChar SUBSTITUTE() |
44
|
|
|
* @method static AsciiChar ESCAPE() |
45
|
|
|
* @method static AsciiChar FILE_SEPARATOR() |
46
|
|
|
* @method static AsciiChar GROUP_SEPARATOR() |
47
|
|
|
* @method static AsciiChar RECORD_SEPARATOR() |
48
|
|
|
* @method static AsciiChar UNIT_SEPARATOR() |
49
|
|
|
* @method static AsciiChar SPACE() |
50
|
|
|
* @method static AsciiChar EXCLAMATION_MARK() |
51
|
|
|
* @method static AsciiChar DOUBLE_QUOTES() |
52
|
|
|
* @method static AsciiChar HASHTAG() |
53
|
|
|
* @method static AsciiChar DOLLAR() |
54
|
|
|
* @method static AsciiChar PROCENTTECKEN() |
55
|
|
|
* @method static AsciiChar AMPERSAND() |
56
|
|
|
* @method static AsciiChar SINGLE_QUOTE() |
57
|
|
|
* @method static AsciiChar OPEN_BRACKET() |
58
|
|
|
* @method static AsciiChar CLOSE_BRACKET() |
59
|
|
|
* @method static AsciiChar ASTERISK() |
60
|
|
|
* @method static AsciiChar PLUS() |
61
|
|
|
* @method static AsciiChar COMMA() |
62
|
|
|
* @method static AsciiChar HYPHEN() |
63
|
|
|
* @method static AsciiChar DOT() |
64
|
|
|
* @method static AsciiChar SLASH() |
65
|
|
|
* @method static AsciiChar ZERO() |
66
|
|
|
* @method static AsciiChar ONE() |
67
|
|
|
* @method static AsciiChar TWO() |
68
|
|
|
* @method static AsciiChar THREE() |
69
|
|
|
* @method static AsciiChar FOUR() |
70
|
|
|
* @method static AsciiChar FIVE() |
71
|
|
|
* @method static AsciiChar SIX() |
72
|
|
|
* @method static AsciiChar SEVEN() |
73
|
|
|
* @method static AsciiChar EIGHT() |
74
|
|
|
* @method static AsciiChar NINE() |
75
|
|
|
* @method static AsciiChar COLON() |
76
|
|
|
* @method static AsciiChar SEMICOLON() |
77
|
|
|
* @method static AsciiChar LESS_THAN() |
78
|
|
|
* @method static AsciiChar EQUALS() |
79
|
|
|
* @method static AsciiChar GREATER_THAN() |
80
|
|
|
* @method static AsciiChar QUESTION_MARK() |
81
|
|
|
* @method static AsciiChar AT_SYMBOL() |
82
|
|
|
* @method static AsciiChar A_UPPERCASE() |
83
|
|
|
* @method static AsciiChar B_UPPERCASE() |
84
|
|
|
* @method static AsciiChar C_UPPERCASE() |
85
|
|
|
* @method static AsciiChar D_UPPERCASE() |
86
|
|
|
* @method static AsciiChar E_UPPERCASE() |
87
|
|
|
* @method static AsciiChar F_UPPERCASE() |
88
|
|
|
* @method static AsciiChar G_UPPERCASE() |
89
|
|
|
* @method static AsciiChar H_UPPERCASE() |
90
|
|
|
* @method static AsciiChar I_UPPERCASE() |
91
|
|
|
* @method static AsciiChar J_UPPERCASE() |
92
|
|
|
* @method static AsciiChar K_UPPERCASE() |
93
|
|
|
* @method static AsciiChar L_UPPERCASE() |
94
|
|
|
* @method static AsciiChar M_UPPERCASE() |
95
|
|
|
* @method static AsciiChar N_UPPERCASE() |
96
|
|
|
* @method static AsciiChar O_UPPERCASE() |
97
|
|
|
* @method static AsciiChar P_UPPERCASE() |
98
|
|
|
* @method static AsciiChar Q_UPPERCASE() |
99
|
|
|
* @method static AsciiChar R_UPPERCASE() |
100
|
|
|
* @method static AsciiChar S_UPPERCASE() |
101
|
|
|
* @method static AsciiChar T_UPPERCASE() |
102
|
|
|
* @method static AsciiChar U_UPPERCASE() |
103
|
|
|
* @method static AsciiChar V_UPPERCASE() |
104
|
|
|
* @method static AsciiChar W_UPPERCASE() |
105
|
|
|
* @method static AsciiChar X_UPPERCASE() |
106
|
|
|
* @method static AsciiChar Y_UPPERCASE() |
107
|
|
|
* @method static AsciiChar Z_UPPERCASE() |
108
|
|
|
* @method static AsciiChar OPENING_BRACKET() |
109
|
|
|
* @method static AsciiChar BACKSLASH() |
110
|
|
|
* @method static AsciiChar CLOSING_BRACKET() |
111
|
|
|
* @method static AsciiChar CARET() |
112
|
|
|
* @method static AsciiChar UNDERSCORE() |
113
|
|
|
* @method static AsciiChar GRAVE_ACCENT() |
114
|
|
|
* @method static AsciiChar A_LOWERCASE() |
115
|
|
|
* @method static AsciiChar B_LOWERCASE() |
116
|
|
|
* @method static AsciiChar C_LOWERCASE() |
117
|
|
|
* @method static AsciiChar D_LOWERCASE() |
118
|
|
|
* @method static AsciiChar E_LOWERCASE() |
119
|
|
|
* @method static AsciiChar F_LOWERCASE() |
120
|
|
|
* @method static AsciiChar G_LOWERCASE() |
121
|
|
|
* @method static AsciiChar H_LOWERCASE() |
122
|
|
|
* @method static AsciiChar I_LOWERCASE() |
123
|
|
|
* @method static AsciiChar J_LOWERCASE() |
124
|
|
|
* @method static AsciiChar K_LOWERCASE() |
125
|
|
|
* @method static AsciiChar L_LOWERCASE() |
126
|
|
|
* @method static AsciiChar M_LOWERCASE() |
127
|
|
|
* @method static AsciiChar N_LOWERCASE() |
128
|
|
|
* @method static AsciiChar O_LOWERCASE() |
129
|
|
|
* @method static AsciiChar P_LOWERCASE() |
130
|
|
|
* @method static AsciiChar Q_LOWERCASE() |
131
|
|
|
* @method static AsciiChar R_LOWERCASE() |
132
|
|
|
* @method static AsciiChar S_LOWERCASE() |
133
|
|
|
* @method static AsciiChar T_LOWERCASE() |
134
|
|
|
* @method static AsciiChar U_LOWERCASE() |
135
|
|
|
* @method static AsciiChar V_LOWERCASE() |
136
|
|
|
* @method static AsciiChar W_LOWERCASE() |
137
|
|
|
* @method static AsciiChar X_LOWERCASE() |
138
|
|
|
* @method static AsciiChar Y_LOWERCASE() |
139
|
|
|
* @method static AsciiChar Z_LOWERCASE() |
140
|
|
|
* @method static AsciiChar OPENING_BRACE() |
141
|
|
|
* @method static AsciiChar VERTICAL_BAR() |
142
|
|
|
* @method static AsciiChar CLOSING_BRACE() |
143
|
|
|
* @method static AsciiChar TILDE() |
144
|
|
|
* @method static AsciiChar DELETE() |
145
|
|
|
* @method static AsciiChar CODE_128() |
146
|
|
|
* @method static AsciiChar CODE_129() |
147
|
|
|
* @method static AsciiChar CODE_130() |
148
|
|
|
* @method static AsciiChar CODE_131() |
149
|
|
|
* @method static AsciiChar CODE_132() |
150
|
|
|
* @method static AsciiChar CODE_133() |
151
|
|
|
* @method static AsciiChar CODE_134() |
152
|
|
|
* @method static AsciiChar CODE_135() |
153
|
|
|
* @method static AsciiChar CODE_136() |
154
|
|
|
* @method static AsciiChar CODE_137() |
155
|
|
|
* @method static AsciiChar CODE_138() |
156
|
|
|
* @method static AsciiChar CODE_139() |
157
|
|
|
* @method static AsciiChar CODE_140() |
158
|
|
|
* @method static AsciiChar CODE_141() |
159
|
|
|
* @method static AsciiChar CODE_142() |
160
|
|
|
* @method static AsciiChar CODE_143() |
161
|
|
|
* @method static AsciiChar CODE_144() |
162
|
|
|
* @method static AsciiChar CODE_145() |
163
|
|
|
* @method static AsciiChar CODE_146() |
164
|
|
|
* @method static AsciiChar CODE_147() |
165
|
|
|
* @method static AsciiChar CODE_148() |
166
|
|
|
* @method static AsciiChar CODE_149() |
167
|
|
|
* @method static AsciiChar CODE_150() |
168
|
|
|
* @method static AsciiChar CODE_151() |
169
|
|
|
* @method static AsciiChar CODE_152() |
170
|
|
|
* @method static AsciiChar CODE_153() |
171
|
|
|
* @method static AsciiChar CODE_154() |
172
|
|
|
* @method static AsciiChar CODE_155() |
173
|
|
|
* @method static AsciiChar CODE_156() |
174
|
|
|
* @method static AsciiChar CODE_157() |
175
|
|
|
* @method static AsciiChar CODE_158() |
176
|
|
|
* @method static AsciiChar CODE_159() |
177
|
|
|
* @method static AsciiChar CODE_160() |
178
|
|
|
* @method static AsciiChar CODE_161() |
179
|
|
|
* @method static AsciiChar CODE_162() |
180
|
|
|
* @method static AsciiChar CODE_163() |
181
|
|
|
* @method static AsciiChar CODE_164() |
182
|
|
|
* @method static AsciiChar CODE_165() |
183
|
|
|
* @method static AsciiChar CODE_166() |
184
|
|
|
* @method static AsciiChar CODE_167() |
185
|
|
|
* @method static AsciiChar CODE_168() |
186
|
|
|
* @method static AsciiChar CODE_169() |
187
|
|
|
* @method static AsciiChar CODE_170() |
188
|
|
|
* @method static AsciiChar CODE_171() |
189
|
|
|
* @method static AsciiChar CODE_172() |
190
|
|
|
* @method static AsciiChar CODE_173() |
191
|
|
|
* @method static AsciiChar CODE_174() |
192
|
|
|
* @method static AsciiChar CODE_175() |
193
|
|
|
* @method static AsciiChar CODE_176() |
194
|
|
|
* @method static AsciiChar CODE_177() |
195
|
|
|
* @method static AsciiChar CODE_178() |
196
|
|
|
* @method static AsciiChar CODE_179() |
197
|
|
|
* @method static AsciiChar CODE_180() |
198
|
|
|
* @method static AsciiChar CODE_181() |
199
|
|
|
* @method static AsciiChar CODE_182() |
200
|
|
|
* @method static AsciiChar CODE_183() |
201
|
|
|
* @method static AsciiChar CODE_184() |
202
|
|
|
* @method static AsciiChar CODE_185() |
203
|
|
|
* @method static AsciiChar CODE_186() |
204
|
|
|
* @method static AsciiChar CODE_187() |
205
|
|
|
* @method static AsciiChar CODE_188() |
206
|
|
|
* @method static AsciiChar CODE_189() |
207
|
|
|
* @method static AsciiChar CODE_190() |
208
|
|
|
* @method static AsciiChar CODE_191() |
209
|
|
|
* @method static AsciiChar CODE_192() |
210
|
|
|
* @method static AsciiChar CODE_193() |
211
|
|
|
* @method static AsciiChar CODE_194() |
212
|
|
|
* @method static AsciiChar CODE_195() |
213
|
|
|
* @method static AsciiChar CODE_196() |
214
|
|
|
* @method static AsciiChar CODE_197() |
215
|
|
|
* @method static AsciiChar CODE_198() |
216
|
|
|
* @method static AsciiChar CODE_199() |
217
|
|
|
* @method static AsciiChar CODE_200() |
218
|
|
|
* @method static AsciiChar CODE_201() |
219
|
|
|
* @method static AsciiChar CODE_202() |
220
|
|
|
* @method static AsciiChar CODE_203() |
221
|
|
|
* @method static AsciiChar CODE_204() |
222
|
|
|
* @method static AsciiChar CODE_205() |
223
|
|
|
* @method static AsciiChar CODE_206() |
224
|
|
|
* @method static AsciiChar CODE_207() |
225
|
|
|
* @method static AsciiChar CODE_208() |
226
|
|
|
* @method static AsciiChar CODE_209() |
227
|
|
|
* @method static AsciiChar CODE_210() |
228
|
|
|
* @method static AsciiChar CODE_211() |
229
|
|
|
* @method static AsciiChar CODE_212() |
230
|
|
|
* @method static AsciiChar CODE_213() |
231
|
|
|
* @method static AsciiChar CODE_214() |
232
|
|
|
* @method static AsciiChar CODE_215() |
233
|
|
|
* @method static AsciiChar CODE_216() |
234
|
|
|
* @method static AsciiChar CODE_217() |
235
|
|
|
* @method static AsciiChar CODE_218() |
236
|
|
|
* @method static AsciiChar CODE_219() |
237
|
|
|
* @method static AsciiChar CODE_220() |
238
|
|
|
* @method static AsciiChar CODE_221() |
239
|
|
|
* @method static AsciiChar CODE_222() |
240
|
|
|
* @method static AsciiChar CODE_223() |
241
|
|
|
* @method static AsciiChar CODE_224() |
242
|
|
|
* @method static AsciiChar CODE_225() |
243
|
|
|
* @method static AsciiChar CODE_226() |
244
|
|
|
* @method static AsciiChar CODE_227() |
245
|
|
|
* @method static AsciiChar CODE_228() |
246
|
|
|
* @method static AsciiChar CODE_229() |
247
|
|
|
* @method static AsciiChar CODE_230() |
248
|
|
|
* @method static AsciiChar CODE_231() |
249
|
|
|
* @method static AsciiChar CODE_232() |
250
|
|
|
* @method static AsciiChar CODE_233() |
251
|
|
|
* @method static AsciiChar CODE_234() |
252
|
|
|
* @method static AsciiChar CODE_235() |
253
|
|
|
* @method static AsciiChar CODE_236() |
254
|
|
|
* @method static AsciiChar CODE_237() |
255
|
|
|
* @method static AsciiChar CODE_238() |
256
|
|
|
* @method static AsciiChar CODE_239() |
257
|
|
|
* @method static AsciiChar CODE_240() |
258
|
|
|
* @method static AsciiChar CODE_241() |
259
|
|
|
* @method static AsciiChar CODE_242() |
260
|
|
|
* @method static AsciiChar CODE_243() |
261
|
|
|
* @method static AsciiChar CODE_244() |
262
|
|
|
* @method static AsciiChar CODE_245() |
263
|
|
|
* @method static AsciiChar CODE_246() |
264
|
|
|
* @method static AsciiChar CODE_247() |
265
|
|
|
* @method static AsciiChar CODE_248() |
266
|
|
|
* @method static AsciiChar CODE_249() |
267
|
|
|
* @method static AsciiChar CODE_250() |
268
|
|
|
* @method static AsciiChar CODE_251() |
269
|
|
|
* @method static AsciiChar CODE_252() |
270
|
|
|
* @method static AsciiChar CODE_253() |
271
|
|
|
* @method static AsciiChar CODE_254() |
272
|
|
|
* @method static AsciiChar CODE_255() |
273
|
|
|
*/ |
274
|
|
|
class AsciiChar extends Enum |
275
|
|
|
{ |
276
|
|
|
const NULL = 0; |
277
|
|
|
const HEADING_START = 1; |
278
|
|
|
const TEXT_START = 2; |
279
|
|
|
const TEXT_END = 3; |
280
|
|
|
const TRANSMISSION_END = 4; |
281
|
|
|
const ENQUIRY = 5; |
282
|
|
|
const ACKNOWLEDGMENT = 6; |
283
|
|
|
const BELL = 7; |
284
|
|
|
const BACKSPACE = 8; |
285
|
|
|
const HORIZONTAL_TAB = 9; |
286
|
|
|
const LINE_FEED = 10; |
287
|
|
|
const VERTICAL_TAB = 11; |
288
|
|
|
const FORM_FEED = 12; |
289
|
|
|
const CARRIAGE_RETURN = 13; |
290
|
|
|
const SHIFT_OUT = 14; |
291
|
|
|
const SHIFT_IN = 15; |
292
|
|
|
const DATA_LINE_ESCAPE = 16; |
293
|
|
|
const DEVICE_CONTROL_1 = 17; |
294
|
|
|
const DEVICE_CONTROL_2 = 18; |
295
|
|
|
const DEVICE_CONTROL_3 = 19; |
296
|
|
|
const DEVICE_CONTROL_4 = 20; |
297
|
|
|
const NEGATIVE_ACKNOWLEDGEMENT = 21; |
298
|
|
|
const SYNCHRONOUS_IDLE = 22; |
299
|
|
|
const TRANSMIT_BLOCK_END = 23; |
300
|
|
|
const CANCEL = 24; |
301
|
|
|
const MEDIUM_END = 25; |
302
|
|
|
const SUBSTITUTE = 26; |
303
|
|
|
const ESCAPE = 27; |
304
|
|
|
const FILE_SEPARATOR = 28; |
305
|
|
|
const GROUP_SEPARATOR = 29; |
306
|
|
|
const RECORD_SEPARATOR = 30; |
307
|
|
|
const UNIT_SEPARATOR = 31; |
308
|
|
|
const SPACE = 32; |
309
|
|
|
const EXCLAMATION_MARK = 33; |
310
|
|
|
const DOUBLE_QUOTES = 34; |
311
|
|
|
const HASHTAG = 35; |
312
|
|
|
const DOLLAR = 36; |
313
|
|
|
const PROCENTTECKEN = 37; |
314
|
|
|
const AMPERSAND = 38; |
315
|
|
|
const SINGLE_QUOTE = 39; |
316
|
|
|
const OPEN_BRACKET = 40; |
317
|
|
|
const CLOSE_BRACKET = 41; |
318
|
|
|
const ASTERISK = 42; |
319
|
|
|
const PLUS = 43; |
320
|
|
|
const COMMA = 44; |
321
|
|
|
const HYPHEN = 45; |
322
|
|
|
const DOT = 46; |
323
|
|
|
const SLASH = 47; |
324
|
|
|
const ZERO = 48; |
325
|
|
|
const ONE = 49; |
326
|
|
|
const TWO = 50; |
327
|
|
|
const THREE = 51; |
328
|
|
|
const FOUR = 52; |
329
|
|
|
const FIVE = 53; |
330
|
|
|
const SIX = 54; |
331
|
|
|
const SEVEN = 55; |
332
|
|
|
const EIGHT = 56; |
333
|
|
|
const NINE = 57; |
334
|
|
|
const COLON = 58; |
335
|
|
|
const SEMICOLON = 59; |
336
|
|
|
const LESS_THAN = 60; |
337
|
|
|
const EQUALS = 61; |
338
|
|
|
const GREATER_THAN = 62; |
339
|
|
|
const QUESTION_MARK = 63; |
340
|
|
|
const AT_SYMBOL = 64; |
341
|
|
|
const A_UPPERCASE = 65; |
342
|
|
|
const B_UPPERCASE = 66; |
343
|
|
|
const C_UPPERCASE = 67; |
344
|
|
|
const D_UPPERCASE = 68; |
345
|
|
|
const E_UPPERCASE = 69; |
346
|
|
|
const F_UPPERCASE = 70; |
347
|
|
|
const G_UPPERCASE = 71; |
348
|
|
|
const H_UPPERCASE = 72; |
349
|
|
|
const I_UPPERCASE = 73; |
350
|
|
|
const J_UPPERCASE = 74; |
351
|
|
|
const K_UPPERCASE = 75; |
352
|
|
|
const L_UPPERCASE = 76; |
353
|
|
|
const M_UPPERCASE = 77; |
354
|
|
|
const N_UPPERCASE = 78; |
355
|
|
|
const O_UPPERCASE = 79; |
356
|
|
|
const P_UPPERCASE = 80; |
357
|
|
|
const Q_UPPERCASE = 81; |
358
|
|
|
const R_UPPERCASE = 82; |
359
|
|
|
const S_UPPERCASE = 83; |
360
|
|
|
const T_UPPERCASE = 84; |
361
|
|
|
const U_UPPERCASE = 85; |
362
|
|
|
const V_UPPERCASE = 86; |
363
|
|
|
const W_UPPERCASE = 87; |
364
|
|
|
const X_UPPERCASE = 88; |
365
|
|
|
const Y_UPPERCASE = 89; |
366
|
|
|
const Z_UPPERCASE = 90; |
367
|
|
|
const OPENING_BRACKET = 91; |
368
|
|
|
const BACKSLASH = 92; |
369
|
|
|
const CLOSING_BRACKET = 93; |
370
|
|
|
const CARET = 94; |
371
|
|
|
const UNDERSCORE = 95; |
372
|
|
|
const GRAVE_ACCENT = 96; |
373
|
|
|
const A_LOWERCASE = 97; |
374
|
|
|
const B_LOWERCASE = 98; |
375
|
|
|
const C_LOWERCASE = 99; |
376
|
|
|
const D_LOWERCASE = 100; |
377
|
|
|
const E_LOWERCASE = 101; |
378
|
|
|
const F_LOWERCASE = 102; |
379
|
|
|
const G_LOWERCASE = 103; |
380
|
|
|
const H_LOWERCASE = 104; |
381
|
|
|
const I_LOWERCASE = 105; |
382
|
|
|
const J_LOWERCASE = 106; |
383
|
|
|
const K_LOWERCASE = 107; |
384
|
|
|
const L_LOWERCASE = 108; |
385
|
|
|
const M_LOWERCASE = 109; |
386
|
|
|
const N_LOWERCASE = 110; |
387
|
|
|
const O_LOWERCASE = 111; |
388
|
|
|
const P_LOWERCASE = 112; |
389
|
|
|
const Q_LOWERCASE = 113; |
390
|
|
|
const R_LOWERCASE = 114; |
391
|
|
|
const S_LOWERCASE = 115; |
392
|
|
|
const T_LOWERCASE = 116; |
393
|
|
|
const U_LOWERCASE = 117; |
394
|
|
|
const V_LOWERCASE = 118; |
395
|
|
|
const W_LOWERCASE = 119; |
396
|
|
|
const X_LOWERCASE = 120; |
397
|
|
|
const Y_LOWERCASE = 121; |
398
|
|
|
const Z_LOWERCASE = 122; |
399
|
|
|
const OPENING_BRACE = 123; |
400
|
|
|
const VERTICAL_BAR = 124; |
401
|
|
|
const CLOSING_BRACE = 125; |
402
|
|
|
const TILDE = 126; |
403
|
|
|
const DELETE = 127; |
404
|
|
|
const CODE_128 = 128; |
405
|
|
|
const CODE_129 = 129; |
406
|
|
|
const CODE_130 = 130; |
407
|
|
|
const CODE_131 = 131; |
408
|
|
|
const CODE_132 = 132; |
409
|
|
|
const CODE_133 = 133; |
410
|
|
|
const CODE_134 = 134; |
411
|
|
|
const CODE_135 = 135; |
412
|
|
|
const CODE_136 = 136; |
413
|
|
|
const CODE_137 = 137; |
414
|
|
|
const CODE_138 = 138; |
415
|
|
|
const CODE_139 = 139; |
416
|
|
|
const CODE_140 = 140; |
417
|
|
|
const CODE_141 = 141; |
418
|
|
|
const CODE_142 = 142; |
419
|
|
|
const CODE_143 = 143; |
420
|
|
|
const CODE_144 = 144; |
421
|
|
|
const CODE_145 = 145; |
422
|
|
|
const CODE_146 = 146; |
423
|
|
|
const CODE_147 = 147; |
424
|
|
|
const CODE_148 = 148; |
425
|
|
|
const CODE_149 = 149; |
426
|
|
|
const CODE_150 = 150; |
427
|
|
|
const CODE_151 = 151; |
428
|
|
|
const CODE_152 = 152; |
429
|
|
|
const CODE_153 = 153; |
430
|
|
|
const CODE_154 = 154; |
431
|
|
|
const CODE_155 = 155; |
432
|
|
|
const CODE_156 = 156; |
433
|
|
|
const CODE_157 = 157; |
434
|
|
|
const CODE_158 = 158; |
435
|
|
|
const CODE_159 = 159; |
436
|
|
|
const CODE_160 = 160; |
437
|
|
|
const CODE_161 = 161; |
438
|
|
|
const CODE_162 = 162; |
439
|
|
|
const CODE_163 = 163; |
440
|
|
|
const CODE_164 = 164; |
441
|
|
|
const CODE_165 = 165; |
442
|
|
|
const CODE_166 = 166; |
443
|
|
|
const CODE_167 = 167; |
444
|
|
|
const CODE_168 = 168; |
445
|
|
|
const CODE_169 = 169; |
446
|
|
|
const CODE_170 = 170; |
447
|
|
|
const CODE_171 = 171; |
448
|
|
|
const CODE_172 = 172; |
449
|
|
|
const CODE_173 = 173; |
450
|
|
|
const CODE_174 = 174; |
451
|
|
|
const CODE_175 = 175; |
452
|
|
|
const CODE_176 = 176; |
453
|
|
|
const CODE_177 = 177; |
454
|
|
|
const CODE_178 = 178; |
455
|
|
|
const CODE_179 = 179; |
456
|
|
|
const CODE_180 = 180; |
457
|
|
|
const CODE_181 = 181; |
458
|
|
|
const CODE_182 = 182; |
459
|
|
|
const CODE_183 = 183; |
460
|
|
|
const CODE_184 = 184; |
461
|
|
|
const CODE_185 = 185; |
462
|
|
|
const CODE_186 = 186; |
463
|
|
|
const CODE_187 = 187; |
464
|
|
|
const CODE_188 = 188; |
465
|
|
|
const CODE_189 = 189; |
466
|
|
|
const CODE_190 = 190; |
467
|
|
|
const CODE_191 = 191; |
468
|
|
|
const CODE_192 = 192; |
469
|
|
|
const CODE_193 = 193; |
470
|
|
|
const CODE_194 = 194; |
471
|
|
|
const CODE_195 = 195; |
472
|
|
|
const CODE_196 = 196; |
473
|
|
|
const CODE_197 = 197; |
474
|
|
|
const CODE_198 = 198; |
475
|
|
|
const CODE_199 = 199; |
476
|
|
|
const CODE_200 = 200; |
477
|
|
|
const CODE_201 = 201; |
478
|
|
|
const CODE_202 = 202; |
479
|
|
|
const CODE_203 = 203; |
480
|
|
|
const CODE_204 = 204; |
481
|
|
|
const CODE_205 = 205; |
482
|
|
|
const CODE_206 = 206; |
483
|
|
|
const CODE_207 = 207; |
484
|
|
|
const CODE_208 = 208; |
485
|
|
|
const CODE_209 = 209; |
486
|
|
|
const CODE_210 = 210; |
487
|
|
|
const CODE_211 = 211; |
488
|
|
|
const CODE_212 = 212; |
489
|
|
|
const CODE_213 = 213; |
490
|
|
|
const CODE_214 = 214; |
491
|
|
|
const CODE_215 = 215; |
492
|
|
|
const CODE_216 = 216; |
493
|
|
|
const CODE_217 = 217; |
494
|
|
|
const CODE_218 = 218; |
495
|
|
|
const CODE_219 = 219; |
496
|
|
|
const CODE_220 = 220; |
497
|
|
|
const CODE_221 = 221; |
498
|
|
|
const CODE_222 = 222; |
499
|
|
|
const CODE_223 = 223; |
500
|
|
|
const CODE_224 = 224; |
501
|
|
|
const CODE_225 = 225; |
502
|
|
|
const CODE_226 = 226; |
503
|
|
|
const CODE_227 = 227; |
504
|
|
|
const CODE_228 = 228; |
505
|
|
|
const CODE_229 = 229; |
506
|
|
|
const CODE_230 = 230; |
507
|
|
|
const CODE_231 = 231; |
508
|
|
|
const CODE_232 = 232; |
509
|
|
|
const CODE_233 = 233; |
510
|
|
|
const CODE_234 = 234; |
511
|
|
|
const CODE_235 = 235; |
512
|
|
|
const CODE_236 = 236; |
513
|
|
|
const CODE_237 = 237; |
514
|
|
|
const CODE_238 = 238; |
515
|
|
|
const CODE_239 = 239; |
516
|
|
|
const CODE_240 = 240; |
517
|
|
|
const CODE_241 = 241; |
518
|
|
|
const CODE_242 = 242; |
519
|
|
|
const CODE_243 = 243; |
520
|
|
|
const CODE_244 = 244; |
521
|
|
|
const CODE_245 = 245; |
522
|
|
|
const CODE_246 = 246; |
523
|
|
|
const CODE_247 = 247; |
524
|
|
|
const CODE_248 = 248; |
525
|
|
|
const CODE_249 = 249; |
526
|
|
|
const CODE_250 = 250; |
527
|
|
|
const CODE_251 = 251; |
528
|
|
|
const CODE_252 = 252; |
529
|
|
|
const CODE_253 = 253; |
530
|
|
|
const CODE_254 = 254; |
531
|
|
|
const CODE_255 = 255; |
532
|
|
|
|
533
|
|
|
/** |
534
|
|
|
* ascii table symbol as char |
535
|
|
|
* @return string |
536
|
|
|
*/ |
537
|
|
|
public function __toString() |
538
|
|
|
{ |
539
|
|
|
return $this->getChar(); |
540
|
|
|
} |
541
|
|
|
|
542
|
|
|
/** |
543
|
|
|
* @return string |
544
|
|
|
*/ |
545
|
|
|
public function getChar() : string |
546
|
|
|
{ |
547
|
|
|
return chr($this->getValue()); |
548
|
|
|
} |
549
|
|
|
|
550
|
|
|
/** |
551
|
|
|
* @return int |
552
|
|
|
*/ |
553
|
|
|
public function getDec() : int |
554
|
|
|
{ |
555
|
|
|
return $this->getValue(); |
556
|
|
|
} |
557
|
|
|
|
558
|
|
|
/** |
559
|
|
|
* @return string |
560
|
|
|
*/ |
561
|
|
|
public function getHex() : string |
562
|
|
|
{ |
563
|
|
|
return dechex($this->getDec()); |
564
|
|
|
} |
565
|
|
|
|
566
|
|
|
/** |
567
|
|
|
* @return bool |
568
|
|
|
*/ |
569
|
|
|
public function isControlChar() : bool |
570
|
|
|
{ |
571
|
|
|
return ($this->getDec() >= AsciiChar::NULL && $this->getDec() <= AsciiChar::UNIT_SEPARATOR) |
572
|
|
|
|| $this->getDec() == AsciiChar::DELETE; |
573
|
|
|
} |
574
|
|
|
|
575
|
|
|
/** |
576
|
|
|
* @return bool |
577
|
|
|
*/ |
578
|
|
|
public function isPrintableChar() : bool |
579
|
|
|
{ |
580
|
|
|
return $this->getDec() >= AsciiChar::SPACE && $this->getDec() <= AsciiChar::TILDE; |
581
|
|
|
} |
582
|
|
|
|
583
|
|
|
/** |
584
|
|
|
* @return bool |
585
|
|
|
*/ |
586
|
|
|
public function isWhiteSpace() : bool |
587
|
|
|
{ |
588
|
|
|
return $this->isVerticalSpace() || $this->isHorizontalSpace(); |
589
|
|
|
} |
590
|
|
|
|
591
|
|
|
/** |
592
|
|
|
* @return bool |
593
|
|
|
*/ |
594
|
|
|
public function isHorizontalSpace() : bool |
595
|
|
|
{ |
596
|
|
|
return $this->getDec() == AsciiChar::SPACE || $this->getDec() == AsciiChar::HORIZONTAL_TAB; |
597
|
|
|
} |
598
|
|
|
|
599
|
|
|
/** |
600
|
|
|
* @return bool |
601
|
|
|
*/ |
602
|
|
|
public function isVerticalSpace() : bool |
603
|
|
|
{ |
604
|
|
|
return $this->getDec() == AsciiChar::LINE_FEED || $this->getDec() == AsciiChar::VERTICAL_TAB; |
605
|
|
|
} |
606
|
|
|
|
607
|
|
|
/** |
608
|
|
|
* @return bool |
609
|
|
|
*/ |
610
|
|
|
public function isLetter() : bool |
611
|
|
|
{ |
612
|
|
|
return ($this->getDec() >= AsciiChar::A_UPPERCASE && $this->getDec() <= AsciiChar::Z_UPPERCASE) || |
613
|
|
|
($this->getDec() >= AsciiChar::A_LOWERCASE && $this->getDec() <= AsciiChar::Z_LOWERCASE); |
614
|
|
|
} |
615
|
|
|
|
616
|
|
|
/** |
617
|
|
|
* @return bool |
618
|
|
|
*/ |
619
|
|
|
public function isDigit() : bool |
620
|
|
|
{ |
621
|
|
|
return $this->getDec() >= AsciiChar::ZERO && $this->getDec() <= AsciiChar::NINE; |
622
|
|
|
} |
623
|
|
|
|
624
|
|
|
/** |
625
|
|
|
* @return bool |
626
|
|
|
*/ |
627
|
|
|
public function isExtended() : bool |
628
|
|
|
{ |
629
|
|
|
return $this->getDec() >= AsciiChar::CODE_128; |
630
|
|
|
} |
631
|
|
|
} |