LMMS
Loading...
Searching...
No Matches
ysfx_utils.cpp File Reference
#include "ysfx_utils.hpp"
#include "base64/Base64.hpp"
#include <system_error>
#include <algorithm>
#include <deque>
#include <clocale>
#include <cstring>
#include <cassert>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <dirent.h>
#include <fcntl.h>

Namespaces

namespace  ysfx

Functions

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

Function Documentation

◆ ysfx_wdl_atof()

double ysfx_wdl_atof ( const char * text)