source-class-Com.Tecnick.Unicode.Data.Bracket

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
  1: <?php
  2: /**
  3:  * Bracket.php
  4:  *
  5:  * @since       2011-05-23
  6:  * @category    Library
  7:  * @package     UnicodeData
  8:  * @author      Nicola Asuni <info@tecnick.com>
  9:  * @copyright   2011-2015 Nicola Asuni - Tecnick.com LTD
 10:  * @license     http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
 11:  * @link        https://github.com/tecnickcom/tc-lib-unicode-data
 12:  *
 13:  * This file is part of tc-lib-unicode-data software library.
 14:  */
 15: 
 16: namespace Com\Tecnick\Unicode\Data;
 17: 
 18: /**
 19:  * Com\Tecnick\Unicode\Data\Bracket
 20:  *
 21:  * @since       2011-05-23
 22:  * @category    Library
 23:  * @package     UnicodeData
 24:  * @author      Nicola Asuni <info@tecnick.com>
 25:  * @copyright   2011-2015 Nicola Asuni - Tecnick.com LTD
 26:  * @license     http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
 27:  * @link        https://github.com/tecnickcom/tc-lib-unicode-data
 28:  */
 29: class Bracket
 30: {
 31:     /**
 32:      * Bracket unicode characters (open bracket code => close bracket code)
 33:      *
 34:      * @var array
 35:      */
 36:     public static $open = array(
 37:         0x0028=>0x0029, // PARENTHESIS
 38:         0x005B=>0x005D, // SQUARE BRACKET
 39:         0x007B=>0x007D, // CURLY BRACKET
 40:         0x0F3A=>0x0F3B, // TIBETAN MARK GUG RTAGS GYON
 41:         0x0F3C=>0x0F3D, // TIBETAN MARK ANG KHANG GYON
 42:         0x169B=>0x169C, // OGHAM FEATHER MARK
 43:         0x2045=>0x2046, // SQUARE BRACKET WITH QUILL
 44:         0x207D=>0x207E, // SUPERSCRIPT PARENTHESIS
 45:         0x208D=>0x208E, // SUBSCRIPT PARENTHESIS
 46:         0x2308=>0x2309, // CEILING
 47:         0x230A=>0x230B, // FLOOR
 48:         0x2329=>0x232A, // POINTING ANGLE BRACKET
 49:         0x2768=>0x2769, // MEDIUM PARENTHESIS ORNAMENT
 50:         0x276A=>0x276B, // MEDIUM FLATTENED PARENTHESIS ORNAMENT
 51:         0x276C=>0x276D, // MEDIUM POINTING ANGLE BRACKET ORNAMENT
 52:         0x276E=>0x276F, // HEAVY POINTING ANGLE QUOTATION MARK ORNAMENT
 53:         0x2770=>0x2771, // HEAVY POINTING ANGLE BRACKET ORNAMENT
 54:         0x2772=>0x2773, // LIGHT TORTOISE SHELL BRACKET ORNAMENT
 55:         0x2774=>0x2775, // MEDIUM CURLY BRACKET ORNAMENT
 56:         0x27C5=>0x27C6, // S-SHAPED BAG DELIMITER
 57:         0x27E6=>0x27E7, // MATHEMATICAL WHITE SQUARE BRACKET
 58:         0x27E8=>0x27E9, // MATHEMATICAL ANGLE BRACKET
 59:         0x27EA=>0x27EB, // MATHEMATICAL DOUBLE ANGLE BRACKET
 60:         0x27EC=>0x27ED, // MATHEMATICAL WHITE TORTOISE SHELL BRACKET
 61:         0x27EE=>0x27EF, // MATHEMATICAL FLATTENED PARENTHESIS
 62:         0x2983=>0x2984, // WHITE CURLY BRACKET
 63:         0x2985=>0x2986, // WHITE PARENTHESIS
 64:         0x2987=>0x2988, // Z NOTATION IMAGE BRACKET
 65:         0x2989=>0x298A, // Z NOTATION BINDING BRACKET
 66:         0x298B=>0x298C, // SQUARE BRACKET WITH UNDERBAR
 67:         0x298D=>0x2990, // SQUARE BRACKET WITH TICK IN TOP CORNER
 68:         0x298F=>0x298E, // SQUARE BRACKET WITH TICK IN BOTTOM CORNER
 69:         0x2991=>0x2992, // ANGLE BRACKET WITH DOT
 70:         0x2993=>0x2994, // ARC LESS-THAN BRACKET
 71:         0x2995=>0x2996, // DOUBLE ARC GREATER-THAN BRACKET
 72:         0x2997=>0x2998, // BLACK TORTOISE SHELL BRACKET
 73:         0x29D8=>0x29D9, // WIGGLY FENCE
 74:         0x29DA=>0x29DB, // DOUBLE WIGGLY FENCE
 75:         0x29FC=>0x29FD, // POINTING CURVED ANGLE BRACKET
 76:         0x2E22=>0x2E23, // TOP HALF BRACKET
 77:         0x2E24=>0x2E25, // BOTTOM HALF BRACKET
 78:         0x2E26=>0x2E27, // SIDEWAYS U BRACKET
 79:         0x2E28=>0x2E29, // DOUBLE PARENTHESIS
 80:         0x3008=>0x3009, // ANGLE BRACKET
 81:         0x300A=>0x300B, // DOUBLE ANGLE BRACKET
 82:         0x300C=>0x300D, // CORNER BRACKET
 83:         0x300E=>0x300F, // WHITE CORNER BRACKET
 84:         0x3010=>0x3011, // BLACK LENTICULAR BRACKET
 85:         0x3014=>0x3015, // TORTOISE SHELL BRACKET
 86:         0x3016=>0x3017, // WHITE LENTICULAR BRACKET
 87:         0x3018=>0x3019, // WHITE TORTOISE SHELL BRACKET
 88:         0x301A=>0x301B, // WHITE SQUARE BRACKET
 89:         0xFE59=>0xFE5A, // SMALL PARENTHESIS
 90:         0xFE5B=>0xFE5C, // SMALL CURLY BRACKET
 91:         0xFE5D=>0xFE5E, // SMALL TORTOISE SHELL BRACKET
 92:         0xFF08=>0xFF09, // FULLWIDTH PARENTHESIS
 93:         0xFF3B=>0xFF3D, // FULLWIDTH SQUARE BRACKET
 94:         0xFF5B=>0xFF5D, // FULLWIDTH CURLY BRACKET
 95:         0xFF5F=>0xFF60, // FULLWIDTH WHITE PARENTHESIS
 96:         0xFF62=>0xFF63  // HALFWIDTH CORNER BRACKET
 97:     );
 98: 
 99:     /**
100:      * Bracket unicode characters (close bracket code => open bracket code)
101:      *
102:      * @var array
103:      */
104:     public static $close = array(
105:         0x0029=>0x0028, // PARENTHESIS
106:         0x005D=>0x005B, // SQUARE BRACKET
107:         0x007D=>0x007B, // CURLY BRACKET
108:         0x0F3B=>0x0F3A, // TIBETAN MARK GUG RTAGS GYON
109:         0x0F3D=>0x0F3C, // TIBETAN MARK ANG KHANG GYON
110:         0x169C=>0x169B, // OGHAM FEATHER MARK
111:         0x2046=>0x2045, // SQUARE BRACKET WITH QUILL
112:         0x207E=>0x207D, // SUPERSCRIPT PARENTHESIS
113:         0x208E=>0x208D, // SUBSCRIPT PARENTHESIS
114:         0x2309=>0x2308, // CEILING
115:         0x230B=>0x230A, // FLOOR
116:         0x232A=>0x2329, // POINTING ANGLE BRACKET
117:         0x2769=>0x2768, // MEDIUM PARENTHESIS ORNAMENT
118:         0x276B=>0x276A, // MEDIUM FLATTENED PARENTHESIS ORNAMENT
119:         0x276D=>0x276C, // MEDIUM POINTING ANGLE BRACKET ORNAMENT
120:         0x276F=>0x276E, // HEAVY POINTING ANGLE QUOTATION MARK ORNAMENT
121:         0x2771=>0x2770, // HEAVY POINTING ANGLE BRACKET ORNAMENT
122:         0x2773=>0x2772, // LIGHT TORTOISE SHELL BRACKET ORNAMENT
123:         0x2775=>0x2774, // MEDIUM CURLY BRACKET ORNAMENT
124:         0x27C6=>0x27C5, // S-SHAPED BAG DELIMITER
125:         0x27E7=>0x27E6, // MATHEMATICAL WHITE SQUARE BRACKET
126:         0x27E9=>0x27E8, // MATHEMATICAL ANGLE BRACKET
127:         0x27EB=>0x27EA, // MATHEMATICAL DOUBLE ANGLE BRACKET
128:         0x27ED=>0x27EC, // MATHEMATICAL WHITE TORTOISE SHELL BRACKET
129:         0x27EF=>0x27EE, // MATHEMATICAL FLATTENED PARENTHESIS
130:         0x2984=>0x2983, // WHITE CURLY BRACKET
131:         0x2986=>0x2985, // WHITE PARENTHESIS
132:         0x2988=>0x2987, // Z NOTATION IMAGE BRACKET
133:         0x298A=>0x2989, // Z NOTATION BINDING BRACKET
134:         0x298C=>0x298B, // SQUARE BRACKET WITH UNDERBAR
135:         0x2990=>0x298D, // SQUARE BRACKET WITH TICK IN TOP CORNER
136:         0x298E=>0x298F, // SQUARE BRACKET WITH TICK IN BOTTOM CORNER
137:         0x2992=>0x2991, // ANGLE BRACKET WITH DOT
138:         0x2994=>0x2993, // ARC LESS-THAN BRACKET
139:         0x2996=>0x2995, // DOUBLE ARC GREATER-THAN BRACKET
140:         0x2998=>0x2997, // BLACK TORTOISE SHELL BRACKET
141:         0x29D9=>0x29D8, // WIGGLY FENCE
142:         0x29DB=>0x29DA, // DOUBLE WIGGLY FENCE
143:         0x29FD=>0x29FC, // POINTING CURVED ANGLE BRACKET
144:         0x2E23=>0x2E22, // TOP HALF BRACKET
145:         0x2E25=>0x2E24, // BOTTOM HALF BRACKET
146:         0x2E27=>0x2E26, // SIDEWAYS U BRACKET
147:         0x2E29=>0x2E28, // DOUBLE PARENTHESIS
148:         0x3009=>0x3008, // ANGLE BRACKET
149:         0x300B=>0x300A, // DOUBLE ANGLE BRACKET
150:         0x300D=>0x300C, // CORNER BRACKET
151:         0x300F=>0x300E, // WHITE CORNER BRACKET
152:         0x3011=>0x3010, // BLACK LENTICULAR BRACKET
153:         0x3015=>0x3014, // TORTOISE SHELL BRACKET
154:         0x3017=>0x3016, // WHITE LENTICULAR BRACKET
155:         0x3019=>0x3018, // WHITE TORTOISE SHELL BRACKET
156:         0x301B=>0x301A, // WHITE SQUARE BRACKET
157:         0xFE5A=>0xFE59, // SMALL PARENTHESIS
158:         0xFE5C=>0xFE5B, // SMALL CURLY BRACKET
159:         0xFE5E=>0xFE5D, // SMALL TORTOISE SHELL BRACKET
160:         0xFF09=>0xFF08, // FULLWIDTH PARENTHESIS
161:         0xFF3D=>0xFF3B, // FULLWIDTH SQUARE BRACKET
162:         0xFF5D=>0xFF5B, // FULLWIDTH CURLY BRACKET
163:         0xFF60=>0xFF5F, // FULLWIDTH WHITE PARENTHESIS
164:         0xFF63=>0xFF62  // HALFWIDTH CORNER BRACKET
165:     );
166: }
167: 
 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy