# FixedStringMethods

> Provides extension methods for FixedString"N"Bytes, NativeText, UnsafeText, and string, including appending, formatting, and parsing numbers.

## Definition

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

```csharp
public static class FixedStringMethods
```

## Static Methods

| Method                                                                                                         | Description                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Append](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/append.md)                       | Appends bytes to this string.                                                                                                                                                              |
| [AppendFormat](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/appendformat.md)           | Interpolates strings into a format string and appends the result to this string.                                                                                                           |
| [AppendRawByte](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/appendrawbyte.md)         | Appends a byte to this string.                                                                                                                                                             |
| [CompareTo](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/compareto.md)                 | Returns the sort position of this string relative to a byte sequence.                                                                                                                      |
| [ComputeHashCode](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/computehashcode.md)     | Returns a hash code of this string.                                                                                                                                                        |
| [Contains](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/contains.md)                   | Returns true if a given substring occurs within this string.                                                                                                                               |
| [ConvertToString](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/converttostring.md)     | Returns a copy of this string as a managed string.                                                                                                                                         |
| [CopyFrom](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/copyfrom.md)                   | Copies another string to this string (making the two strings equal). Replaces any existing content of the FixedString.                                                                     |
| [CopyFromTruncated](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/copyfromtruncated.md) | Copies another string to this string. If the string exceeds the capacity it will be truncated. Replaces any existing content of the FixedString.                                           |
| [EffectiveSizeOf](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/effectivesizeof.md)     | Returns the effective size in bytes of this string.                                                                                                                                        |
| [EndsWith](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/endswith.md)                   | Returns true if a given character occurs at the end of this string.                                                                                                                        |
| [Equals](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/equals.md)                       | Returns true if this string and a byte sequence are equal (meaning they have the same length and content).                                                                                 |
| [IndexOf](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/indexof.md)                     | Returns the index of the first occurrence of a byte sequence in this string.                                                                                                               |
| [LastIndexOf](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/lastindexof.md)             | Returns the index of the last occurrence of a byte sequence within this string.                                                                                                            |
| [Parse](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/parse.md)                         | Parses an int from this string starting at a byte offset.                                                                                                                                  |
| [Peek](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/peek.md)                           | Returns the Unicode.Rune at an index of this string.                                                                                                                                       |
| [Read](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/read.md)                           | Returns the Unicode.Rune at an index of this string. Increments the index to the position of the next character.                                                                           |
| [StartsWith](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/startswith.md)               | Returns true if a given character occurs at the beginning of this string.                                                                                                                  |
| [Substring](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/substring.md)                 | Retrieves a substring of this string. The substring starts from a specific character index and continues to the end of the string. The new substring has the same allocator as the string. |
| [ToLowerAscii](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/tolowerascii.md)           | Converts string to lowercase only ASCII characters.                                                                                                                                        |
| [ToUpperAscii](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/toupperascii.md)           | Converts string to uppercase only ASCII characters.                                                                                                                                        |
| [Trim](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/trim.md)                           | Removes whitespace characters from the begining and the end of the string.                                                                                                                 |
| [TrimEnd](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/trimend.md)                     | Removes whitespace characters from the end of the string.                                                                                                                                  |
| [TrimStart](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/trimstart.md)                 | Removes whitespace characters from begining of the string.                                                                                                                                 |
| [Write](/engine/6000.7/script-reference/unity/collections/fixedstringmethods/write.md)                         | Writes a Unicode.Rune at an index of this string. Increments the index to the position of the next character.                                                                              |
