Skip to content

MarkIvanDev/BibleReference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BibleReference

A library to parse text into bible references in multiple locales.

Features

Supported String Formats

  • Book (e.g. Genesis)
  • Book Chapter (e.g. Genesis 1)
  • Book Chapter-Chapter (e.g. Genesis 1-2)
  • Book Chapter:Verse (e.g. Genesis 1:1)
  • Book Chapter:Verse-Verse (e.g. Genesis 1:1-5)
  • Book Chapter:Verse,Verse (e.g. Genesis 1:1,5)
  • Book Chapter:Verse-Verse,Verse-Verse (e.g. Genesis 1:1-5,8-10)
  • Book Chapter:Verse-Verse;Chapter:Verse-Verse (e.g. Genesis 1:1-5;2:1-3)
  • Book Chapter:Verse-Chapter:Verse (e.g. Genesis 1:5-2:3)
  • Book Verse (for single-chapter books) (e.g. 2 John 9)
  • Book Verse,Verse (for single-chapter books) (e.g. 2 John 3,5)
  • Book Verse-Verse (for single-chapter books) (e.g. 2 John 3-5)
  • Book Verse-Verse,Verse (for single-chapter books) (e.g. 2 John 3-5,9)

Supported Locales

  • English
  • Filipino

Usage

You can use the BibleReferenceParser static class to parse.

var reference = BibleReferenceParser.Parse("Genesis 1:1-5;2:1-3");
Console.WriteLine(reference ==
    new Reference(
      BibleBook.Genesis,
      ReferenceSegment.MultipleVerses(1, 1, 5),
      ReferenceSegment.MultipleVerses(2, 1, 3)
    )); // prints true

Support

If you like my work and want to support me, buying me a coffee would be awesome! Thanks for your support!

Buy Me A Coffee


Mark Ivan BastoGitHub @MarkIvanDevTwitter @Rivolvan_Speaks

About

Bible Reference parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages