# ToLowerAscii

> Converts string to lowercase only ASCII characters.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## ToLowerAscii\<T>(T)

Converts string to lowercase only ASCII characters.

```csharp
public static T ToLowerAscii<T>(this ref T fs) where T : unmanaged, INativeList<byte>, IUTF8Bytes
```

### Parameters

**** (T): A string to perform operation.

### Returns

| Type | Description                                                 |
| ---- | ----------------------------------------------------------- |
| T    | Returns a copy of this string converted to lowercase ASCII. |

## ToLowerAscii(UnsafeText, AllocatorHandle)

Converts string to lowercase only ASCII characters.

```csharp
public static UnsafeText ToLowerAscii(this ref UnsafeText fs, AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[UnsafeText]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafetext)): A [UnsafeText](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafetext.md) string to perform operation.**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The [AllocatorManager.AllocatorHandle](/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle.md) allocator type to use.

### Returns

| Type                                                                                          | Description                                                 |
| --------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [UnsafeText](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafetext.md) | Returns a copy of this string converted to lowercase ASCII. |

## ToLowerAscii(NativeText, AllocatorHandle)

Converts string to lowercase only ASCII characters.

```csharp
public static NativeText ToLowerAscii(this ref NativeText fs, AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[NativeText]\(/engine/6000.7/script-reference/unity/collections/nativetext)): A [NativeText](/engine/6000.7/script-reference/unity/collections/nativetext.md) string to perform operation.**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The [AllocatorManager.AllocatorHandle](/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle.md) allocator type to use.

### Returns

| Type                                                                          | Description                                                 |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [NativeText](/engine/6000.7/script-reference/unity/collections/nativetext.md) | Returns a copy of this string converted to lowercase ASCII. |
