21 Commits

Author SHA1 Message Date
Cameron Cawley c6ae30e7ea COMMON: Support creating strings from a repeated single character 2025-06-20 00:07:23 +02:00
Cameron Cawley b78d519ed3 COMMON: Make String::assignAppend public and extend it 2025-06-20 00:07:23 +02:00
Cameron Cawley b5a019c4e5 COMMON: Make String::assign public and extend it 2025-06-20 00:07:23 +02:00
Le Philousophe c2db9da310 COMMON: Fix replace with consecutive from characters
The commit 35125f5509 introduced a
spurious +1 which implies skipping a character while looking for the
next character to replace.
2024-11-11 13:01:00 +01:00
Hubert Maier e72abcbc26 JANITORIAL: Fix comparision typo in str-base.cpp 2024-05-18 13:52:31 +02:00
Le Philousophe 5b4e26322e COMMON: Don't fail when comparing empty strings
Add tests for this.
2024-01-14 14:06:41 +01:00
Cameron Cawley 7b025fb6f2 COMMON: Fix compilation with 32-bit Visual Studio 2024-01-09 09:52:55 +00:00
Cameron Cawley f7c2d14587 COMMON: Move all find and replace functions into BaseString 2024-01-08 23:39:22 +01:00
Cameron Cawley 35125f5509 COMMON: Use more standard library functions in String classes 2024-01-08 23:39:22 +01:00
Cameron Cawley 0a4fec83c0 COMMON: Improve removing characters from strings 2024-01-08 23:39:22 +01:00
Cameron Cawley a8183c7734 COMMON: Insert all characters in one go with String::insertString() 2024-01-08 23:39:22 +01:00
Cameron Cawley 4abc229268 COMMON: Unify implementations of String::replace() 2024-01-08 23:39:22 +01:00
Le Philousophe 0edfc8f6dd COMMON: Add append function to BaseString which takes a pointer range
This allows to add efficiently a substring to another
2023-12-24 13:19:25 +01:00
Le Philousophe 11d7381c3f COMMON: Allow inlining of BaseString::makeUnique 2023-12-24 13:19:25 +01:00
elasota e5e9d5c96d COMMON: Performance improvement for toUppercase and toLowercase: Avoid calling makeUnique on strings that aren't modified. 2023-09-20 02:16:25 +02:00
Eugene Sandulenko 3cbb035875 COMMON: Added String::chop() method 2023-09-17 00:56:28 +02:00
elasota 4f83f8f625 COMMON: Use standard library strlen for char string lengths. 2023-08-28 22:04:26 +02:00
elasota 20c91ae391 COMMON: Move string length calculation to a separate function so it's easier to get through string constructors with just Step Over while debugging (vs. Step Out which has a 2-key default keybind in VS and can behave badly with optimizations enabled). 2023-08-28 22:04:26 +02:00
elasota 3adb30e4bf COMMON: Avoid makeUnique on string if trim wouldn't modify it. 2023-05-14 23:07:32 +02:00
Vladimir Serbinenko f9b6669241 COMMON: Add DBCS-oriented variant of String 2023-05-10 13:18:54 +02:00
Eugene Sandulenko 63f39ca792 COMMON: Rename base-str.* to str-base.* for consistency and file grouping 2023-01-05 14:21:23 +01:00