Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions jerry-core/lit/lit-char-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,6 @@ lit_char_to_lower_case (ecma_char_t character, /**< input character value */
return 1;
}

if (character == 0x130)
{
output_buffer_p[0] = LIT_CHAR_LOWERCASE_I;
output_buffer_p[1] = 0x307;
return 2;
}

output_buffer_p[0] = character;
return 1;
} /* lit_char_to_lower_case */
Expand Down Expand Up @@ -516,21 +509,6 @@ lit_char_to_upper_case (ecma_char_t character, /**< input character value */
return 1;
}

if (character == 0xdf)
{
output_buffer_p[0] = LIT_CHAR_UPPERCASE_S;
output_buffer_p[1] = LIT_CHAR_UPPERCASE_S;
return 2;
}

if (character == 0x1fd7)
{
output_buffer_p[0] = 0x399;
output_buffer_p[1] = 0x308;
output_buffer_p[2] = 0x342;
return 3;
}

output_buffer_p[0] = character;
return 1;
} /* lit_char_to_upper_case */
8 changes: 0 additions & 8 deletions tests/jerry/string-upper-lower-case-conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ assert ("0123456789abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXYZ".toLower
assert ("0123456789abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXYZ".toUpperCase()
== "0123456789ABCDEFGHIJKLMNOPQRSTUVWXZYABCDEFGHIJKLMNOPQRSTUVWXYZ");

assert ("\u0130".toLowerCase() == "i\u0307");
assert ("\xdf".toUpperCase() == "SS");
assert ("\u1fd7".toUpperCase() == "\u0399\u0308\u0342");

assert ("H\u0130-+".toLowerCase() == "hi\u0307-+");
assert ("\xdf\u1fd7\xdf".toUpperCase() == "SS\u0399\u0308\u0342SS");
assert ("\u0130\u0130\u0130".toLowerCase() == "i\u0307i\u0307i\u0307");

// Although codepoint 0x10400 and 0x10428 are an upper-lowercase pair,
// we must not do their conversion in JavaScript. We must also ignore
// stray surrogates.
Expand Down