41#ifdef CONF_FAMILY_UNIX
45#ifdef CONF_PLATFORM_LINUX
46#include <netinet/in.h>
47#include <sys/socket.h>
50#if __cplusplus >= 201703L
51#define MAYBE_UNUSED [[maybe_unused]]
52#elif defined(__GNUC__)
53#define MAYBE_UNUSED __attribute__((unused))
76#define dbg_assert(test, msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
77void dbg_assert_imp(
const char *filename,
int line,
bool test,
const char *msg);
79#ifdef __clang_analyzer__
82#define dbg_assert(test, msg) assert(test)
86#define GNUC_ATTRIBUTE(x) __attribute__(x)
88#define GNUC_ATTRIBUTE(x)
110#if defined(__cplusplus)
131void dbg_msg(
const char *sys,
const char *fmt, ...)
152void mem_copy(
void *dest, const
void *source,
size_t size);
167void mem_move(
void *dest, const
void *source,
size_t size);
180 static_assert((std::is_trivially_constructible<T>::value && std::is_trivially_destructible<T>::value) || std::is_fundamental<T>::value);
181 memset(block, 0, size);
197int mem_comp(
const void *a,
const void *b,
size_t size);
617void *
thread_init(
void (*threadfunc)(
void *),
void *user,
const char *name);
662#if defined(CONF_FAMILY_WINDOWS)
664#elif defined(CONF_PLATFORM_MACOS)
665#include <semaphore.h>
667#elif defined(CONF_FAMILY_UNIX)
668#include <semaphore.h>
671#error not implemented on this platform
790#ifdef CONF_FAMILY_UNIX
1065#if defined(CONF_FAMILY_UNIX)
1113#elif defined(CONF_FAMILY_WINDOWS)
1122std::string windows_format_system_message(
unsigned long error);
1144void str_append(
char *dst,
const char *src,
int dst_size);
1177int str_copy(
char *dst,
const char *src,
int dst_size);
1209void str_utf8_truncate(
char *dst,
int dst_size,
const char *src,
int truncation_len);
1225void str_truncate(
char *dst,
int dst_size,
const char *src,
int truncation_len);
1254int str_format_v(
char *buffer,
int buffer_size,
const char *format, va_list args)
1273int str_format(
char *buffer,
int buffer_size,
const char *format, ...)
1276#if !defined(CONF_DEBUG)
1279template<
typename... Args>
1282 static_assert(
sizeof...(args) > 0,
"Use str_copy instead of str_format without format arguments");
1283 return str_format(buffer, buffer_size, format, args...);
1289 if(strcmp(format,
"%d") == 0)
1295 return str_format(buffer, buffer_size, format, val);
1299#define str_format str_format_opt
1465int str_comp(
const char *a,
const char *b);
1482int str_comp_num(
const char *a,
const char *b,
int num);
1564const char *
str_endswith(
const char *str,
const char *suffix);
1652const char *
str_find(
const char *haystack,
const char *needle);
1684const char *
str_rchr(
const char *haystack,
char needle);
1712void str_hex(
char *dst,
int dst_size,
const void *data,
int data_size);
1728void str_hex_cstyle(
char *dst,
int dst_size,
const void *data,
int data_size,
int bytes_per_line = 12);
1763void str_base64(
char *dst,
int dst_size,
const void *data,
int data_size);
1798void str_timestamp_ex(time_t time,
char *buffer,
int buffer_size,
const char *format)
1816#define FORMAT_TIME "%H:%M:%S"
1817#define FORMAT_SPACE "%Y-%m-%d %H:%M:%S"
1818#define FORMAT_NOSPACE "%Y-%m-%d_%H-%M-%S"
1847int str_time(int64_t centisecs,
int format,
char *buffer,
int buffer_size);
1848int str_time_float(
float secs,
int format,
char *buffer,
int buffer_size);
1860void str_escape(
char **dst,
const char *src,
const char *end);
2025char *
fs_getcwd(
char *buffer,
int buffer_size);
2058void fs_split_file_extension(
const char *filename,
char *name,
size_t name_size,
char *extension =
nullptr,
size_t extension_size = 0);
2099int fs_rename(
const char *oldname,
const char *newname);
2115int fs_file_time(
const char *name, time_t *created, time_t *modified);
2167void swap_endian(
void *data,
unsigned elem_size,
unsigned num);
2180bool str_toint(
const char *str,
int *out);
2287const char *
str_utf8_find_nocase(
const char *haystack,
const char *needle,
const char **end =
nullptr);
2456void str_utf8_stats(
const char *str,
size_t max_size,
size_t max_count,
size_t *size,
size_t *count);
2500const char *
str_next_token(
const char *str,
const char *delim,
char *buffer,
int buffer_size);
2515int str_in_list(
const char *list,
const char *delim,
const char *needle);
2580#if defined(CONF_FAMILY_WINDOWS)
2607#if !defined(CONF_PLATFORM_ANDROID)
2804#if defined(CONF_EXCEPTION_HANDLING)
2815void init_exception_handler();
2824void set_exception_handler_log_file(
const char *log_file_path);
2862#if defined(CONF_FAMILY_WINDOWS)
2876std::wstring windows_utf8_to_wide(
const char *str);
2891std::optional<std::string> windows_wide_to_utf8(
const wchar_t *wide_str);
2903class CWindowsComLifecycle
2906 CWindowsComLifecycle(
bool HasWindow);
2907 ~CWindowsComLifecycle();
2923bool shell_register_protocol(
const char *protocol_name,
const char *executable,
bool *updated);
2940bool shell_register_extension(
const char *extension,
const char *description,
const char *executable_name,
const char *executable,
bool *updated);
2955bool shell_register_application(
const char *name,
const char *executable,
bool *updated);
2971bool shell_unregister_class(
const char *shell_class,
bool *updated);
2985bool shell_unregister_application(
const char *executable,
bool *updated);
3000 size_t operator()(
const NETADDR &Addr)
const noexcept;
Definition: system.h:2845
~CCmdlineFix()
Definition: system.h:2856
int m_Argc
Definition: system.h:2846
const char ** m_ppArgv
Definition: system.h:2847
CCmdlineFix(int *pArgc, const char ***pppArgv)
Definition: system.h:2850
void dbg_break()
Definition: system.cpp:150
bool dbg_assert_has_failed()
Definition: system.cpp:125
void dbg_msg(const char *sys, const char *fmt,...)
Definition: system.cpp:164
void aio_write_newline_unlocked(ASYNCIO *aio)
Definition: system.cpp:700
IOHANDLE io_current_exe()
Definition: system.cpp:411
void aio_wait(ASYNCIO *aio)
Definition: system.cpp:731
int io_skip(IOHANDLE io, int size)
Definition: system.cpp:314
void aio_write_unlocked(ASYNCIO *aio, const void *buffer, unsigned size)
Definition: system.cpp:643
void io_read_all(IOHANDLE io, void **result, unsigned *result_len)
Definition: system.cpp:269
int io_flush(IOHANDLE io)
Definition: system.cpp:373
IOHANDLE io_stderr()
Definition: system.cpp:406
int io_seek(IOHANDLE io, int offset, int origin)
Definition: system.cpp:319
IOHANDLE io_open(const char *filename, int flags)
Definition: system.cpp:202
int io_close(IOHANDLE io)
Definition: system.cpp:368
char * io_read_all_str(IOHANDLE io)
Definition: system.cpp:301
void aio_write(ASYNCIO *aio, const void *buffer, unsigned size)
Definition: system.cpp:693
void aio_write_newline(ASYNCIO *aio)
Definition: system.cpp:709
int aio_error(ASYNCIO *aio)
Definition: system.cpp:716
void aio_free(ASYNCIO *aio)
Definition: system.cpp:747
unsigned io_write(IOHANDLE io, const void *buffer, unsigned size)
Definition: system.cpp:354
bool io_write_newline(IOHANDLE io)
Definition: system.cpp:359
void aio_lock(ASYNCIO *aio)
Definition: system.cpp:632
void aio_close(ASYNCIO *aio)
Definition: system.cpp:722
int io_sync(IOHANDLE io)
Definition: system.cpp:378
IOHANDLE io_stdin()
Definition: system.cpp:396
int io_error(IOHANDLE io)
Definition: system.cpp:391
long int io_length(IOHANDLE io)
Definition: system.cpp:345
IOHANDLE io_stdout()
Definition: system.cpp:401
ASYNCIO * aio_new(IOHANDLE io)
Definition: system.cpp:575
void aio_unlock(ASYNCIO *aio)
Definition: system.cpp:637
unsigned io_read(IOHANDLE io, void *buffer, unsigned size)
Definition: system.cpp:264
long int io_tell(IOHANDLE io)
Definition: system.cpp:340
@ IOSEEK_END
Definition: system.h:258
@ IOSEEK_CUR
Definition: system.h:252
@ IOFLAG_APPEND
Definition: system.h:239
@ IOFLAG_WRITE
Definition: system.h:233
@ IOFLAG_READ
Definition: system.h:227
@ IOSEEK_START
Definition: system.h:246
void fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
Definition: system.cpp:2105
const char * fs_filename(const char *path)
Definition: system.cpp:2422
void fs_split_file_extension(const char *filename, char *name, size_t name_size, char *extension=nullptr, size_t extension_size=0)
Definition: system.cpp:2432
int fs_is_relative_path(const char *path)
Definition: system.cpp:2377
int fs_is_file(const char *path)
Definition: system.cpp:2349
int fs_removedir(const char *path)
Definition: system.cpp:2335
int fs_parent_dir(char *path)
Definition: system.cpp:2455
void fs_listdir_fileinfo(const char *dir, FS_LISTDIR_CALLBACK_FILEINFO cb, int type, void *user)
Definition: system.cpp:2157
char * fs_getcwd(char *buffer, int buffer_size)
Definition: system.cpp:2397
int fs_is_dir(const char *path)
Definition: system.cpp:2363
int fs_file_time(const char *name, time_t *created, time_t *modified)
Definition: system.cpp:2496
int fs_makedir_rec_for(const char *path)
Definition: system.cpp:2291
int fs_storage_path(const char *appname, char *path, int max)
Definition: system.cpp:2224
int fs_chdir(const char *path)
Definition: system.cpp:2387
int fs_remove(const char *filename)
Definition: system.cpp:2472
int fs_rename(const char *oldname, const char *newname)
Definition: system.cpp:2482
int fs_makedir(const char *path)
Definition: system.cpp:2312
void mem_zero(T *block, size_t size)
Definition: system.h:178
void mem_copy(void *dest, const void *source, size_t size)
Definition: system.cpp:174
bool mem_has_null(const void *block, size_t size)
Definition: system.cpp:189
void mem_move(void *dest, const void *source, size_t size)
Definition: system.cpp:179
int mem_comp(const void *a, const void *b, size_t size)
Definition: system.cpp:184
int UNIXSOCKET
Definition: system.h:794
bool net_addr_str(const NETADDR *addr, char *string, int max_length, int add_port)
Definition: system.cpp:1106
int net_addr_comp_noport(const NETADDR *a, const NETADDR *b)
Definition: system.cpp:1031
void net_init()
Definition: system.cpp:2057
int net_addr_comp(const NETADDR *a, const NETADDR *b)
Definition: system.cpp:1021
struct sockaddr_un UNIXSOCKETADDR
Definition: system.h:798
int net_tcp_close(NETSOCKET sock)
Definition: system.cpp:2034
int net_tcp_listen(NETSOCKET sock, int backlog)
Definition: system.cpp:1919
int net_tcp_accept(NETSOCKET sock, NETSOCKET *new_sock, NETADDR *addr)
Definition: system.cpp:1929
int net_tcp_connect(NETSOCKET sock, const NETADDR *addr)
Definition: system.cpp:1976
NETSOCKET net_tcp_create(NETADDR bindaddr)
Definition: system.cpp:1842
int net_tcp_send(NETSOCKET sock, const void *data, int size)
Definition: system.cpp:2010
int net_tcp_recv(NETSOCKET sock, void *data, int maxsize)
Definition: system.cpp:2022
int net_udp_send(NETSOCKET sock, const NETADDR *addr, const void *data, int size)
Definition: system.cpp:1634
int net_udp_close(NETSOCKET sock)
Definition: system.cpp:1837
int net_unix_send(UNIXSOCKET sock, UNIXSOCKETADDR *addr, void *data, int size)
Definition: system.cpp:2071
void net_unix_set_addr(UNIXSOCKETADDR *addr, const char *path)
Definition: system.cpp:2076
UNIXSOCKET net_unix_create_unnamed()
Definition: system.cpp:2066
void net_unix_close(UNIXSOCKET sock)
Definition: system.cpp:2083
void secure_random_password(char *buffer, unsigned length, unsigned pw_length)
Definition: system.cpp:4390
void generate_password(char *buffer, unsigned length, const unsigned short *random, unsigned random_length)
Definition: system.cpp:4370
int secure_rand()
Definition: system.cpp:4430
int secure_random_init()
Definition: system.cpp:4311
int secure_random_uninit()
Definition: system.cpp:4341
void secure_random_fill(void *bytes, unsigned length)
Definition: system.cpp:4406
int secure_rand_below(int below)
Definition: system.cpp:4449
void sphore_signal(SEMAPHORE *sem)
Definition: system.cpp:914
void sphore_destroy(SEMAPHORE *sem)
Definition: system.cpp:918
void sphore_init(SEMAPHORE *sem)
Definition: system.cpp:901
void sphore_wait(SEMAPHORE *sem)
Definition: system.cpp:905
bool os_version_str(char *version, size_t length)
Definition: system.cpp:4465
int kill_process(PROCESS process)
Definition: system.cpp:4203
bool is_process_alive(PROCESS process)
Definition: system.cpp:4223
EShellExecuteWindowState
Definition: system.h:2617
int open_link(const char *link)
Definition: system.cpp:4236
constexpr PROCESS INVALID_PROCESS
Definition: system.h:2605
void cmdline_free(int argc, const char **argv)
Definition: system.cpp:4145
void os_locale_str(char *locale, size_t length)
Definition: system.cpp:4544
void cmdline_fix(int *argc, const char ***argv)
Definition: system.cpp:4107
PROCESS shell_execute(const char *file, EShellExecuteWindowState window_state)
Definition: system.cpp:4154
int open_file(const char *path)
Definition: system.cpp:4276
int pid()
Definition: system.cpp:4098
pid_t PROCESS
Definition: system.h:2599
const char * str_rchr(const char *haystack, char needle)
Definition: system.cpp:3197
char * str_skip_to_whitespace(char *str)
Definition: system.cpp:2886
int str_length(const char *str)
Definition: system.cpp:2754
void str_sanitize(char *str)
Definition: system.cpp:2832
const char * str_startswith(const char *str, const char *prefix)
Definition: system.cpp:2988
bool str_has_cc(const char *str)
Definition: system.cpp:2805
void str_sanitize_cc(char *str)
Definition: system.cpp:2820
const char * str_skip_whitespaces_const(const char *str)
Definition: system.cpp:2907
const char * str_skip_to_whitespace_const(const char *str)
Definition: system.cpp:2893
int str_format_v(char *buffer, int buffer_size, const char *format, va_list args)
Definition: system.cpp:2759
int str_comp_num(const char *a, const char *b, int num)
Definition: system.cpp:2938
void str_utf8_truncate(char *dst, int dst_size, const char *src, int truncation_len)
Definition: system.cpp:2727
int str_comp_filenames(const char *a, const char *b)
Definition: system.cpp:2943
int str_comp_nocase(const char *a, const char *b)
Definition: system.cpp:2915
void str_truncate(char *dst, int dst_size, const char *src, int truncation_len)
Definition: system.cpp:2744
bool str_delimiters_around_offset(const char *haystay, const char *delim, int offset, int *start, int *end)
Definition: system.cpp:3165
int str_countchr(const char *haystack, char needle)
Definition: system.cpp:3202
int str_comp(const char *a, const char *b)
Definition: system.cpp:2933
void str_append(char *dst, const char *src, int dst_size)
Definition: system.cpp:2703
void str_clean_whitespaces(char *str)
Definition: system.cpp:2855
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2720
char * str_skip_whitespaces(char *str)
Definition: system.cpp:2900
int str_comp_nocase_num(const char *a, const char *b, int num)
Definition: system.cpp:2924
int str_utf8_dist_buffer(const char *a, const char *b, int *buf, int buf_len)
Definition: system.cpp:3107
int str_isspace(char c)
Definition: system.cpp:3582
const char * str_trim_words(const char *str, int words)
Definition: system.cpp:2792
void thread_wait(void *thread)
Definition: system.cpp:809
void * thread_init(void(*threadfunc)(void *), void *user, const char *name)
Definition: system.cpp:783
void thread_yield()
Definition: system.cpp:821
void thread_init_and_detach(void(*threadfunc)(void *), void *user, const char *name)
Definition: system.cpp:843
void thread_detach(void *thread)
Definition: system.cpp:832
std::chrono::nanoseconds time_get_nanoseconds()
Definition: system.cpp:4660
ETimeSeason
Definition: system.h:758
void set_new_tick()
Definition: system.cpp:926
int64_t time_freq()
Definition: system.cpp:953
int time_houroftheday()
Definition: system.cpp:2618
int64_t time_timestamp()
Definition: system.cpp:2600
ETimeSeason time_season()
Definition: system.cpp:2656
int64_t time_get()
Definition: system.cpp:941
int64_t time_get_impl()
Definition: system.cpp:936
@ SEASON_AUTUMN
Definition: system.h:761
@ SEASON_WINTER
Definition: system.h:762
@ SEASON_SPRING
Definition: system.h:759
@ SEASON_HALLOWEEN
Definition: system.h:764
@ SEASON_XMAS
Definition: system.h:765
@ SEASON_EASTER
Definition: system.h:763
@ SEASON_SUMMER
Definition: system.h:760
@ SEASON_NEWYEAR
Definition: system.h:766
void * IOHANDLE
Definition: logger.h:11
Definition: system.cpp:452
void * thread
Definition: system.cpp:456
unsigned char * buffer
Definition: system.cpp:458
IOHANDLE io
Definition: system.cpp:454
Definition: system.cpp:110
Definition: system.h:2170
uint64_t recv_packets
Definition: system.h:2173
uint64_t recv_bytes
Definition: system.h:2174
uint64_t sent_packets
Definition: system.h:2171
uint64_t sent_bytes
Definition: system.h:2172
void str_utf8_trim_right(char *param)
Definition: system.cpp:3768
void str_hex_cstyle(char *dst, int dst_size, const void *data, int data_size, int bytes_per_line=12)
Definition: system.cpp:3229
int str_utf8_comp_nocase(const char *a, const char *b)
Definition: system.cpp:3670
void swap_endian(void *data, unsigned elem_size, unsigned num)
Definition: system.cpp:2522
size_t str_utf8_offset_chars_to_bytes(const char *str, size_t char_offset)
Definition: system.cpp:4016
void str_utf8_copy_num(char *dst, const char *src, int dst_size, int num)
Definition: system.cpp:3963
NETSOCKET net_udp_create(NETADDR bindaddr)
Definition: system.cpp:1536
void dbg_assert_set_handler(DBG_ASSERT_HANDLER handler)
Definition: system.cpp:159
int str_isallnum(const char *str)
Definition: system.cpp:3599
int str_utf8_forward(const char *str, int cursor)
Definition: system.cpp:3828
const char * str_next_token(const char *str, const char *delim, char *buffer, int buffer_size)
Definition: system.cpp:4065
int str_utf8_decode(const char **ptr)
Definition: system.cpp:3883
unsigned long str_toulong_base(const char *str, int base)
Definition: system.cpp:3643
const char * str_find_nocase(const char *haystack, const char *needle)
Definition: system.cpp:3127
int net_would_block()
Definition: system.cpp:2048
void str_base64(char *dst, int dst_size, const void *data, int data_size)
Definition: system.cpp:3321
int net_host_lookup(const char *hostname, NETADDR *addr, int types)
Definition: system.cpp:1211
int str_utf8_encode(char *ptr, int chr)
Definition: system.cpp:3838
int str_utf8_dist(const char *a, const char *b)
Definition: system.cpp:3051
int str_toint_base(const char *str, int base)
Definition: system.cpp:3638
int str_utf8_isstart(char c)
Definition: system.cpp:3793
bool timestamp_from_str(const char *string, const char *format, time_t *timestamp)
Definition: system.cpp:3490
void str_escape(char **dst, const char *src, const char *end)
Definition: system.cpp:3561
int net_addr_from_url(NETADDR *addr, const char *string, char *host_buf, size_t host_buf_size)
Definition: system.cpp:1285
int str_utf32_dist_buffer(const int *a, int a_len, const int *b, int b_len, int *buf, int buf_len)
Definition: system.cpp:3071
const char * str_utf8_skip_whitespaces(const char *str)
Definition: system.cpp:3748
void str_sanitize_filename(char *str)
Definition: system.cpp:2843
int net_tcp_connect_non_blocking(NETSOCKET sock, NETADDR bindaddr)
Definition: system.cpp:1999
std::function< void(const char *message)> DBG_ASSERT_HANDLER
Definition: system.h:116
int net_set_non_blocking(NETSOCKET sock)
Definition: system.cpp:1909
int str_in_list(const char *list, const char *delim, const char *needle)
Definition: system.cpp:4051
int str_utf8_comp_confusable(const char *str1, const char *str2)
Definition: confusables.cpp:83
int net_socket_type(NETSOCKET sock)
Definition: system.cpp:1531
void str_timestamp(char *buffer, int buffer_size)
Definition: system.cpp:3485
void uint_to_bytes_be(unsigned char *bytes, unsigned value)
Definition: system.cpp:4090
int str_format_int(char *buffer, size_t buffer_size, int value)
Definition: system.cpp:2771
int str_base64_decode(void *dst, int dst_size, const char *data)
Definition: system.cpp:3398
int str_time_float(float secs, int format, char *buffer, int buffer_size)
Definition: system.cpp:3556
const NETADDR NETADDR_ZEROED
Definition: system.cpp:961
#define GNUC_ATTRIBUTE(x)
Definition: system.h:88
int net_errno()
Definition: system.cpp:2039
int str_toint(const char *str)
Definition: system.cpp:3621
void str_utf8_stats(const char *str, size_t max_size, size_t max_count, size_t *size, size_t *count)
Definition: system.cpp:3981
int str_format_opt(char *buffer, int buffer_size, const char *format, Args... args)
Definition: system.h:1280
int str_hex_decode(void *dst, int dst_size, const char *src)
Definition: system.cpp:3304
bool str_isnum(char c)
Definition: system.cpp:3594
void str_timestamp_format(char *buffer, int buffer_size, const char *format)
Definition: system.cpp:3478
void str_timestamp_ex(time_t time, char *buffer, int buffer_size, const char *format)
Definition: system.cpp:3471
float str_tofloat(const char *str)
Definition: system.cpp:3653
void str_hex(char *dst, int dst_size, const void *data, int data_size)
Definition: system.cpp:3214
void net_stats(NETSTATS *stats)
Definition: system.cpp:3577
unsigned str_quickhash(const char *str)
Definition: system.cpp:4029
int net_socket_read_wait(NETSOCKET sock, int time)
Definition: system.cpp:2548
void dbg_assert_imp(const char *filename, int line, bool test, const char *msg)
Definition: system.cpp:130
int net_set_blocking(NETSOCKET sock)
Definition: system.cpp:1914
sem_t SEMAPHORE
Definition: system.h:669
size_t str_utf8_offset_bytes_to_chars(const char *str, size_t byte_offset)
Definition: system.cpp:4001
int net_addr_from_str(NETADDR *addr, const char *string)
Definition: system.cpp:1334
int str_utf8_check(const char *str)
Definition: system.cpp:3950
const char * str_utf8_find_nocase(const char *haystack, const char *needle, const char **end=nullptr)
Definition: system.cpp:3710
#define str_format
Definition: system.h:1299
int str_isallnum_hex(const char *str)
Definition: system.cpp:3610
int str_utf8_isspace(int code)
Definition: system.cpp:3737
int str_time(int64_t centisecs, int format, char *buffer, int buffer_size)
Definition: system.cpp:3509
const char * str_startswith_nocase(const char *str, const char *prefix)
Definition: system.cpp:2975
int str_utf8_comp_nocase_num(const char *a, const char *b, int num)
Definition: system.cpp:3686
const char * str_endswith_nocase(const char *str, const char *suffix)
Definition: system.cpp:3001
unsigned bytes_be_to_uint(const unsigned char *bytes)
Definition: system.cpp:4085
int str_utf8_rewind(const char *str, int cursor)
Definition: system.cpp:3800
int str_utf8_fix_truncation(char *str)
Definition: system.cpp:3811
const char * str_endswith(const char *str, const char *suffix)
Definition: system.cpp:3021
const char * str_find(const char *haystack, const char *needle)
Definition: system.cpp:3146
char str_uppercase(char c)
Definition: system.cpp:3587
int net_udp_recv(NETSOCKET sock, NETADDR *addr, unsigned char **data)
Definition: system.cpp:1759
int64_t str_toint64_base(const char *str, int base=10)
Definition: system.cpp:3648
int str_utf8_tolower(int code)
Definition: tolower.cpp:12
@ TIME_SECS_CENTISECS
Definition: system.h:1827
@ TIME_HOURS_CENTISECS
Definition: system.h:1825
@ TIME_DAYS
Definition: system.h:1822
@ TIME_MINS
Definition: system.h:1824
@ TIME_HOURS
Definition: system.h:1823
@ TIME_MINS_CENTISECS
Definition: system.h:1826
int str_utf8_to_skeleton(const char *str, int *buf, int buf_len)
Definition: confusables.cpp:66
int(* FS_LISTDIR_CALLBACK_FILEINFO)(const CFsFileInfo *info, int is_dir, int dir_type, void *user)
Definition: types.h:29
int(* FS_LISTDIR_CALLBACK)(const char *name, int is_dir, int dir_type, void *user)
Definition: types.h:20
float length(const vector2_base< float > &a)
Definition: vmath.h:104