Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- class lucas extends Application{}
- lucas::getThread();
- $string = new DataTypeString('barbäzföoßĐIJᾕ₱❶❷❸ㅳㅵㅸㅘㄸ㊁㚂㹂䜢');
- $charArray = $string->toCharArray();
- $range = new DataTypeArraySegment($charArray, 10, 10);
- $iterator = new Bits(DataTypeStringArray::IT_MODE_LO);
- $reversed = new DataTypeArray($range, $iterator);
- foreach($range as $c) print $c; // prints ĐIJᾕ₱❶❷❸ㅳㅵㅸ
- print "\n\n";
- foreach($reversed as $c) print $c; // prints ㅸㅵㅳ❸❷❶₱ᾕIJĐ
- print "\n\n";
- var_dump($reversed);
- }
- catch(\ILLI\Exception\Base $e)
- {
- print $e->export()->asText();
- }
- catch(\Exception $e)
- {
- var_dump($e);
- }
- /**
- ĐIJᾕ₱❶❷❸ㅳㅵㅸ
- ㅸㅵㅳ❸❷❶₱ᾕIJĐ
- object(ILLI\System\DataTypeArray)#34 (9) {
- ["__RUNTIME_BITS":"ILLI\System\DataTypeArray":private]=>
- object(ILLI\System\Bits)#33 (1) {
- ["__bits":"ILLI\System\Bits":private]=>
- int(4)
- }
- ["__RECOVERABLE_BITS":"ILLI\System\DataTypeArray":private]=>
- NULL
- ["__offsets":"ILLI\System\DataTypeArray":private]=>
- array(10) {
- [0]=>
- int(10)
- [1]=>
- int(11)
- [2]=>
- int(12)
- [3]=>
- int(13)
- [4]=>
- int(14)
- [5]=>
- int(15)
- [6]=>
- int(16)
- [7]=>
- int(17)
- [8]=>
- int(18)
- [9]=>
- int(19)
- }
- ["__indexes":"ILLI\System\DataTypeArray":private]=>
- array(10) {
- [10]=>
- int(0)
- [11]=>
- int(1)
- [12]=>
- int(2)
- [13]=>
- int(3)
- [14]=>
- int(4)
- [15]=>
- int(5)
- [16]=>
- int(6)
- [17]=>
- int(7)
- [18]=>
- int(8)
- [19]=>
- int(9)
- }
- ["__itIndex":"ILLI\System\DataTypeArray":private]=>
- int(-1)
- ["__lastOffsetInsert":"ILLI\System\DataTypeArray":private]=>
- NULL
- ["__lastOffsetChange":"ILLI\System\DataTypeArray":private]=>
- NULL
- ["__value":protected]=>
- array(10) {
- [10]=>
- object(ILLI\System\DataTypeChar)#15 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(196144)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(5) "2fe30"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(272)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(3) "110"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+0110"
- ["__value":protected]=>
- string(2) "Đ"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(2) "Đ"
- }
- [11]=>
- object(ILLI\System\DataTypeChar)#16 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(196178)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(5) "2fe52"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(306)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(3) "132"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+0132"
- ["__value":protected]=>
- string(2) "IJ"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(2) "IJ"
- }
- [12]=>
- object(ILLI\System\DataTypeChar)#17 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(225190149)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d6c2105"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(8085)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "1f95"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+1f95"
- ["__value":protected]=>
- string(3) "ᾕ"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "ᾕ"
- }
- [13]=>
- object(ILLI\System\DataTypeChar)#18 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(226130177)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d7a7901"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(8369)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "20b1"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+20b1"
- ["__value":protected]=>
- string(3) "₱"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "₱"
- }
- [14]=>
- object(ILLI\System\DataTypeChar)#19 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(226157182)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d7ae27e"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(10102)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "2776"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+2776"
- ["__value":protected]=>
- string(3) "❶"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "❶"
- }
- [15]=>
- object(ILLI\System\DataTypeChar)#20 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(226157183)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d7ae27f"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(10103)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "2777"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+2777"
- ["__value":protected]=>
- string(3) "❷"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "❷"
- }
- [16]=>
- object(ILLI\System\DataTypeChar)#21 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(226157184)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d7ae280"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(10104)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "2778"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+2778"
- ["__value":protected]=>
- string(3) "❸"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "❸"
- }
- [17]=>
- object(ILLI\System\DataTypeChar)#22 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(227133179)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d89c6fb"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(12659)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "3173"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+3173"
- ["__value":protected]=>
- string(3) "ㅳ"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "ㅳ"
- }
- [18]=>
- object(ILLI\System\DataTypeChar)#23 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(227133181)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d89c6fd"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(12661)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "3175"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+3175"
- ["__value":protected]=>
- string(3) "ㅵ"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "ㅵ"
- }
- [19]=>
- object(ILLI\System\DataTypeChar)#24 (8) {
- ["__isMultibyte":"ILLI\System\DataTypeChar":private]=>
- bool(true)
- ["__dec":"ILLI\System\DataTypeChar":private]=>
- int(227133184)
- ["__dechex":"ILLI\System\DataTypeChar":private]=>
- string(7) "d89c700"
- ["__uni":"ILLI\System\DataTypeChar":private]=>
- int(12664)
- ["__unihex":"ILLI\System\DataTypeChar":private]=>
- string(4) "3178"
- ["__codePoint":"ILLI\System\DataTypeChar":private]=>
- string(6) "U+3178"
- ["__value":protected]=>
- string(3) "ㅸ"
- ["__initialValue":"ILLI\System\DataType":private]=>
- string(3) "ㅸ"
- }
- }
- ["__initialValue":"ILLI\System\DataType":private]=>
- *the init string*
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement