You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{-# DEPRECATED isLower "Use isLowerCase instead. Note that the behavior of this function does not match base:Data.Char.isLower. See Unicode.Char.Case.Compat for behavior compatible with base:Data.Char." #-}
73
-
isLower::Char->Bool
74
-
isLower =P.isLowercase
75
-
76
65
--| Returns 'True' for upper-case characters.
77
66
--
78
67
-- It uses the character property
@@ -82,26 +71,13 @@ isLower = P.isLowercase
82
71
-- @'Unicode.Char.General.generalCategory' c ==
83
72
-- 'Unicode.Char.General.TitlecaseLetter'@.
84
73
--
74
+
-- See: 'Unicode.Char.Case.Compat.isUpper' for the legacy predicate.
-- Note: it does /not/ match title-cased letters. Those are matched using:
96
-
-- @'Unicode.Char.General.generalCategory' c ==
97
-
-- 'Unicode.Char.General.TitlecaseLetter'@.
98
-
--
99
-
-- @since 0.1.0
100
-
{-# INLINE isUpper #-}
101
-
{-# DEPRECATED isUpper "Use isUpperCase instead. Note that the behavior of this function does not match base:Data.Char.isUpper. See Unicode.Char.Case.Compat for behavior compatible with base:Data.Char." #-}
102
-
isUpper::Char->Bool
103
-
isUpper =P.isUppercase
104
-
105
81
-- $case
106
82
--
107
83
-- Correct case conversion rules may map one input character to two or three
Copy file name to clipboardExpand all lines: unicode-data/lib/Unicode/Char/General.hs
-23Lines changed: 0 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,6 @@ module Unicode.Char.General
29
29
, isWhiteSpace
30
30
, isNoncharacter
31
31
32
-
-- ** Deprecated
33
-
, isLetter
34
-
, isSpace
35
-
36
32
-- ** Re-export
37
33
, isAscii
38
34
, isLatin1
@@ -552,25 +548,6 @@ isNoncharacter c
552
548
= ('\xFDD0'<= c && c <='\xFDEF')
553
549
|| (ord c .&.0xFFFF) >=0xFFFE
554
550
555
-
--| Returns 'True' for alphabetic Unicode characters (lower-case, upper-case
556
-
-- and title-case letters, plus letters of caseless scripts and modifiers
557
-
-- letters).
558
-
--
559
-
-- @since 0.1.0
560
-
{-# INLINE isLetter #-}
561
-
{-# DEPRECATED isLetter "Use isAlphabetic instead. Note that the behavior of this function does not match base:Data.Char.isLetter. See Unicode.Char.General.Compat for behavior compatible with base:Data.Char." #-}
562
-
isLetter::Char->Bool
563
-
isLetter =P.isAlphabetic
564
-
565
-
--| Returns 'True' for any whitespace characters, and the control
566
-
-- characters @\\t@, @\\n@, @\\r@, @\\f@, @\\v@.
567
-
--
568
-
-- @since 0.1.0
569
-
{-# INLINE isSpace #-}
570
-
{-# DEPRECATED isSpace "Use isWhiteSpace instead. Note that the behavior of this function does not match base:Data.Char.isSpace. See Unicode.Char.General.Compat for behavior compatible with base:Data.Char." #-}
--| Selects Unicode numeric characters, including digits from various
44
-
-- scripts, Roman numerals, et cetera.
45
-
--
46
-
-- This function returns 'True' if its argument has one of the
47
-
-- following 'Unicode.Char.General.GeneralCategory's, or 'False' otherwise:
48
-
--
49
-
-- * 'Unicode.Char.General.DecimalNumber'
50
-
-- * 'Unicode.Char.General.LetterNumber'
51
-
-- * 'Unicode.Char.General.OtherNumber'
52
-
--
53
-
-- __Note:__ a character may have a numeric value (see 'numericValue') but return
54
-
-- 'False', because 'isNumber' only tests 'Unicode.Char.General.GeneralCategory':
55
-
-- some CJK characters are 'Unicode.Char.General.OtherLetter' and do have a
56
-
-- numeric value. Use 'isNumeric' to cover those cases as well.
57
-
--
58
-
-- prop> isNumber c == Data.Char.isNumber c
59
-
--
60
-
-- @since 0.3.0
61
-
{-# DEPRECATED isNumber "Use Unicode.Char.Numeric.Compat.isNumber instead. This function will be a synonym for isNumeric in a future release. See Unicode.Char.Numeric.Compat for behavior compatible with base:Data.Char." #-}
62
-
{-# INLINE isNumber #-}
63
-
isNumber::Char->Bool
64
-
isNumber =Compat.isNumber
65
-
66
41
--| Selects Unicode character with a numeric value.
67
42
--
68
43
-- __Note:__ a character may have a numeric value but return 'False' with
0 commit comments