We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b57fd4 commit 7eac69eCopy full SHA for 7eac69e
1 file changed
src/Data/String/CodePoints.purs
@@ -56,11 +56,6 @@ codePointFromInt n = Nothing
56
codePointToInt :: CodePoint -> Int
57
codePointToInt (CodePoint n) = n
58
59
-codePointFromSurrogatePair :: Int -> Int -> Maybe CodePoint
60
-codePointFromSurrogatePair lead trail | isLead lead && isTrail trail =
61
- Just (unsurrogate lead trail)
62
-codePointFromSurrogatePair _ _ = Nothing
63
-
64
unsurrogate :: Int -> Int -> CodePoint
65
unsurrogate lead trail = CodePoint ((lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000)
66
0 commit comments