Version: 2021.1
言語: 日本語
public static IEnumerable<string> SplitFileEntryComponents (string path, char[] entrySeparators);

パラメーター

path Path to tokenize.
entrySeparators Entry separators used to tokenize the path.

戻り値

IEnumerable<string> Returns list of tokens and variations in lowercase.

説明

Split a file entry according to a list of separators and find all the variations on the entry name.

public static void IndexWordComponents(int documentIndex, string word)
{
    foreach (var c in SearchUtils.SplitFileEntryComponents(word, SearchUtils.entrySeparators))
        index.AddWord(c.ToLowerInvariant(), 0, documentIndex);
}