FreeBASIC  0.91.0
utf_core.c File Reference
#include "fb.h"
Include dependency graph for utf_core.c:

Go to the source code of this file.

Functions

void fb_hCharToUTF8 (const char *src, ssize_t chars, char *dst, ssize_t *total_bytes)
 

Variables

const UTF_8 __fb_utf8_bmarkTb [7]
 
const char __fb_utf8_trailingTb [256]
 
const UTF_32 __fb_utf8_offsetsTb [6]
 

Function Documentation

void fb_hCharToUTF8 ( const char *  src,
ssize_t  chars,
char *  dst,
ssize_t *  total_bytes 
)

Definition at line 29 of file utf_core.c.

Here is the caller graph for this function:

Variable Documentation

const UTF_8 __fb_utf8_bmarkTb[7]
Initial value:
=
{
0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC
}

Definition at line 7 of file utf_core.c.

const UTF_32 __fb_utf8_offsetsTb[6]
Initial value:
=
{
0x00000000UL, 0x00003080UL, 0x000E2080UL, 0x03C82080UL, 0xFA082080UL, 0x82082080UL
}

Definition at line 24 of file utf_core.c.

const char __fb_utf8_trailingTb[256]
Initial value:
=
{
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
}

Definition at line 12 of file utf_core.c.