From 49dd453a97a90f85c62ada89d11f220bbbba9477 Mon Sep 17 00:00:00 2001 From: Dilson Rosa Higa Date: Mon, 8 Jul 2024 20:53:04 -0400 Subject: [PATCH] Exposes CodePoint.parsePartialUtf8 --- package/CodePoint.roc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/CodePoint.roc b/package/CodePoint.roc index eed7427..1206d18 100644 --- a/package/CodePoint.roc +++ b/package/CodePoint.roc @@ -7,6 +7,7 @@ module [ isHighSurrogate, isLowSurrogate, isValidScalar, + parsePartialUtf8, appendUtf8, parseUtf8, countUtf8Bytes, @@ -122,7 +123,6 @@ appendUtf8 = \bytes, codePoint -> ## This was an invalid Unicode scalar value, even though it had the Roc type Scalar. ## This should never happen! # expect u32 < 0x110000 - byte1 = u32 |> Num.shiftRightBy 18