Version: 2021.1
언어: 한국어

SearchUtils.SplitFileEntryComponents

매뉴얼로 전환
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);
}