File tree Expand file tree Collapse file tree 4 files changed +2
-12
lines changed Expand file tree Collapse file tree 4 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
3
4
- function chr ( prim ) {
5
- return prim ;
6
- }
7
-
8
4
function escaped ( param ) {
9
5
let exit = 0 ;
10
6
if ( param >= 40 ) {
@@ -83,7 +79,6 @@ function equal(c1, c2) {
83
79
}
84
80
85
81
export {
86
- chr ,
87
82
escaped ,
88
83
lowercase_ascii ,
89
84
uppercase_ascii ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
4
- function chr ( prim ) {
5
- return prim ;
6
- }
7
-
8
4
function escaped ( param ) {
9
5
let exit = 0 ;
10
6
if ( param >= 40 ) {
@@ -82,7 +78,6 @@ function equal(c1, c2) {
82
78
return ( c1 - c2 | 0 ) === 0 ;
83
79
}
84
80
85
- exports . chr = chr ;
86
81
exports . escaped = escaped ;
87
82
exports . lowercase_ascii = lowercase_ascii ;
88
83
exports . uppercase_ascii = uppercase_ascii ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ external code: t => int = "%identity"
10
10
11
11
external unsafe_chr : int => t = "%identity"
12
12
13
- let chr = unsafe_chr
13
+ external chr : int => t = "%identity"
14
14
15
15
external bytes_create : int => array <char > = "Array"
16
16
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ external code: char => int = "%identity"
10
10
Raise [Invalid_argument "Char.chr"] if the argument is
11
11
outside the range 0--255. */
12
12
@deprecated ("Use Core instead. This will be removed in v13" )
13
- let chr : int => char
13
+ external chr : int => char = "%identity"
14
14
15
15
/** Return a string representing the given character,
16
16
with special characters escaped following the lexical conventions
You can’t perform that action at this time.
0 commit comments