Skip to content

Commit d10a7aa

Browse files
author
Humza Shahid
committed
[new release] piece_rope (0.9.1)
CHANGES: * Piece_rope.stats function now returns proper number of lines. * More robust handling of \r\n line breaks. * If trying to insert in midle of \r\n, insert is moved to after this pair. * If either \r or \n is deleted in \r\n pair, deletes both. * If trying to retrieve line that ends with \r\n, returns the \r\n pair at the end. * If trying to retrieve line after a \r\n pair, now returns the line after the pair (previously returned \n at the start). * Additional unit tests to verify proper functioning.
1 parent 064e616 commit d10a7aa

File tree

1 file changed

+43
-0
lines changed
  • packages/piece_rope/piece_rope.0.9.1

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
opam-version: "2.0"
2+
synopsis: "A data structure for efficiently manipulating strings"
3+
description:
4+
"Supports UTF-8, UTF-16 and UTF-32 for interacting with external systems. Provides extensibility points for you to implement domain-specific functions. Documented and designed to be simple to use."
5+
maintainer: ["Humza Shahid"]
6+
authors: ["Humza Shahid"]
7+
license: "MIT"
8+
tags: ["text" "piece table" "piece tree" "rope" "unicode"]
9+
homepage: "https://github.com/hummy123/ocaml-piecerope"
10+
bug-reports: "https://github.com/hummy123/ocaml-piecerope/issues"
11+
depends: [
12+
"ocaml" {>= "4.13.0"}
13+
"dune" {>= "3.6"}
14+
"atdgen" {>= "2.11.0"}
15+
"yojson" {>= "2.0.2"}
16+
"alcotest" {>= "1.7.0"}
17+
"bisect_ppx" {>= "2.5.0"}
18+
"odoc" {with-doc}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"@install"
30+
"@runtest" {with-test}
31+
"@doc" {with-doc}
32+
]
33+
]
34+
dev-repo: "git+https://github.com/hummy123/ocaml-piecerope.git"
35+
url {
36+
src:
37+
"https://github.com/hummy123/ocaml-piecerope/releases/download/0.9.1/piece_rope-0.9.1.tbz"
38+
checksum: [
39+
"sha256=e8e799251c08ddead0fabe80244712143a0f8a75ceaf18e3bf7fceac27cc5fa4"
40+
"sha512=0d4a61f65418170fcd90e5ef185a7b008ed051a0dfbce5cb222d5e7451f88336fad6f0795f75bae788663feaf463c5f1e88fd080a6bf86c542431b0a53288024"
41+
]
42+
}
43+
x-commit-hash: "bdcbeba6b3db969f56c57f2a9787ca0796d38d67"

0 commit comments

Comments
 (0)