LMMS
Loading...
Searching...
No Matches
ysfx Namespace Reference

Functions

FILE * fopen_utf8 (const char *path, const char *mode)
int64_t fseek_lfs (FILE *stream, int64_t off, int whence)
int64_t ftell_lfs (FILE *stream)
c_locale_t c_numeric_locale ()
double c_atof (const char *text, c_locale_t loc)
double c_strtod (const char *text, char **endp, c_locale_t loc)
double dot_atof (const char *text)
double dot_strtod (const char *text, char **endp)
bool ascii_isspace (char c)
bool ascii_isalpha (char c)
char ascii_tolower (char c)
char ascii_toupper (char c)
int ascii_casecmp (const char *a, const char *b)
uint32_t latin1_toupper (uint32_t c)
uint32_t latin1_tolower (uint32_t c)
char * strdup_using_new (const char *src)
string_list split_strings_noempty (const char *input, bool(*pred)(char))
std::string trim (const char *input, bool(*pred)(char))
void pack_u32le (uint32_t value, uint8_t data[4])
void pack_f32le (float value, uint8_t data[4])
uint32_t unpack_u32le (const uint8_t data[4])
float unpack_f32le (const uint8_t data[4])
std::vector< uint8_tdecode_base64 (const char *text, size_t len)
std::string encode_base64 (const uint8_t *data, size_t len)
bool get_file_uid (const char *path, file_uid &uid)
bool get_stream_file_uid (FILE *stream, file_uid &uid)
bool get_descriptor_file_uid (int fd, file_uid &uid)
bool is_path_separator (char ch)
split_path_t split_path (const char *path)
std::string path_file_name (const char *path)
std::string path_directory (const char *path)
std::string path_ensure_final_separator (const char *path)
bool path_has_suffix (const char *path, const char *suffix)
bool path_is_relative (const char *path)
bool exists (const char *path)
string_list list_directory (const char *path)
int case_resolve (const char *root_, const char *fragment, std::string &result)
void visit_directories (const char *rootpath, bool(*visit)(const std::string &, void *), void *data)

Function Documentation

◆ ascii_casecmp()

int ysfx::ascii_casecmp ( const char * a,
const char * b )

◆ ascii_isalpha()

bool ysfx::ascii_isalpha ( char c)

◆ ascii_isspace()

bool ysfx::ascii_isspace ( char c)

◆ ascii_tolower()

char ysfx::ascii_tolower ( char c)

◆ ascii_toupper()

char ysfx::ascii_toupper ( char c)

◆ c_atof()

double ysfx::c_atof ( const char * text,
c_locale_t loc )

◆ c_numeric_locale()

c_locale_t ysfx::c_numeric_locale ( )

◆ c_strtod()

double ysfx::c_strtod ( const char * text,
char ** endp,
c_locale_t loc )

◆ case_resolve()

int ysfx::case_resolve ( const char * root_,
const char * fragment,
std::string & result )

◆ decode_base64()

std::vector< uint8_t > ysfx::decode_base64 ( const char * text,
size_t len )

◆ dot_atof()

double ysfx::dot_atof ( const char * text)

◆ dot_strtod()

double ysfx::dot_strtod ( const char * text,
char ** endp )

◆ encode_base64()

std::string ysfx::encode_base64 ( const uint8_t * data,
size_t len )

◆ exists()

bool ysfx::exists ( const char * path)

◆ fopen_utf8()

FILE * ysfx::fopen_utf8 ( const char * path,
const char * mode )

◆ fseek_lfs()

int64_t ysfx::fseek_lfs ( FILE * stream,
int64_t off,
int whence )

◆ ftell_lfs()

int64_t ysfx::ftell_lfs ( FILE * stream)

◆ get_descriptor_file_uid()

bool ysfx::get_descriptor_file_uid ( int fd,
file_uid & uid )

◆ get_file_uid()

bool ysfx::get_file_uid ( const char * path,
file_uid & uid )

◆ get_stream_file_uid()

bool ysfx::get_stream_file_uid ( FILE * stream,
file_uid & uid )

◆ is_path_separator()

bool ysfx::is_path_separator ( char ch)

◆ latin1_tolower()

uint32_t ysfx::latin1_tolower ( uint32_t c)

◆ latin1_toupper()

uint32_t ysfx::latin1_toupper ( uint32_t c)

◆ list_directory()

string_list ysfx::list_directory ( const char * path)

◆ pack_f32le()

void ysfx::pack_f32le ( float value,
uint8_t data[4] )

◆ pack_u32le()

void ysfx::pack_u32le ( uint32_t value,
uint8_t data[4] )

◆ path_directory()

std::string ysfx::path_directory ( const char * path)

◆ path_ensure_final_separator()

std::string ysfx::path_ensure_final_separator ( const char * path)

◆ path_file_name()

std::string ysfx::path_file_name ( const char * path)

◆ path_has_suffix()

bool ysfx::path_has_suffix ( const char * path,
const char * suffix )

◆ path_is_relative()

bool ysfx::path_is_relative ( const char * path)

◆ split_path()

split_path_t ysfx::split_path ( const char * path)

◆ split_strings_noempty()

string_list ysfx::split_strings_noempty ( const char * input,
bool(* pred )(char) )

◆ strdup_using_new()

char * ysfx::strdup_using_new ( const char * src)

◆ trim()

std::string ysfx::trim ( const char * input,
bool(* pred )(char) )

◆ unpack_f32le()

float ysfx::unpack_f32le ( const uint8_t data[4])

◆ unpack_u32le()

uint32_t ysfx::unpack_u32le ( const uint8_t data[4])

◆ visit_directories()

void ysfx::visit_directories ( const char * rootpath,
bool(* visit )(const std::string &, void *),
void * data )