1{-# LANGUAGE MagicHash #-}
3module Data.Text.Utf16 where
10chr2 :: Word16 -> Word16 -> Char
11chr2 (W16# a#) (W16# b#) = C# (chr# (upper# +# lower# +# 0x10000#))
15 upper# = uncheckedIShiftL# (x# -# 0xD800#) 10#
16 lower# = y# -# 0xDC00#
19validate1 :: Word16 -> Bool
20validate1 x1 = (x1 >= 0 && x1 < 0xD800) || (x1 > 0xDFFF && x1 < 0x10000)
22validate2 :: Word16 -> Word16 -> Bool
23validate2 x1 x2 = (x1 >= 0xD800 && x1 <= 0xDBFF) &&
24 (x2 >= 0xDC00 && x2 <= 0xDFFF)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list