smntc
an in-memory multimodal graph database
Loading...
Searching...
No Matches
Data Structures | Functions
Utf8.c File Reference
#include <wchar.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "errors.h"
#include <stdio.h>
+ Include dependency graph for Utf8.c:

Go to the source code of this file.

Data Structures

struct  Utf8
 

Functions

struct Utf8Utf8_construct (char *locale, int *error)
 
struct Utf8Utf8_destruct (struct Utf8 *this)
 
char * Utf8_encode (struct Utf8 *this, const wchar_t *wchars, int *error)
 
wchar_t * Utf8_decode (struct Utf8 *this, const char *chars, int *error)
 
size_t Utf8_countCodes (struct Utf8 *this, const char *chars, int *error)
 

Function Documentation

◆ Utf8_construct()

struct Utf8 * Utf8_construct ( char *  locale,
int *  error 
)

Definition at line 17 of file Utf8.c.

◆ Utf8_countCodes()

size_t Utf8_countCodes ( struct Utf8 this,
const char *  chars,
int *  error 
)

Definition at line 106 of file Utf8.c.

◆ Utf8_decode()

wchar_t * Utf8_decode ( struct Utf8 this,
const char *  chars,
int *  error 
)

Definition at line 80 of file Utf8.c.

◆ Utf8_destruct()

struct Utf8 * Utf8_destruct ( struct Utf8 this)

Definition at line 43 of file Utf8.c.

+ Here is the caller graph for this function:

◆ Utf8_encode()

char * Utf8_encode ( struct Utf8 this,
const wchar_t *  wchars,
int *  error 
)

Definition at line 55 of file Utf8.c.