GNU Octave  8.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"
Include dependency graph for uniconv-wrappers.c:

Go to the source code of this file.

Functions

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_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 68 of file uniconv-wrappers.c.

Referenced by file_editor_tab::check_valid_codec().

◆ 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 76 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 52 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 85 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 60 of file uniconv-wrappers.c.

Referenced by get_ASCII_filename().

◆ u8_from_wchar()

char* u8_from_wchar ( const wchar_t *  wc)

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

References free(), and malloc().

Referenced by octave_getcwd_wrapper().

◆ u8_to_wchar()