1 | <?php |
||
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() |
||
541 | |||
542 | /** |
||
543 | * @return string |
||
544 | */ |
||
545 | public function getChar() : string |
||
549 | |||
550 | /** |
||
551 | * @return int |
||
552 | */ |
||
553 | public function getDec() : int |
||
557 | |||
558 | /** |
||
559 | * @return string |
||
560 | */ |
||
561 | public function getHex() : string |
||
565 | |||
566 | /** |
||
567 | * @return bool |
||
568 | */ |
||
569 | public function isControlChar() : bool |
||
574 | |||
575 | /** |
||
576 | * @return bool |
||
577 | */ |
||
578 | public function isPrintableChar() : bool |
||
582 | |||
583 | /** |
||
584 | * @return bool |
||
585 | */ |
||
586 | public function isWhiteSpace() : bool |
||
590 | |||
591 | /** |
||
592 | * @return bool |
||
593 | */ |
||
594 | public function isHorizontalSpace() : bool |
||
598 | |||
599 | /** |
||
600 | * @return bool |
||
601 | */ |
||
602 | public function isVerticalSpace() : bool |
||
606 | |||
607 | /** |
||
608 | * @return bool |
||
609 | */ |
||
610 | public function isLetter() : bool |
||
615 | |||
616 | /** |
||
617 | * @return bool |
||
618 | */ |
||
619 | public function isDigit() : bool |
||
623 | |||
624 | /** |
||
625 | * @return bool |
||
626 | */ |
||
627 | public function isExtended() : bool |
||
631 | } |