Example #1
0
        public string NameLimited(Tag tag, int maxLength)
        {
            if (maxLength < 5)
            {
                throw new Exception("NameLimited: maxLength too short");
            }

            WordMap words = new WordMap(tag);

            words.LimitText(maxLength, BuildName);

            return(BuildName(words.Items));
        }
Example #2
0
        public string Name(Tag tag)
        {
            WordMap words = new WordMap(tag);

            return(BuildName(words.Items));
        }
Example #3
0
        public bool CanBuildName(Tag tag)
        {
            WordMap words = new WordMap(tag);

            return(Pattern.HasMinimumRequiredWords(words.Items));
        }
Example #4
0
        public string Name(IDictionary <FrameMeaning, string> words)
        {
            WordMap wordMap = new WordMap(words);

            return(Id3FileUtils.RemoveTrailingPeriods(Pattern.ToString(wordMap.Items)));
        }
Example #5
0
        public bool CanBuildName(IDictionary <FrameMeaning, string> words)
        {
            WordMap wordMap = new WordMap(words);

            return(Pattern.HasMinimumRequiredWords(wordMap.Items));
        }