1 (* Copyright (C
) 1999-2006 Henry Cejtin
, Matthew Fluet
, Suresh
2 * Jagannathan
, and Stephen Weeks
.
4 * MLton is released under a BSD
-style license
.
5 * See the file MLton
-LICENSE for details
.
8 structure Substring
: SUBSTRING
=
10 open Pervasive
.Substring
17 fn (s
, {start
, length
}) => substring (s
, start
, length
)
20 fn ss
=> let val (s
, start
, length
) = base ss
21 in (s
, {start
= start
, length
= length
})
26 val layout
= String1
.layout
o toString
30 val (_
, {start
, length
}) = base ss