[core] Change toLowerHex to produce lower hex sequences
This commit is contained in:
@@ -24,7 +24,7 @@ inline bool isSchemeCharacter(char c) {
|
||||
|
||||
inline char toLowerHex(char c) {
|
||||
c &= 0x0F;
|
||||
return '0' + c + (c > 9 ? 7 : 0);
|
||||
return '0' + c + (c > 9 ? 39 : 0);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
using namespace mbgl::util;
|
||||
|
||||
TEST(URL, percentEncode) {
|
||||
EXPECT_EQ("%22%C3%A9nc%C3%B8%C3%B0ing%22", percentEncode("\"éncøðing\""));
|
||||
EXPECT_EQ("%22%c3%a9nc%c3%b8%c3%b0ing%22", percentEncode("\"éncøðing\""));
|
||||
}
|
||||
|
||||
TEST(URL, percentDecode) {
|
||||
|
||||
Reference in New Issue
Block a user