[GHC] #1506: Case-insensitive char/string comparison

GHC trac at galois.com
Fri Jul 6 12:39:56 EDT 2007


#1506: Case-insensitive char/string comparison
------------------------------+---------------------------------------------
  Reporter:  Eelis            |          Owner:         
      Type:  feature request  |         Status:  new    
  Priority:  normal           |      Milestone:         
 Component:  Compiler         |        Version:  6.6.1  
  Severity:  normal           |       Keywords:         
Difficulty:  Unknown          |             Os:  Unknown
  Testcase:                   |   Architecture:  Unknown
------------------------------+---------------------------------------------
Data.Char provides functions to convert case, but does not provide a
 function to perform case-insensitive char/string comparison. Note that
 such functionality cannot be obtained by simply comparing for equality
 after performing toUpper/toLower, because some languages have things like
 multiple lowercase characters corresponding to the same uppercase
 character.

 For example, in Greek, converting either σ or ς to uppercase yields Σ,
 while the inverse always yields σ. Consequently, the convert-all-to-
 uppercase approach would produce a false positive when comparing σ to ς,
 and the convert-all-to-lowercase approach would produce a false negative
 when comparing Σ to ς.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1506>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list