29 for (i = 0; i < l; i++)
31 printf(
"%*s", indent-l*2,
"");
34 int main(
int argc,
char **argv)
37 char *filename = argv[1];
48 endp = file_buf + file_buf_size;
56 if (code != UINT32_MAX) {
57 printf(
"%-10d 0x%-10X %-5d ", code, code, l);
59 if (*p0 ==
'\n') printf(
"\\n\n");
60 else printf (
"%.*s\n", l, p0);
62 printf(
"invalid code range\n");
65 printf(
"invalid sequence\n");
int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, unsigned int flags)
Read and decode a single UTF-8 code point (character) from the buffer in *buf, and update *buf to poi...
void av_file_unmap(uint8_t *bufptr, size_t size)
Unmap or free the buffer bufptr created by av_file_map().
int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, int log_offset, void *log_ctx)
Read the file with name filename, and put its content in a newly allocated buffer or map it with mmap...
int main(int argc, char **argv)
static void print_sequence(const char *p, int l, int indent)