From 663729b8a619d1076fda8953abdb06070a786269 Mon Sep 17 00:00:00 2001 From: inoas Date: Sun, 4 Dec 2022 19:39:37 +0100 Subject: add string.to_ints --- src/gleam_stdlib.mjs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gleam_stdlib.mjs') diff --git a/src/gleam_stdlib.mjs b/src/gleam_stdlib.mjs index 9d37ec3..69644dc 100644 --- a/src/gleam_stdlib.mjs +++ b/src/gleam_stdlib.mjs @@ -363,6 +363,10 @@ export function utf_codepoint_list_to_string(utf_codepoint_integer_list) { .join(""); } +export function utf_codepoint_to_int(utf_codepoint) { + return utf_codepoint.value; +} + export function regex_check(regex, string) { return regex.test(string); } -- cgit v1.2.3