cite-architecture / ohco2

A cross-platform library for working with collections of texts in the OHCO2 model
https://cite-architecture.github.io/ohco2/
GNU General Public License v3.0
2 stars 1 forks source link

rangeTo(CtsUrn), rangeTo(String) #125

Closed Eumaeus closed 5 years ago

Eumaeus commented 5 years ago

E.g.

CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1").rangeTo("1.10")

=> CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10")

CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1").rangeTo(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1"))

=> CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10")

Eumaeus commented 5 years ago

Wrong lib. This belongs in xcite.