Changeset 6793 for src/Unicode.hs

Show
Ignore:
Timestamp:
09/06/05 14:11:41 (3 years ago)
Author:
autrijus
Message:

* massive retab for src/, expanding all tabs into spaces,

except for the generated PIL1.hs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Unicode.hs

    r3372 r6793  
    4444import GHC.Base 
    4545import GHC.Real  (fromIntegral) 
    46 import GHC.Num  (fromInteger) 
     46import GHC.Num  (fromInteger) 
    4747import GHC.Read 
    4848import GHC.Show 
     
    147147-- corresponding to the ASCII character set. 
    148148isAscii                 :: Char -> Bool 
    149 isAscii c               =  c <  '\x80' 
     149isAscii c               =  c <  '\x80' 
    150150 
    151151-- | Selects the first 256 characters of the Unicode character set, 
     
    172172-- Done with explicit equalities both for efficiency, and to avoid a tiresome 
    173173-- recursion with GHC.List elem 
    174 isSpace c               =  c == ' '     || 
    175                            c == '\t'    || 
    176                            c == '\n'    || 
    177                            c == '\r'    || 
    178                            c == '\f'    || 
    179                            c == '\v'    || 
    180                            c == '\xa0'  || 
    181                            iswspace (fromIntegral (ord c)) /= 0 
     174isSpace c               =  c == ' '     || 
     175                           c == '\t'    || 
     176                           c == '\n'    || 
     177                           c == '\r'    || 
     178                           c == '\f'    || 
     179                           c == '\v'    || 
     180                           c == '\xa0'  || 
     181                           iswspace (fromIntegral (ord c)) /= 0 
    182182 
    183183-- | Selects alphabetic Unicode characters (letters) that are not lower-case. 
     
    204204-- | Selects ASCII octal digits, i.e. @\'0\'@..@\'7\'@. 
    205205isOctDigit              :: Char -> Bool 
    206 isOctDigit c            =  c >= '0' && c <= '7' 
     206isOctDigit c            =  c >= '0' && c <= '7' 
    207207 
    208208-- | Selects ASCII hexadecimal digits, 
    209209-- i.e. @\'0\'@..@\'9\'@, @\'a\'@..@\'f\'@, @\'A\'@..@\'F\'@. 
    210210isHexDigit              :: Char -> Bool 
    211 isHexDigit c            =  isDigit c || c >= 'A' && c <= 'F' || 
     211isHexDigit c            =  isDigit c || c >= 'A' && c <= 'F' || 
    212212                                        c >= 'a' && c <= 'f' 
    213213