# Split

> Splits the Format items by the given search character.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.Core.Parsing](/engine/6000.7/script-reference/unity/smartstrings/core/parsing.md)
* **Assembly:** UnityEngine.SmartStringsModule

## Split(char)

Splits the [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) items by the given search character.

```csharp
public IList<Format> Split(char search)
```

### Parameters

**** (\[char]\(https\://learn.microsoft.com/dotnet/api/system.char)): Character used to split.

### Returns

| Type                                                                                        | Description                                                                                                                                      |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [IList\<Format>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) | The list of [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) segments produced by splitting on the character. |

## Split(char, int)

Splits the [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) items by the given search character.

```csharp
public IList<Format> Split(char search, int maxCount)
```

### Parameters

**** (\[char]\(https\://learn.microsoft.com/dotnet/api/system.char)): Character used to split.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Maximum number of segments to return.

### Returns

| Type                                                                                        | Description                                                                                                                                      |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [IList\<Format>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) | The list of [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) segments produced by splitting on the character. |
