mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
COMMON: Replace rindex() with more portable code
This commit is contained in:
parent
09dfabf6c5
commit
11e486d631
@ -304,7 +304,7 @@ String punycode_encodefilename(const String src) {
|
||||
dst += '\x81';
|
||||
dst += '\x79';
|
||||
// Encode special symbols and non-printables
|
||||
} else if (rindex("/\":*[]+|\\?%<>,;=", (byte)src[i]) || (byte)src[i] < 0x20) {
|
||||
} else if (Common::String("/\":*[]+|\\?%<>,;=").contains(src[i]) || (byte)src[i] < 0x20) {
|
||||
dst += '\x81';
|
||||
dst += (byte)src[i] + '\x80';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user