# SplitFileEntryComponents

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.7/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## SplitFileEntryComponents(string, char\[])

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

```csharp
public static IEnumerable<string> SplitFileEntryComponents(string path, in char[] entrySeparators)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path to tokenize.**** (\[char\[]]\(https\://learn.microsoft.com/dotnet/api/system.char)): Entry separators used to tokenize the path.

### Returns

| Type                                                                                                    | Description                                         |
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [IEnumerable\<string>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | 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.

```csharp
public static IEnumerable<string> SplitFileEntryComponents(string path, in char[] entrySeparators, int minTokenLength)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path to tokenize.**** (\[char\[]]\(https\://learn.microsoft.com/dotnet/api/system.char)): Entry separators used to tokenize the path.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                                                                    | Description                                         |
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [IEnumerable\<string>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | Returns list of tokens and variations in lowercase. |
