Commit Graph
60 Commits
Author SHA1 Message Date
Stenzek 79576be41a StringUtil: Add AppendUTF8ToWideString() 2026-04-18 12:08:43 +10:00
Stenzek 091517a62e StringUtil: Move FromChars()ToChars() instantiation to source file
Knocks ~10% off compile time.
2025-12-31 16:45:00 +10:00
Stenzek dea9ce3d68 StringUtil: Move most non-template functions to source file 2025-12-31 16:45:00 +10:00
Stenzek a42df97716 StringUtil: Use C++20 requires clauses instead of enable_if 2025-12-31 16:45:00 +10:00
Stenzek 1b9ef2c248 StringUtil: Backport helper functions 2025-12-30 15:23:24 +10:00
Stenzek 754591f279 StringUtil: Add GetUTF8CharacterCount() 2025-11-15 14:20:36 +10:00
Stenzek e36ea9e3a8 FullscreenUI: Remove more redundancy 2025-10-18 22:48:36 +10:00
Stenzek e32e64420e StringUtil: Fix logical errors 2025-08-31 20:36:42 +10:00
Stenzek 0a271cd7d5 StringUtil: Fix CompareNoCase for prefixes 2025-08-31 12:05:45 +10:00
Stenzek 52d9f73f98 Misc: Replace a bunch of static qualifiers with inline
Allows deduplication, shaves a couple percent off the debug binary size.
Release binary size difference is negligible.
2025-07-30 21:43:12 +10:00
Davide Pesavento a34aee68a7 Declare all namespace-scope constants as inline
This is the idiomatic way since C++17
2025-07-22 19:29:37 +10:00
Stenzek e3c0eed3df StringUtil: Add DecodeUTF16String() and BE variants 2025-05-17 20:25:45 +10:00
Stenzek 4bacbc8958 Qt: Eliminate heap allocations in GameListSortModel
More of an issue since the filter is now checking multiple fields.
2025-05-13 21:43:32 +10:00
Stenzek 814263b442 GDBServer: Mostly rewrite handlers and fix undefined behaviour
Remove all heap allocations.
Remove copies.
2025-03-11 21:29:29 +10:00
Stenzek bee2dabc77 Misc: Replace stringstream str() with C++20 move str()
No extra heap allocation/copy.
2025-02-05 22:38:48 +10:00
Stenzek ca509a8b97 StringUtil: Add fixed-length DecodeHex() 2025-01-25 22:35:06 +10:00
Stenzek c03b6f3d84 Misc: Replace isspace() usage with StringUtil::IsWhitespace()
Avoids the UB if the character is negative (e.g. reading from a binary
file), as well as locale-specific rubbish.
2025-01-19 21:29:14 +10:00
Stenzek 1aa1b5a7ec Qt: Make main toolbar editable 2025-01-14 16:33:24 +10:00
Stenzek 2999f15d7a StringUtil: Add UTF-16 encoding/decoding functions 2024-12-08 19:44:27 +10:00
Stenzek b39f1558ec StringUtil: Add Base64 decode/encode functions 2024-11-29 17:05:02 +10:00
Stenzek c0b4627c11 StringUtil: Drop old MacOS workaround 2024-11-29 15:25:36 +10:00
Stenzek da501b9294 StringUtil: Add ParseFixedHexString() 2024-11-29 15:04:25 +10:00
Stenzek 2079bac40b StringUtil: Add FromCharsWithOptionalBase() 2024-10-13 16:43:22 +10:00
Stenzek 86d66ddf82 StringUtil: Don't call data() on empty string_view 2024-10-13 15:33:38 +10:00
Stenzek 2fc5856c44 StringUtil: Add CompareNoCase() 2024-10-12 16:21:34 +10:00
Stenzek 9ff4fbd21c StringUtil: Fix incorrect end_ptr computation 2024-10-07 01:42:19 +10:00
Stenzek 369599202c StringUtil: Speed up EncodeHex()/append_hex() 2024-09-18 21:42:46 +10:00
Stenzek b10f043350 StringUtil: Fix typo 2024-09-09 00:35:12 +10:00
Stenzek 1956575710 Cheats: Fix detection of ungrouped cheat import 2024-09-08 11:49:59 +10:00
Stenzek 7f4e5d55db Misc: Update copyright headers 2024-09-01 22:08:31 +10:00
Stenzek c8e61307b2 StringUtil: Use unicode replacement character in DecodeUTF8() 2024-08-25 13:56:01 +10:00
Stenzek cbbfc2f11a StringUtil: Add BytePatternSearch() 2024-08-13 14:47:11 +10:00
Stenzek a6518ff9dc System: Rewrite save state I/O
No more ByteStream or virtual calls for every piece of data.
2024-07-29 17:27:32 +10:00
Stenzek 24ef76bfee StringUtil: Purge StdStringFromFormat() 2024-07-19 14:01:16 +10:00
Nik Chizhov 40048cbbc8 fix: remove duplicated code 2024-07-07 12:45:49 +10:00
Stenzek ea3fa7fe3d Postprocessing/FX: Fix locating shaders in subdirectories 2024-06-23 13:20:47 +10:00
Stenzek a957fb669d StringUtil: Fix inequal-length EqualNoCase 2024-02-04 15:22:38 +10:00
Stenzek 4f84a98864 StringUtil: Pass string_views by value 2023-12-13 21:20:31 +10:00
Stenzek 710698f7e1 Misc: Remove StringUtil::{Starts,Ends}With, use C++20 2023-12-13 21:18:19 +10:00
Stenzek 9112b6a850 CDImageCHD: Cache parent hashes 2023-09-27 21:01:09 +10:00
Stenzek 4b24bf74f4 StringUtil: Add Ellipsise() 2023-09-18 22:38:11 +10:00
Connor McLaughlin 01270bac35 StringUtil: Add ToChars/fast_float FromChars 2023-01-15 15:13:54 +10:00
Connor McLaughlin 8c7a192128 Misc: Add copyright/license statement to applicable files
Should've did this in the beginning.
2022-12-04 21:03:49 +10:00
Connor McLaughlin ef3ad91ad0 FullscreenUI: Various improvements 2022-09-17 15:56:05 +10:00
Connor McLaughlin 89659db7ee Path: Unicode handling and tests for SanitizeFileName 2022-07-30 21:46:14 +10:00
Connor McLaughlin b3c3d5d954 Sync string_util.cpp 2022-07-21 17:29:57 +10:00
Connor McLaughlin 911e9a37f1 WIN32 macro -> _WIN32 2021-06-30 14:38:07 +10:00
C.W. Betts fb7a8886f1 Add more printflike macros. 2021-03-29 13:56:19 -06:00
Connor McLaughlin 7b4650700f StringUtil: Add StrideMemCpy/StrideMemCmp 2021-02-05 02:16:15 +10:00
Jean-Baptiste Boric 9bd28f39a5 StringUtil: Add base support and hexadecimal functions 2020-12-26 00:47:02 +10:00