Skip to content

Commit 298493f

Browse files
authored
Merge pull request #2048 from JasonGross/string-examples
Add more string notations for some constants
2 parents 09dc6ac + 6e596d5 commit 298493f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Util/Strings/String.v

+3
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,14 @@ Abort.
335335
Definition replace (from to s : string) : string
336336
:= concat to (split from s).
337337

338+
Notation Null := (String Ascii.Null "").
339+
Notation Backspace := (String Ascii.Backspace "").
338340
Notation NewLine := (String Ascii.NewLine "").
339341
Notation CR := (String Ascii.CR "").
340342
Notation LF := (String Ascii.LF "").
341343
Notation CRLF := (String Ascii.CR (String Ascii.LF "")).
342344
Notation Tab := (String Ascii.Tab "").
345+
Notation NewPage := (String Ascii.NewPage "").
343346

344347
(** Given a list of strings, breaks all strings within the list at
345348
CFLF, CF, and LF. Useful for normalizing a newline-separated list

0 commit comments

Comments
 (0)