Alibek Omarov
|
c5fbc98d16
|
public: refactor variable declarations
|
2026-05-20 23:24:36 +05:00 |
|
Alibek Omarov
|
dbe1a2742e
|
public: add Q_strcmp_constant_time
|
2026-05-17 11:23:08 +05:00 |
|
Alibek Omarov
|
2290ae0239
|
public: disable Amiga's double-slash check in CheckNastyPath
|
2026-05-17 10:42:22 +05:00 |
|
Alibek Omarov
|
5d7ed9d8a7
|
public: add CheckNastyPath from Darkplaces's VFS so it can be used in engine for path traversal checks
|
2026-05-16 21:28:51 +05:00 |
|
Alibek Omarov
|
d4205867dd
|
public: simplify COM_Strip and COM_DefaultExtension by reusing extension extraction function. Add moar tests for them
|
2026-05-10 00:56:44 +05:00 |
|
Alibek Omarov
|
ec8059173d
|
public: explicitly cast chars to bytes in ctype functions
|
2026-04-28 09:50:33 +05:00 |
|
Alibek Omarov
|
df95baa282
|
public: minor refactoring, mark some more functions as returns_nonnull
|
2026-03-17 00:19:27 +05:00 |
|
Alibek Omarov
|
c19a824a42
|
public: add Q_memfgets, replacement for COM_MemFgets rewritten using crtlib functions. Add a test
|
2026-03-01 03:04:33 +05:00 |
|
Alibek Omarov
|
192ed942c4
|
public: add new features to ParseFileSafe, such as disabling interpreting certain characters as separate tokens, or instead forcing them to be separate tokens
|
2026-02-28 04:17:34 +05:00 |
|
Alibek Omarov
|
9a285986c4
|
public: reimplement COM_TrimSpace, add it to crtlib, add tests for it
|
2026-02-28 00:05:37 +05:00 |
|
Alibek Omarov
|
7c527d8886
|
public: minor refactoring
|
2026-02-26 10:29:09 +05:00 |
|
Alibek Omarov
|
6bcb98e779
|
public: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty. Remove legacy macros
|
2026-02-21 01:20:34 +05:00 |
|
Alibek Omarov
|
1c6eb85a12
|
public: crtlib: modify format of Q_timestamp TIME_FILENAME to make it sortable
|
2026-01-19 22:33:49 +05:00 |
|
Alibek Omarov
|
d68f29737a
|
public: crtlib: use Q_rint instead of round in Q_pretifymem, so we don't have to link libm when we don't need it
|
2025-03-16 01:01:13 +03:00 |
|
Alibek Omarov
|
7aa9f23590
|
public: crtlib: fix Q_pretifymem so it compiles with -Wformat-nonliteral
|
2025-03-15 14:19:47 +03:00 |
|
Alibek Omarov
|
151e7fe37b
|
public: crtlib: check for empty buffer in Q_vsnprintf
|
2025-02-06 21:19:10 +03:00 |
|
Alibek Omarov
|
4b1b3aa13c
|
public: remove Q_colorstr, as it's completely useless and checking for color string is easy actually
|
2025-01-18 08:29:36 +03:00 |
|
Alibek Omarov
|
03eac904c1
|
public: make COM_FixSlashes inlined
|
2024-12-29 09:05:15 +03:00 |
|
Alibek Omarov
|
fa272d9d93
|
public: add optional feature for COM_ParseFileSafe to ignore shell like hash symbol prefixed comments
|
2024-11-18 14:14:49 +03:00 |
|
Alibek Omarov
|
721c8043f1
|
public: optimize COM_FileExtension
|
2024-11-17 06:20:52 +03:00 |
|
Alibek Omarov
|
b51d1a4e2e
|
public: mark some functions as never returning nullptr
|
2024-11-07 16:11:40 +03:00 |
|
Alibek Omarov
|
422addcbb6
|
public: make Q_atoi_hex public, check for 0x prefix
|
2024-10-28 02:09:05 +03:00 |
|
Alibek Omarov
|
d903187eea
|
public: make crc value init functions inline, move hex2char/ex2string to crclib and make them private to it
|
2024-10-14 04:13:10 +03:00 |
|
Alibek Omarov
|
a758dffbc1
|
public: avoid useless copy in Q_timestamp
|
2024-10-02 22:18:16 +03:00 |
|
Alibek Omarov
|
2f26fcdc2a
|
public: disallow backslashes in COM_PathSlashFix
|
2024-07-30 15:25:20 +03:00 |
|
Alibek Omarov
|
bc32f37fce
|
public: use Q_strchr in COM_FixSlashes
|
2024-07-04 06:42:49 +03:00 |
|
Alibek Omarov
|
59b9b31604
|
public: avoid useless copies in Q_pretifymem
|
2024-07-04 06:39:18 +03:00 |
|
Alibek Omarov
|
844af709c0
|
public: simplify Q_colorstr and Q_strnlwr
|
2024-07-04 06:38:50 +03:00 |
|
Alibek Omarov
|
6243dc7913
|
public: simplify Q_ato{i,f} implementation
|
2024-07-04 06:30:59 +03:00 |
|
Alibek Omarov
|
2ad6511c31
|
public: add Q_memor routine that binary OR's data from src to dst
Supposed to be compiled with optimizations enabled.
|
2024-05-29 05:41:33 +03:00 |
|
Alibek Omarov
|
758c908d5a
|
public: add buffer size parameter to COM_RemoveLineFeed
|
2024-05-15 03:06:57 +03:00 |
|
Alibek Omarov
|
b78e9961c6
|
public: fix build on Windows
stristr doesn't exist actually
|
2024-05-03 15:30:42 +03:00 |
|
Alibek Omarov
|
af23b0c67b
|
public: crtlib: refactoring with new macros, use system strlcpy/strlcat if possible
|
2024-04-30 02:20:14 +03:00 |
|
Alibek Omarov
|
7ccb0b5c02
|
public: make simple ctype functions inlined
|
2024-04-28 06:59:18 +03:00 |
|
Alibek Omarov
|
7f3e62e456
|
public: remove unneeded copy in Q_atov
|
2024-04-28 06:59:18 +03:00 |
|
Alibek Omarov
|
6c40104c66
|
public: better fix for ExtractFilePath
|
2023-10-28 19:31:17 +03:00 |
|
Alibek Omarov
|
fe407fbe00
|
public: workaround when empty string is passed to COM_ExtractFilePath (should make safe COM_ExtractFilePath)
|
2023-10-28 11:06:18 +03:00 |
|
Alibek Omarov
|
4031f5cb01
|
public: allow matching anything in matchpattern
|
2023-07-05 07:00:39 +03:00 |
|
Alibek Omarov
|
aee5e46516
|
public: rewrite Q_strncpy with standard C functions, make it inlined to allow compiler remove unneeded checks
So far, passes all tests.
|
2023-06-27 17:30:09 +03:00 |
|
Alibek Omarov
|
ff436ae100
|
public: crtlib: add safe COM_DefaultExtension and COM_ReplaceExtension
|
2023-04-26 05:20:45 +03:00 |
|
Alibek Omarov
|
ac39090f6e
|
public: crtlib: add safe COM_FileBase implementation
|
2023-04-26 05:20:45 +03:00 |
|
Alibek Omarov
|
8f207362a5
|
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
|
2023-04-26 05:20:45 +03:00 |
|
Alibek Omarov
|
b16fa8eddc
|
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
|
2023-04-26 05:20:45 +03:00 |
|
Alibek Omarov
|
37e3cf7e86
|
public: crtlib: remove unused functions
|
2023-04-03 02:46:23 +03:00 |
|
Alibek Omarov
|
fb6e310eab
|
public: move va() function back to engine, it's not recommended to use in shared modules
|
2023-03-13 02:44:59 +03:00 |
|
Alibek Omarov
|
3765686077
|
public: make va() buffer size public
|
2023-03-11 05:28:17 +03:00 |
|
Alibek Omarov
|
4684f174ee
|
public: completely get rid of PATH_SEPARATOR macros
|
2023-01-05 06:06:07 +03:00 |
|
Alibek Omarov
|
75ccd2283b
|
public: fix Q_memmem counting haystack size incorrectly
|
2023-01-04 17:17:18 +03:00 |
|
Alibek Omarov
|
07e622f224
|
public: add generic implementation for Q_memmem
|
2023-01-03 06:58:58 +03:00 |
|
Alibek Omarov
|
e1ea3387ee
|
common: rename PATH_SPLITTER to PATH_SEPARATOR, change it's type to character
|
2022-12-27 02:31:46 +03:00 |
|