Get() public static method

Get the versification table for this versification
public static Get ( ScrVers vers ) : VersificationTable
vers ScrVers
return VersificationTable
Esempio n. 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Constructs and returns a new ScrReference representing Revelation 22:21 (or whatver
        /// the last verse is in Revelation for the current default versification scheme).
        /// </summary>
        /// <param name="versification">The versification scheme.</param>
        /// ------------------------------------------------------------------------------------
        public static ScrReference EndOfBible(ScrVers versification)
        {
            VersificationTable versificationTable = VersificationTable.Get(versification);
            int lastChapter = versificationTable.LastChapter(LastBook);

            return(new ScrReference(LastBook, lastChapter,
                                    versificationTable.LastVerse(LastBook, lastChapter), versification));
        }
Esempio n. 2
0
 public void GetLastChapterForBook()
 {
     Assert.AreEqual(2, VersificationTable.Get(ScrVers.English).LastChapter(
                         BCVRef.BookToNumber("HAG")));
     Assert.AreEqual(150, VersificationTable.Get(ScrVers.English).LastChapter(
                         BCVRef.BookToNumber("PSA")));
     Assert.AreEqual(0, VersificationTable.Get(ScrVers.English).LastChapter(-1));
 }
Esempio n. 3
0
 public void GetLastVerseForChapter()
 {
     Assert.AreEqual(20, VersificationTable.Get(ScrVers.English).LastVerse(
                         BCVRef.BookToNumber("PSA"), 9));
     Assert.AreEqual(39, VersificationTable.Get(ScrVers.Septuagint).LastVerse(
                         BCVRef.BookToNumber("PSA"), 9));
     Assert.AreEqual(1, VersificationTable.Get(ScrVers.English).LastVerse(
                         BCVRef.BookToNumber("PSA"), 0), "Intro chapter (0) should be treated as having 1 verse.");
     Assert.AreEqual(0, VersificationTable.Get(ScrVers.Septuagint).LastVerse(0, 0));
 }
Esempio n. 4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Copy a reference, converting it to the specified versification if necessary
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public ScrReference(ScrReference from, ScrVers targetVersification)
     : this(from.Book, from.Chapter, from.Verse, from.Segment, from.m_versification)
 {
     VersificationTable.Get(targetVersification).ChangeVersification(this);
 }