예제 #1
0
        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("||"));
        }
예제 #2
0
        public static int GetVerseFromKey(string bibleKey)
        {
            string[] keySplit = Formatters.CreateBibleKeySplit(bibleKey);

            return(keySplit.Length >= 4 ? keySplit[3].ToInt32() : -1);
        }
예제 #3
0
        public static bool IsBiblesKey(string key, out string[] keyItems)
        {
            keyItems = key.Split(Formatters.KeySplitValue, StringSplitOptions.RemoveEmptyEntries);

            return(Formatters.IsBiblesKey(keyItems));
        }
예제 #4
0
        public static bool IsBiblesKey(string key)
        {
            string[] keyItems = null;

            return(Formatters.IsBiblesKey(key, out keyItems));
        }