diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 12:04:10 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 13:17:25 +0200 |
commit | fdfb390f0759a331981f3a0cd4f36bb641a2b427 (patch) | |
tree | 0dd6681d3c63574255941ea3294f2f62b64ba136 | |
parent | 5be772a19ccb4ad7dda871e50e9349484de92d56 (diff) | |
download | php-git-fdfb390f0759a331981f3a0cd4f36bb641a2b427.tar.gz |
Remove unused php_mbX_int_to_char() functions
-rw-r--r-- | ext/standard/html.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c index 0cdfca6d85..0de4679788 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -494,47 +494,6 @@ static inline size_t php_utf32_utf8(unsigned char *buf, unsigned k) } /* }}} */ -/* {{{ php_mb2_int_to_char - * Convert back big endian int representation of sequence of one or two 8-bit code units. */ -static inline size_t php_mb2_int_to_char(unsigned char *buf, unsigned k) -{ - assert(k <= 0xFFFFU); - /* one or two bytes */ - if (k <= 0xFFU) { /* 1 */ - buf[0] = k; - return 1U; - } else { /* 2 */ - buf[0] = k >> 8; - buf[1] = k & 0xFFU; - return 2U; - } -} -/* }}} */ - -/* {{{ php_mb3_int_to_char - * Convert back big endian int representation of sequence of one to three 8-bit code units. - * For EUC-JP. */ -static inline size_t php_mb3_int_to_char(unsigned char *buf, unsigned k) -{ - assert(k <= 0xFFFFFFU); - /* one to three bytes */ - if (k <= 0xFFU) { /* 1 */ - buf[0] = k; - return 1U; - } else if (k <= 0xFFFFU) { /* 2 */ - buf[0] = k >> 8; - buf[1] = k & 0xFFU; - return 2U; - } else { - buf[0] = k >> 16; - buf[1] = (k >> 8) & 0xFFU; - buf[2] = k & 0xFFU; - return 3U; - } -} -/* }}} */ - - /* {{{ unimap_bsearc_cmp * Binary search of unicode code points in unicode <--> charset mapping. * Returns the code point in the target charset (whose mapping table was given) or 0 if |