ABB.Swum.IdSplitter.Split C# (CSharp) Method

Split() public abstract method

Splits an identifier into its constituent words.
public abstract Split ( string identifier ) : string[]
identifier string The identifier to split.
return string[]
        public abstract string[] Split(string identifier);
    }

Usage Example

Example #1
0
        /// <summary>
        /// Creates a new PhraseNode that contains the words resulting from splitting the given identifier.
        /// </summary>
        /// <param name="id">A program identifier.</param>
        /// <param name="splitter">An IdSplitter to split the given identifier into words.</param>
        public PhraseNode(string id, IdSplitter splitter)
            : this() {
            string[] words;
            if(splitter != null) {
                words = splitter.Split(id);
            } else {
                words = new string[] { id };
            }

            InitWords(words);
        }
IdSplitter