254 Commits

Author SHA1 Message Date
03c899f17e Updated string split method to accept limitParts and ignoreEmpty options. 2024-08-18 17:24:06 +02:00
d508ccfe2b Fixed initialization of sockaddr_in. 2024-08-18 13:43:14 +02:00
6d111904d4 Added clang-tidy config and cleaned up the code a little. 2024-08-18 13:30:40 +02:00
9f011952c2 Fixed a bunch of clang-tidy warnings. 2024-08-18 13:13:17 +02:00
d73fa25ed8 Silenced some weird (very likely false-positive) clang-tidy warnings. 2024-08-18 12:24:37 +02:00
66e319fb0d Added missing <exception> include. 2024-08-18 09:58:49 +02:00
822abb7b30 Fixed some issues with compilation in CLang. 2024-08-18 09:10:26 +02:00
acb5d5b04e Added utilty header for variant stuff (Visitor type and variant_contains_v). 2024-08-17 22:55:58 +02:00
def91ac1bf Added split() and trim() string utilty functions. 2024-08-17 22:55:29 +02:00
9337ad7ddb Added support for map values and can_hold_type_v utility trait to ScriptValue. 2024-08-17 18:10:29 +02:00
bb05bb0ae5 Explictly construct result_t to fix conflicting return types. 2024-08-17 18:08:01 +02:00
2e54844989 Use steady_clock instead of high_resolution_clock for sleeping. 2024-08-17 18:07:21 +02:00
f0d0ee17ea Implemented tcp sockets (only IPv4) and asynchronous IO (for sockets). 2024-08-16 21:29:33 +02:00
da348c1f40 Added missing <stdexcept> header. 2024-08-15 10:03:16 +02:00
efedca0d3c Added SModule and dependencies.json for S++ 2.0 support. 2024-08-14 23:29:46 +02:00
9ef450df33 Added equalsIgnoreCase() function. 2024-08-04 11:28:51 +02:00
ea97d3af48 Removed deducing this-version again as the world (clang) isn't ready for it yet. 2024-08-03 20:49:31 +02:00
af51973b2a Added a variant of throwOnError that takes an additional error message. 2024-08-03 15:55:57 +02:00
686dff506d Made Optional::then() use deducing this so it supports const and non-const optionals. 2024-08-03 15:55:26 +02:00
7658e8fbda Added copy_const_t, copy_volatile_t and copy_cv_t type traits. 2024-07-31 22:19:19 +02:00
2942149cb5 Added option to add custom types ScriptValue. 2024-07-31 22:18:51 +02:00
cdcf99237b Made TypelessBuffer functions noexcept. 2024-07-31 22:17:47 +02:00
f6f77f6dc1 Return result with more error information when opening a shared library fails. 2024-07-29 21:48:04 +02:00
a9a85aecdf Added SharedLibrary wrapper for library handles. 2024-07-27 11:58:54 +02:00
232e2a3e28 Added closeSharedLibrary(). 2024-07-27 11:32:56 +02:00
8b55786e77 Added LIBRARY_EXT constant. 2024-07-27 11:14:44 +02:00
e82c697d2e Added getNativePath() method to get the OS version of a virtual path. 2024-07-27 11:04:38 +02:00
9b4425c495 Added ScriptValue type as a generic variant type for scripts and similar situations. 2024-07-26 23:28:39 +02:00
3a8602edcc Added ensure() utility to throw an exception if a condition isn't fulfilled. 2024-07-26 23:28:03 +02:00
543d77859d Added operator->() and made get() and operator*() const. 2024-07-26 23:27:24 +02:00
b40814e58b Added missing include. 2024-07-26 23:26:42 +02:00
0a4f1d2ce4 Added property type. 2024-07-26 18:51:16 +02:00
b66893dda7 Added Optionl::then() for monad functionality. 2024-07-26 18:51:08 +02:00
f35ee5f038 Added throwOnError utility function. 2024-07-23 20:16:24 +02:00
83a46cae15 Fixed other functions in RelativeFileSystemAdapter. 2024-07-23 20:16:12 +02:00
3b7396c4d6 Fixed enumeration of files. 2024-07-23 19:55:40 +02:00
7aa1edcea0 Added MIJIN_STRIDEOF() utilty macro. 2024-06-28 18:21:29 +02:00
251393ae48 Fixed new nodiscard attribute. 2024-06-27 19:18:43 +02:00
eccaa177ca Added nodiscard attribute to TaskBase. 2024-06-27 18:13:26 +02:00
b1fa99428e Fixed Windows/MSVC compilation. 2024-06-26 10:05:32 +02:00
b10f250945 Added simple (albeit in many cases suboptiomal) c_sleep() method for coroutines. 2024-06-23 12:19:57 +02:00
e586698fb6 Added bits_t member to BitFlags and is_bitflags_v helper constant. 2024-06-10 23:11:54 +02:00
c214398fac Deprecated readString() method so it is always clear if you want to read a binary encoded string or the file as string. Also added possibility to open a memory stream from any span. 2024-06-10 23:11:25 +02:00
463f4ca19c Fixed some compiler errors. 2024-05-17 20:29:46 +02:00
80310f3c5c Added some constructors and an empty() check to path references. 2023-12-29 23:32:14 +01:00
1d14c1f3ff Added comparator and hash function for path references. 2023-12-23 12:10:07 +01:00
83d3ce9f1f Use copies of strings for the cache instead of string_views. Apparently my assumption was wrong. 2023-12-19 22:41:40 +01:00
de07cf91bc Added bool conversion for Name. 2023-12-18 17:53:52 +01:00
faf4489b92 Added isLocked() to task mutex. 2023-12-18 17:53:40 +01:00
2668e69ae1 Added signal_token_t to make it easier to store tokens. 2023-12-17 02:36:24 +01:00