osisIdentifier property
String
get
osisIdentifier
Encodes this reference as an OSIS identifier.
Ranges repeat both full endpoints, for example
2Cor.6.14-2Cor.7.1.
Verse subdivisions use OSIS sub-identifiers, such as John.1.5!a.
See section 15.3 of the OSIS 2.1.1 User's Manual:
https://www.crosswire.org/osis/OSIS%202.1.1%20User%20Manual%2006March2006.pdf
Implementation
String get osisIdentifier => switch (this) {
VerseRef verse => _verseToOsis(verse),
VerseRangeRef range =>
'${_verseToOsis(range.start)}-${_verseToOsis(range.end)}',
};