{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class FixedStringMethods | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FixedStringMethods

    Provides extension methods for FixedStringNBytes.

    Inheritance
    object
    FixedStringMethods
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public static class FixedStringMethods

    Methods

    Name Description
    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6, in T7)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7, T8>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0>(ref T, in U, in T0)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1>(ref T, in U, in T0, in T1)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2>(ref T, in U, in T0, in T1, in T2)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2, T3>(ref T, in U, in T0, in T1, in T2, in T3)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2, T3, T4>(ref T, in U, in T0, in T1, in T2, in T3, in T4)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5)

    Interpolates strings into a format string and appends the result to this string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6)

    Interpolates strings into a format string and appends the result to this string.

    AppendRawByte<T>(ref T, byte)

    Appends a byte to this string.

    Append<T>(ref T, byte*, int)

    Appends bytes to this string.

    Append<T>(ref T, char)

    Appends a char to this string.

    Append<T>(ref T, int)

    Appends a number (converted to UTF-8 characters) to this string.

    Append<T>(ref T, long)

    Appends a number (converted to UTF-8 characters) to this string.

    Append<T>(ref T, float, char)

    Appends a number (converted to UTF-8 characters) to this string.

    Append<T>(ref T, string)

    Appends another string to this string.

    Append<T>(ref T, uint)

    Appends a number (converted to UTF-8 characters) to this string.

    Append<T>(ref T, ulong)

    Appends a number (converted to UTF-8 characters) to this string.

    Append<T>(ref T, Rune)

    Appends a Unicode.Rune to this string.

    Append<T>(ref T, Rune, int)

    Appends a Unicode.Rune a number of times to this string.

    Append<T, T2>(ref T, in T2)

    Appends another string to this string.

    CompareTo<T>(ref T, byte*, int)

    Returns the sort position of this string relative to a byte sequence.

    CompareTo<T, T2>(ref T, in T2)

    Returns the sort position of this string relative to another.

    ComputeHashCode<T>(ref T)

    Returns a hash code of this string.

    Contains<T, T2>(ref T, in T2)

    Returns true if a given substring occurs within this string.

    ConvertToString<T>(ref T)

    Returns a copy of this string as a managed string.

    CopyFromTruncated<T>(ref T, string)

    Copies another string to this string. If the string exceeds the capacity it will be truncated. Replaces any existing content of the FixedString.

    CopyFromTruncated<T, T2>(ref T, in T2)

    Copies another string to this string. If the string exceeds the capacity it will be truncated.

    CopyFrom<T>(ref T, string)

    Copies another string to this string (making the two strings equal). Replaces any existing content of the FixedString.

    CopyFrom<T, T2>(ref T, in T2)

    Copies another string to this string (making the two strings equal).

    EffectiveSizeOf<T>(ref T)

    Returns the effective size in bytes of this string.

    EndsWith<T>(ref T, Rune)

    Returns true if a given character occurs at the end of this string.

    EndsWith<T, U>(ref T, in U)

    Returns true if a given substring occurs at the end of this string.

    Equals<T>(ref T, byte*, int)

    Returns true if this string and a byte sequence are equal (meaning they have the same length and content).

    Equals<T, T2>(ref T, in T2)

    Returns true if this string is equal to another.

    IndexOf<T>(ref T, byte*, int)

    Returns the index of the first occurrence of a byte sequence in this string.

    IndexOf<T>(ref T, byte*, int, int, int)

    Returns the index of the first occurrence of a byte sequence within a subrange of this string.

    IndexOf<T>(ref T, Rune)

    Returns the index of the first occurrence of a single Unicode rune in this string.

    IndexOf<T, T2>(ref T, in T2)

    Returns the index of the first occurrence of a substring within this string.

    IndexOf<T, T2>(ref T, in T2, int, int)

    Returns the index of the first occurrence of a substring within a subrange of this string.

    LastIndexOf<T>(ref T, byte*, int)

    Returns the index of the last occurrence of a byte sequence within this string.

    LastIndexOf<T>(ref T, byte*, int, int, int)

    Returns the index of the last occurrence of a byte sequence within a subrange of this string.

    LastIndexOf<T>(ref T, Rune)

    Returns the index of the last occurrence of a single Unicode rune within this string.

    LastIndexOf<T, T2>(ref T, in T2)

    Returns the index of the last occurrence of a substring within this string.

    LastIndexOf<T, T2>(ref T, in T2, int, int)

    Returns the index of the last occurrence of a substring within a subrange of this string.

    Parse<T>(ref T, ref int, ref int)

    Parses an int from this string starting at a byte offset.

    Parse<T>(ref T, ref int, ref float, char)

    Parses a float from this string starting at a byte offset.

    Parse<T>(ref T, ref int, ref uint)

    Parses an uint from this string starting at a byte offset.

    Peek<T>(ref T, int)

    Returns the Unicode.Rune at an index of this string.

    Read<T>(ref T, ref int)

    Returns the Unicode.Rune at an index of this string. Increments the index to the position of the next character.

    StartsWith<T>(ref T, Rune)

    Returns true if a given character occurs at the beginning of this string.

    StartsWith<T, U>(ref T, in U)

    Returns true if a given substring occurs at the beginning of this string.

    Substring(ref NativeText, int)

    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.

    Substring(ref NativeText, int, int)

    Retrieves a substring of this string. The substring starts from a specific character index, and has a specified length. The new substring has the same allocator as the string.

    Substring(ref NativeText, int, int, AllocatorHandle)

    Retrieves a substring from this string. The substring starts from a specific character index, and has a specified length. Allocates memory to the new substring with the allocator specified.

    Substring(ref NativeText, int, AllocatorHandle)

    Retrieves a substring of this string. The substring starts from a specific character index and continues to the end of the string. Allocates memory to the new substring with the allocator specified.

    Substring<T>(ref T, int)

    Retrieves a substring of this string. The substring starts from a specific character index and continues to the end of the string.

    Substring<T>(ref T, int, int)

    Retrieves a substring of this string. The substring starts from a specific character index, and has a specified length.

    ToLowerAscii(ref UnsafeText, AllocatorHandle)

    Converts string to lowercase only ASCII characters.

    ToLowerAscii(ref NativeText, AllocatorHandle)

    Converts string to lowercase only ASCII characters.

    ToLowerAscii<T>(ref T)

    Converts string to lowercase only ASCII characters.

    ToUpperAscii(ref UnsafeText, AllocatorHandle)

    Converts string to uppercase only ASCII characters.

    ToUpperAscii(ref NativeText, AllocatorHandle)

    Converts string to uppercase only ASCII characters.

    ToUpperAscii<T>(ref T)

    Converts string to uppercase only ASCII characters.

    Trim(ref UnsafeText, AllocatorHandle)

    Removes whitespace characters from the begining and the end of the string.

    Trim(ref UnsafeText, AllocatorHandle, ReadOnlySpan<Rune>)

    Removes specific characters from the begining and the end of the string.

    Trim(ref NativeText, AllocatorHandle)

    Removes whitespace characters from the begining and the end of the string.

    Trim(ref NativeText, AllocatorHandle, ReadOnlySpan<Rune>)

    Removes specific characters from the begining and the end of the string.

    TrimEnd(ref UnsafeText, AllocatorHandle)

    Removes whitespace characters from the end of the string.

    TrimEnd(ref UnsafeText, AllocatorHandle, ReadOnlySpan<Rune>)

    Removes specific characters from the end of the string.

    TrimEnd(ref NativeText, AllocatorHandle)

    Removes whitespace characters from the end of the string.

    TrimEnd(ref NativeText, AllocatorHandle, ReadOnlySpan<Rune>)

    Removes specific characters from the end of the string.

    TrimEnd<T>(ref T)

    Removes whitespace characters from the end of the string.

    TrimEnd<T>(ref T, ReadOnlySpan<Rune>)

    Removes specific characters from the end of the string.

    TrimStart(ref UnsafeText, AllocatorHandle)

    Removes whitespace characters from begining of the string.

    TrimStart(ref UnsafeText, AllocatorHandle, ReadOnlySpan<Rune>)

    Removes specific characters characters from begining of the string.

    TrimStart(ref NativeText, AllocatorHandle)

    Removes whitespace characters from begining of the string.

    TrimStart(ref NativeText, AllocatorHandle, ReadOnlySpan<Rune>)

    Removes specific characters from begining of the string.

    TrimStart<T>(ref T)

    Removes whitespace characters from begining of the string.

    TrimStart<T>(ref T, ReadOnlySpan<Rune>)

    Removes specific characters from begining of the string.

    Trim<T>(ref T)

    Removes whitespace characters from the begining and the end of the string.

    Trim<T>(ref T, ReadOnlySpan<Rune>)

    Removes specific characters from the begining and the end of the string.

    Write<T>(ref T, ref int, Rune)

    Writes a Unicode.Rune at an index of this string. Increments the index to the position of the next character.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)