Commit Graph

15 Commits

Author SHA1 Message Date
Matthew Duggan
c53b42311d COMMON: Fix path split+join combinations, add tests for same
This resolves multiple scenarios where a path ends up with a trailing
separator.
2022-12-31 17:57:07 +09:00
Vladimir Serbinenko
395aa10644 COMMON: Add missing escaping in Common::Path. 2022-12-20 10:04:55 +01:00
Vladimir Serbinenko
0979c692de COMMON: Add new method joinComponents 2022-12-16 22:59:34 +01:00
Vladimir Serbinenko
a690a034cf COMMON: Remove reliance that \x1f is never part of filename
So far we never encountered such a case but mac disks are notorious for
having non-printable characters in names
2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
673e5e025b COMMON: Remove rawString member for Common::Path 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
7ded5c2de0 COMMON: Move DIR_SEPARATOR into path.cpp 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
4a2e69f990 COMMON: conflate : and / in mac names.
When using mounted images on OSX or with fusehfs : and / are swapped.
When using dumper-companion it encodes / in punycode and preserves it.
2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
ab517cc577 COMMON: Add case-insensitive comparator and hash for Common::Path 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
43d7259ff9 COMMON: Add matchPattern method for Common::Path 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
d02a25230d COMMON: Add appendComponent to Common::Path for convenience 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko
af7d9cb850 COMMON: Move punycode_*codepath to path.cpp
This allows to reduce access to DIR_SEPARATOR from outside of Common::Path
2022-12-14 05:08:46 +01:00
Thierry Crozat
f2849282a6 Common: Add functions to decompose a Path into its components 2022-05-24 00:38:02 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
djsrv
763d2813a0 COMMON: Replace Path's += with append/join 2021-08-07 10:44:37 +02:00
djsrv
0db0b2c201 COMMON: Create Path type 2021-08-07 10:44:37 +02:00