mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
s/CodePoint/CodePt/g
This commit is contained in:
parent
69b1497907
commit
267836226c
25 changed files with 69 additions and 69 deletions
|
@ -1,6 +1,6 @@
|
|||
package roc/unicode 0.1.0
|
||||
roc 0.0.0
|
||||
exposes [ Unicode, Unicode.Scalar, Unicode.CodePoint ]
|
||||
exposes [ Unicode, Unicode.Scalar, Unicode.CodePt ]
|
||||
packages {}
|
||||
license UPL-1.0
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ interface Unicode.Scalar
|
|||
[
|
||||
Scalar,
|
||||
toStr,
|
||||
toCodePoint,
|
||||
fromCodePoint,
|
||||
toCodePt,
|
||||
fromCodePt,
|
||||
parseUtf8,
|
||||
parseUtf16,
|
||||
chompUtf8,
|
||||
|
@ -12,8 +12,8 @@ interface Unicode.Scalar
|
|||
]
|
||||
imports
|
||||
[
|
||||
Unicode.CodePoint.Internal as Internal
|
||||
Unicode.CodePoint.{ CodePoint },
|
||||
Unicode.CodePt.Internal as Internal
|
||||
Unicode.CodePt.{ CodePt },
|
||||
Bytes.{ Bytes }
|
||||
]
|
||||
|
||||
|
@ -31,15 +31,15 @@ toStr = \@Scalar u32
|
|||
# already validated this!
|
||||
toStr (@Scalar (scalar * 256))
|
||||
|
||||
toCodePoint : Scalar -> CodePoint
|
||||
toCodePoint = \@Scalar u32 -> Internal.fromU32Unchecked u32
|
||||
toCodePt : Scalar -> CodePt
|
||||
toCodePt = \@Scalar u32 -> Internal.fromU32Unchecked u32
|
||||
|
||||
fromCodePoint : CodePoint -> Result Scalar [ PointWasSurrogate ]*
|
||||
fromCodePt : CodePt -> Result Scalar [ PointWasSurrogate ]*
|
||||
|
||||
parseUtf8 : Bytes -> Result { val : Scalar, rest : Bytes } [ Expected [ Utf8CodePoint ]* Bytes ]*
|
||||
parseUtf16 : Bytes, Endi -> Result { val : Scalar, rest : Bytes } [ Expected [ Utf16CodePoint Endi ]* Bytes ]*
|
||||
parseUtf8 : Bytes -> Result { val : Scalar, rest : Bytes } [ Expected [ Utf8CodePt ]* Bytes ]*
|
||||
parseUtf16 : Bytes, Endi -> Result { val : Scalar, rest : Bytes } [ Expected [ Utf16CodePt Endi ]* Bytes ]*
|
||||
|
||||
chompUtf8 : Bytes, CodePoint -> Result Str [ Expected [ ExactCodePoint CodePoint ]* Bytes ]*
|
||||
chompUtf16 : Bytes, CodePoint, Endi -> Result Str [ Expected [ ExactCodePoint CodePoint ]* Bytes ]*
|
||||
chompUtf8 : Bytes, CodePt -> Result Str [ Expected [ ExactCodePt CodePt ]* Bytes ]*
|
||||
chompUtf16 : Bytes, CodePt, Endi -> Result Str [ Expected [ ExactCodePt CodePt ]* Bytes ]*
|
||||
|
||||
isAsciiDigit : CodePoint -> Bool
|
||||
isAsciiDigit : CodePt -> Bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue