FFmpeg
Loading...
Searching...
No Matches
utf8.c File Reference
#include <stdio.h>
#include "libavutil/avstring.h"
#include "libavutil/file.h"

Go to the source code of this file.

Functions

static void print_sequence (const char *p, int l, int indent)
 
static void decode (const uint8_t *p, const uint8_t *endp)
 
int main (int argc, char **argv)
 

Variables

static const uint8_t vectors []
 

Function Documentation

◆ print_sequence()

static void print_sequence ( const char * p,
int l,
int indent )
static

Definition at line 43 of file utf8.c.

Referenced by decode().

◆ decode()

static void decode ( const uint8_t * p,
const uint8_t * endp )
static

Definition at line 51 of file utf8.c.

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

Definition at line 76 of file utf8.c.

Variable Documentation

◆ vectors

const uint8_t vectors[]
static
Initial value:
=
"A\n"
"\xC3\xA9\n"
"\xE2\x82\xAC\n"
"\xF0\x9F\x98\x80\n"
"\xF4\x8F\xBF\xBF\n"
"\xF4\x90\x80\x80\n"
"\xF8\x88\x80\x80\x80\n"
"\xC0\x80\n"
"\xE0\x80\x80\n"
"\xED\xA0\x80\n"
"\xEF\xBF\xBF\n"
"\x80\n"
"\xFE\n"
"\xC3" "A\n"
"\xE2\x82"

Definition at line 26 of file utf8.c.

Referenced by decode_frame(), decode_vectors(), and main().