Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SplitFileEntryComponents

Split a file entry according to a list of separators and find all the variations on the entry name.
Read time 1 minuteLast updated 6 days ago

Definition

SplitFileEntryComponents(string, char[])

Split a file entry according to a list of separators and find all the variations on the entry name.
public static IEnumerable<string> SplitFileEntryComponents(string path, in char[] entrySeparators)

Parameters

path

Path to tokenize.

entrySeparators

Entry separators used to tokenize the path.

Returns

Type

Description

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

SplitFileEntryComponents(string, char[], int)

Split a file entry according to a list of separators and find all the variations on the entry name.
public static IEnumerable<string> SplitFileEntryComponents(string path, in char[] entrySeparators, int minTokenLength)

Parameters

path

Path to tokenize.

entrySeparators

Entry separators used to tokenize the path.

minTokenLength

Returns

Type

Description

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