Searched refs:unichar (Results 1 – 4 of 4) sorted by relevance
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | encoding.c | 47 private int looks_ascii(const unsigned char *, size_t, unichar *, size_t *); 48 private int looks_utf8_with_BOM(const unsigned char *, size_t, unichar *, 50 private int looks_utf7(const unsigned char *, size_t, unichar *, size_t *); 51 private int looks_ucs16(const unsigned char *, size_t, unichar *, size_t *); 69 file_encoding(struct magic_set *ms, const struct buffer *b, unichar **ubuf, in file_encoding() 77 unichar *udefbuf; in file_encoding() 91 if ((*ubuf = CAST(unichar *, ecalloc((size_t)1, mlen))) == NULL) { in file_encoding() 243 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, in looks_ascii() 282 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, in looks_extended() 317 unichar c; in file_looks_utf8() [all …]
|
H A D | ascmagic.c | 54 private unsigned char *encode_utf8(unsigned char *, size_t, unichar *, size_t); 73 unichar *ubuf = NULL; in file_ascmagic() 100 const struct buffer *b, unichar *ubuf, size_t ulen, const char *code, in file_ascmagic_with_encoding() 319 encode_utf8(unsigned char *buf, size_t len, unichar *ubuf, size_t ulen) in encode_utf8()
|
H A D | file.h | 444 typedef unsigned long unichar; typedef 468 const struct buffer *, unichar *, size_t, const char *, const char *, int); 470 unichar **, size_t *, const char **, const char **, const char **); 491 protected int file_looks_utf8(const unsigned char *, size_t, unichar *,
|
/PHP-7.3/ext/fileinfo/ |
H A D | libmagic.patch | 2136 - if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) { 2137 + if ((*ubuf = CAST(unichar *, ecalloc((size_t)1, mlen))) == NULL) { 2270 typedef unsigned long unichar;
|
Completed in 23 milliseconds