Commit Graph
14 Commits
Author SHA1 Message Date
Le Philousophe 6f46727c77 COMMON: Check if string is puny encoded before trying to decode it
This avoids the following useless conversion String->U32String->String
while the content will not change.
2023-12-24 13:19:25 +01:00
Le Philousophe 23fda47ac8 COMMON: Improve punydecode performance
Avoid copies as much as we can by working in place.
2023-12-24 13:19:25 +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
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Matthew Duggan 2c4aae5294 COMMON: Use const references where possible in punycode
As suggested by coverity.
2021-09-04 23:15:23 +03:00
djsrv ad6f533175 COMMON: Fix punycode encoder/decoder
These need to use Unicode code points, not raw bytes.
2021-08-22 13:11:26 -04:00
djsrv 7b71e617f6 COMMON: Fully remove old punycode path functions 2021-08-22 11:45:02 -04:00
djsrv 6020f24661 COMMON: Create punycode_encodepath 2021-08-07 10:44:37 +02:00
djsrv 17297ea7ef COMMON: Use Path type in punycode_decodepath 2021-08-07 10:44:37 +02:00
Eugene Sandulenko 96bb4d2d53 COMMON: Added more auxiliary method to Punycode 2021-07-27 18:14:50 +02:00
Eugene Sandulenko 8789bdfd67 COMMON: Reworked encode_punycode to String 2021-07-27 18:14:49 +02:00
Eugene Sandulenko a655cff203 COMMON: Added auxiliary methods for punycode 2021-07-27 18:14:49 +02:00
Eugene Sandulenko 56f7af8d2e COMMON: Fix punycode decoding and implement reverse utility for escaped filenames 2021-07-27 18:14:49 +02:00
Eugene Sandulenko 91d747ac5b COMMON: Initial code for punycode decoding 2021-07-27 18:14:48 +02:00