RetroArch
Functions
encoding_utf.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <boolean.h>
#include <compat/strl.h>
#include <retro_inline.h>
#include <encodings/utf.h>
Include dependency graph for encoding_utf.c:
This graph shows which files directly or indirectly include this file:

Functions

static unsigned leading_ones (uint8_t c)
 
size_t utf8_conv_utf32 (uint32_t *out, size_t out_chars, const char *in, size_t in_size)
 
bool utf16_conv_utf8 (uint8_t *out, size_t *out_chars, const uint16_t *in, size_t in_size)
 
size_t utf8cpy (char *d, size_t d_len, const char *s, size_t chars)
 
const char * utf8skip (const char *str, size_t chars)
 
size_t utf8len (const char *string)
 
static uint8_t utf8_walkbyte (const char **string)
 
uint32_t utf8_walk (const char **string)
 
static bool utf16_to_char (uint8_t **utf_data, size_t *dest_len, const uint16_t *in)
 
bool utf16_to_char_string (const uint16_t *in, char *s, size_t len)
 
static char * mb_to_mb_string_alloc (const char *str, enum CodePage cp_in, enum CodePage cp_out)
 
char * utf8_to_local_string_alloc (const char *str)
 
char * local_to_utf8_string_alloc (const char *str)
 
wchar_t * utf8_to_utf16_string_alloc (const char *str)
 
char * utf16_to_utf8_string_alloc (const wchar_t *str)
 

Function Documentation

◆ leading_ones()

static unsigned leading_ones ( uint8_t  c)
static
Here is the caller graph for this function:

◆ local_to_utf8_string_alloc()

char* local_to_utf8_string_alloc ( const char *  str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mb_to_mb_string_alloc()

static char* mb_to_mb_string_alloc ( const char *  str,
enum CodePage  cp_in,
enum CodePage  cp_out 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf16_conv_utf8()

bool utf16_conv_utf8 ( uint8_t out,
size_t *  out_chars,
const uint16_t in,
size_t  in_size 
)
Here is the caller graph for this function:

◆ utf16_to_char()

static bool utf16_to_char ( uint8_t **  utf_data,
size_t *  dest_len,
const uint16_t in 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf16_to_char_string()

bool utf16_to_char_string ( const uint16_t in,
char *  s,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf16_to_utf8_string_alloc()

char* utf16_to_utf8_string_alloc ( const wchar_t *  str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_conv_utf32()

size_t utf8_conv_utf32 ( uint32_t out,
size_t  out_chars,
const char *  in,
size_t  in_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_to_local_string_alloc()

char* utf8_to_local_string_alloc ( const char *  str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_to_utf16_string_alloc()

wchar_t* utf8_to_utf16_string_alloc ( const char *  str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_walk()

uint32_t utf8_walk ( const char **  string)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_walkbyte()

static uint8_t utf8_walkbyte ( const char **  string)
static
Here is the caller graph for this function:

◆ utf8cpy()

size_t utf8cpy ( char *  d,
size_t  d_len,
const char *  s,
size_t  chars 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8len()

size_t utf8len ( const char *  string)
Here is the caller graph for this function:

◆ utf8skip()

const char* utf8skip ( const char *  str,
size_t  chars 
)
Here is the caller graph for this function: