Skip to content

Commit

Permalink
standard library: add utf8 table
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jan 8, 2024
1 parent 92fdd7f commit 55a2bf7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ do
unpack: function<A>({A}, ? number, ? number): A... --[[needs_compat]]
end
global record utf8
char: function(number...): string
charpattern: string
codepoint: function(string, ? number, ? number, ? boolean): integer...
codes: function(string, ? boolean): (function(string, ? number): (integer, integer))
len: function(string, ? number, ? number, ? boolean): integer
offset: function(string, number, ? number): integer
end
local record StandardLibrary
enum CollectGarbageCommand
"collect"
Expand Down
9 changes: 9 additions & 0 deletions tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ do
unpack: function<A>({A}, ? number, ? number): A... --[[needs_compat]]
end
global record utf8
char: function(number...): string
charpattern: string
codepoint: function(string, ? number, ? number, ? boolean): integer...
codes: function(string, ? boolean): (function(string, ? number): (integer, integer))
len: function(string, ? number, ? number, ? boolean): integer
offset: function(string, number, ? number): integer
end
local record StandardLibrary
enum CollectGarbageCommand
"collect"
Expand Down

0 comments on commit 55a2bf7

Please sign in to comment.