-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove allBlockRanges * When downloading files, create a separate directory for each Unicode version. This facilitate the work on various Unicode versions. * Improve docs
- Loading branch information
Showing
13 changed files
with
60 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
-- Maintainer : [email protected] | ||
-- Stability : experimental | ||
-- | ||
-- Compatibility module for case and case mapping related functions.. | ||
-- Compatibility module for case and case mapping related functions. | ||
-- | ||
-- The functions of this module are drop-in replacement for those in "Data.Char". | ||
-- They are similar but not identical to some functions in "Unicode.Char.Case", | ||
|
@@ -30,6 +30,11 @@ import qualified Unicode.Internal.Char.UnicodeData.SimpleUpperCaseMapping as C | |
-- Title case is used by a small number of letter ligatures like the | ||
-- single-character form of /Lj/. | ||
-- | ||
-- It matches characters with general category 'UppercaseLetter' and | ||
-- 'TitlecaseLetter'. | ||
-- | ||
-- See: 'Unicode.Char.Case.isUpperCase' for the /full upper/ case predicate. | ||
-- | ||
-- prop> isUpper c == Data.Char.isUpper c | ||
-- | ||
-- @since 0.3.0 | ||
|
@@ -41,6 +46,10 @@ isUpper c = case generalCategory c of | |
|
||
-- | Selects lower-case alphabetic Unicode characters (letters). | ||
-- | ||
-- It matches characters with general category 'LowercaseLetter'. | ||
-- | ||
-- See: 'Unicode.Char.Case.isLowerCase' for the /full/ lower case predicate. | ||
-- | ||
-- prop> isLower c == Data.Char.isLower c | ||
-- | ||
-- @since 0.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- | | ||
-- Module : Unicode.Char.General | ||
-- Module : Unicode.Char.General.Blocks | ||
-- Copyright : (c) 2020 Composewell Technologies and Contributors | ||
-- License : Apache-2.0 | ||
-- Maintainer : [email protected] | ||
|
@@ -14,7 +14,6 @@ module Unicode.Char.General.Blocks | |
, B.BlockDefinition(..) | ||
, block | ||
, B.blockDefinition | ||
, allBlockRanges | ||
) | ||
|
||
where | ||
|
@@ -27,11 +26,3 @@ import qualified Unicode.Internal.Char.Blocks as B | |
{-# INLINE block #-} | ||
block :: Char -> Maybe B.Block | ||
block = fmap toEnum . B.block | ||
|
||
-- | All the [block](https://www.unicode.org/glossary/#block) ranges, | ||
-- in ascending order. | ||
-- | ||
-- @since 0.3.1 | ||
{-# INLINE allBlockRanges #-} | ||
allBlockRanges :: [(Int, Int)] | ||
allBlockRanges = B.allBlockRanges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters