Skip to content

Commit

Permalink
Delete AreEqualOrdinalIgnoreCase (#42067)
Browse files Browse the repository at this point in the history
This is unused after #40910 and breaks building standalone System.Globalization.Native (`error G94D986AD: unused function 'AreEqualOrdinalIgnoreCase' [-Werror,-Wunused-function]`).
  • Loading branch information
MichalStrehovsky committed Sep 10, 2020
1 parent 8b8c390 commit 2fc7e69
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,30 +581,6 @@ int32_t GlobalizationNative_LastIndexOf(
return result;
}

/*
Static Function:
AreEqualOrdinalIgnoreCase
*/
static int AreEqualOrdinalIgnoreCase(UChar32 one, UChar32 two)
{
// Return whether the two characters are identical or would be identical if they were upper-cased.

if (one == two)
{
return TRUE;
}

if (one == 0x0131 || two == 0x0131)
{
// On Windows with InvariantCulture, the LATIN SMALL LETTER DOTLESS I (U+0131)
// capitalizes to itself, whereas with ICU it capitalizes to LATIN CAPITAL LETTER I (U+0049).
// We special case it to match the Windows invariant behavior.
return FALSE;
}

return u_toupper(one) == u_toupper(two);
}

/*
collation element is an int used for sorting. It consists of 3 components:
* primary - first 16 bits, representing the base letter
Expand Down

0 comments on commit 2fc7e69

Please sign in to comment.