GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
uniconv-wrappers.c File Reference
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include "uniconv.h"
#include "uniconv-wrappers.h"

Go to the source code of this file.

Functions

uint16_t * octave_u16_conv_from_encoding (const char *fromcode, const char *src, size_t srclen, size_t *lengthp)
 
uint16_t * octave_u16_conv_from_encoding_strict (const char *fromcode, const char *src, size_t srclen, size_t *lengthp)
 
char * octave_u16_conv_to_encoding (const char *tocode, const uint16_t *src, size_t srclen, size_t *lengthp)
 
char * octave_u16_conv_to_encoding_strict (const char *tocode, const uint16_t *src, size_t srclen, size_t *lengthp)
 
char * octave_u32_conv_to_encoding_strict (const char *tocode, const uint32_t *src, size_t srclen, size_t *lengthp)
 
uint8_t * octave_u8_conv_from_encoding (const char *fromcode, const char *src, size_t srclen, size_t *lengthp)
 
uint8_t * octave_u8_conv_from_encoding_offsets (const char *fromcode, const char *src, size_t srclen, size_t *offsets, size_t *lengthp)
 
char * octave_u8_conv_to_encoding (const char *tocode, const uint8_t *src, size_t srclen, size_t *lengthp)
 
char * octave_u8_conv_to_encoding_offsets (const char *tocode, const uint8_t *src, size_t srclen, size_t *offsets, size_t *lengthp)
 
char * octave_u8_conv_to_encoding_strict (const char *tocode, const uint8_t *src, size_t srclen, size_t *lengthp)
 
char * u8_from_wchar (const wchar_t *wc)
 
wchar_t * u8_to_wchar (const char *u8)
 

Function Documentation

◆ octave_u16_conv_from_encoding()

uint16_t* octave_u16_conv_from_encoding ( const char *  fromcode,
const char *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 114 of file uniconv-wrappers.c.

◆ octave_u16_conv_from_encoding_strict()

uint16_t* octave_u16_conv_from_encoding_strict ( const char *  fromcode,
const char *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 122 of file uniconv-wrappers.c.

◆ octave_u16_conv_to_encoding()

char* octave_u16_conv_to_encoding ( const char *  tocode,
const uint16_t *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 130 of file uniconv-wrappers.c.

◆ octave_u16_conv_to_encoding_strict()

char* octave_u16_conv_to_encoding_strict ( const char *  tocode,
const uint16_t *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 138 of file uniconv-wrappers.c.

◆ octave_u32_conv_to_encoding_strict()

char* octave_u32_conv_to_encoding_strict ( const char *  tocode,
const uint32_t *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 146 of file uniconv-wrappers.c.

◆ octave_u8_conv_from_encoding()

uint8_t* octave_u8_conv_from_encoding ( const char *  fromcode,
const char *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 44 of file uniconv-wrappers.c.

Referenced by F__native2unicode__().

◆ octave_u8_conv_from_encoding_offsets()

uint8_t* octave_u8_conv_from_encoding_offsets ( const char *  fromcode,
const char *  src,
size_t  srclen,
size_t *  offsets,
size_t *  lengthp 
)

Definition at line 154 of file uniconv-wrappers.c.

◆ octave_u8_conv_to_encoding()

char* octave_u8_conv_to_encoding ( const char *  tocode,
const uint8_t *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 98 of file uniconv-wrappers.c.

Referenced by F__unicode2native__().

◆ octave_u8_conv_to_encoding_offsets()

char* octave_u8_conv_to_encoding_offsets ( const char *  tocode,
const uint8_t *  src,
size_t  srclen,
size_t *  offsets,
size_t *  lengthp 
)

Definition at line 163 of file uniconv-wrappers.c.

◆ octave_u8_conv_to_encoding_strict()

char* octave_u8_conv_to_encoding_strict ( const char *  tocode,
const uint8_t *  src,
size_t  srclen,
size_t *  lengthp 
)

Definition at line 106 of file uniconv-wrappers.c.

Referenced by get_ASCII_filename().

◆ u8_from_wchar()

char* u8_from_wchar ( const wchar_t *  wc)

Definition at line 172 of file uniconv-wrappers.c.

References free(), and malloc().

Referenced by octave_getcwd_wrapper().

◆ u8_to_wchar()