libqalculate-3.5.0: libqalculate/util.h File Reference

libqalculate-3.5.0

Classes | Functions
util.h File Reference
`#include <libqalculate/includes.h>`
`#include <pthread.h>`
`#include <unistd.h>`

## Classes
class | Thread

## Functions
void | sleep_ms (int milliseconds)
string & | gsub (const string &pattern, const string &sub, string &str)
string & | gsub (const char *pattern, const char *sub, string &str)
string | d2s (double value, int precision=100)
string | i2s (long int value)
const char * | b2yn (bool b, bool capital=true)
const char * | b2tf (bool b, bool capital=true)
const char * | b2oo (bool b, bool capital=true)
string | p2s (void *o)
long int | s2i (const string &str)
long int | s2i (const char *str)
void * | s2p (const string &str)
void * | s2p (const char *str)
void | now (int &hour, int &min, int &sec)
size_t | find_ending_bracket (const string &str, size_t start, int *missing=NULL)
char | op2ch (MathOperation op)
string & | wrap_p (string &str)
string & | remove_blanks (string &str)
string & | remove_duplicate_blanks (string &str)
string & | remove_blank_ends (string &str)
string & | remove_parenthesis (string &str)
bool | is_in (const char *str, char c)
bool | is_not_in (const char *str, char c)
bool | is_in (const string &str, char c)
bool | is_not_in (const string &str, char c)
int | sign_place (string *str, size_t start=0)
int | gcd (int i1, int i2)
char * | locale_to_utf8 (const char *str)
char * | locale_from_utf8 (const char *str)
char * | utf8_strdown (const char *str, int l=-1)
size_t | unicode_length (const string &str)
size_t | unicode_length (const char *str)
bool | text_length_is_one (const string &str)
bool | equalsIgnoreCase (const string &str1, const string &str2)
bool | equalsIgnoreCase (const string &str1, const char *str2)
void | parse_qalculate_version (string qalculate_version, int *qalculate_version_numbers)
string | getOldLocalDir ()
string | getLocalDir ()
string | getPackageDataDir ()
string | getGlobalDefinitionsDir ()
string | getPackageLocaleDir ()
string | getLocalDataDir ()
string | getLocalTmpDir ()
string | buildPath (string dir, string filename)
string | buildPath (string dir1, string dir2, string filename)
string | buildPath (string dir1, string dir2, string dir3, string filename)
bool | dirExists (string dirpath)
bool | fileExists (string dirpath)
bool | makeDir (string dirpath)
bool | recursiveMakeDir (string dirpath)
bool | removeDir (string dirpath)
bool | move_file (const char *from_file, const char *to_file)
int | checkAvailableVersion (const char *version_id, const char *current_version, string *avaible_version=NULL, int timeout=5)