COMMON: Replace rindex() with more portable code
This commit is contained in:
parent
09dfabf6c5
commit
11e486d631
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue