public static string ChangeBible(string bibleKey, int bibleId) { string[] splitkeys = null; if (Formatters.IsBiblesKey(bibleKey, out splitkeys)) { splitkeys[0] = bibleId.ToString(); return(splitkeys.Concatenate("||")); } List <string> splitList = new List <string>(); splitList.Add(bibleId.ToString()); splitList.AddRange(splitkeys); return(splitList.ToArray().Concatenate("||")); }
public static int GetVerseFromKey(string bibleKey) { string[] keySplit = Formatters.CreateBibleKeySplit(bibleKey); return(keySplit.Length >= 4 ? keySplit[3].ToInt32() : -1); }
public static bool IsBiblesKey(string key, out string[] keyItems) { keyItems = key.Split(Formatters.KeySplitValue, StringSplitOptions.RemoveEmptyEntries); return(Formatters.IsBiblesKey(keyItems)); }
public static bool IsBiblesKey(string key) { string[] keyItems = null; return(Formatters.IsBiblesKey(key, out keyItems)); }