| 1 |
(************************************************************************) |
| 2 |
(* * The Rocq Prover / The Rocq Development Team *) |
| 3 |
(* v * Copyright INRIA, CNRS and contributors *) |
| 4 |
(* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 |
(* \VV/ **************************************************************) |
| 6 |
(* // * This file is distributed under the terms of the *) |
| 7 |
(* * GNU Lesser General Public License Version 2.1 *) |
| 8 |
(* * (see LICENSE file for the text of the license) *) |
| 9 |
(************************************************************************) |
| 10 |
|
| 11 |
Require Import Ltac2.Init. |
| 12 |
|
| 13 |
Ltac2 Type t := pstring. |
| 14 |
|
| 15 |
Ltac2 Type char63 := uint63. |
| 16 |
|
| 17 |
Ltac2 @ external max_length : uint63 := "rocq-runtime.plugins.ltac2" "pstring_max_length". |
| 18 |
|
| 19 |
Ltac2 @ external to_string : t -> string := "rocq-runtime.plugins.ltac2" "pstring_to_string". |
| 20 |
Ltac2 @ external of_string : string -> t option := "rocq-runtime.plugins.ltac2" "pstring_of_string". |
| 21 |
|
| 22 |
Ltac2 @ external make : uint63 -> char63 -> t := "rocq-runtime.plugins.ltac2" "pstring_make". |
| 23 |
Ltac2 @ external length : t -> uint63 := "rocq-runtime.plugins.ltac2" "pstring_length". |
| 24 |
Ltac2 @ external get : t -> uint63 -> char63 := "rocq-runtime.plugins.ltac2" "pstring_get". |
| 25 |
Ltac2 @ external sub : t -> uint63 -> uint63 -> t := "rocq-runtime.plugins.ltac2" "pstring_sub". |
| 26 |
Ltac2 @ external cat : t -> t -> t := "rocq-runtime.plugins.ltac2" "pstring_cat". |
| 27 |
|
| 28 |
Ltac2 @ external equal : t -> t -> bool := "rocq-runtime.plugins.ltac2" "pstring_equal". |
| 29 |
Ltac2 @ external compare : t -> t -> int := "rocq-runtime.plugins.ltac2" "pstring_compare". |