docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TMP_TextParsingUtilities

    Inheritance
    object
    TMP_TextParsingUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    public class TMP_TextParsingUtilities

    Properties

    instance

    Get a singleton instance of the TextModuleUtilities.

    Declaration
    public static TMP_TextParsingUtilities instance { get; }
    Property Value
    Type Description
    TMP_TextParsingUtilities

    Methods

    GetHashCode(string)

    Function returning the hashcode value of a given string.

    Declaration
    public static int GetHashCode(string s)
    Parameters
    Type Name Description
    string s
    Returns
    Type Description
    int

    GetHashCodeCaseSensitive(string)

    Declaration
    public static int GetHashCodeCaseSensitive(string s)
    Parameters
    Type Name Description
    string s
    Returns
    Type Description
    int

    IsHighSurrogate(uint)

    Whether the scalar value is a Unicode high surrogate code unit.

    Declaration
    public static bool IsHighSurrogate(uint c)
    Parameters
    Type Name Description
    uint c

    Unicode scalar value to test; expected in UTF-32 form for surrogate-related APIs.

    Returns
    Type Description
    bool

    Whether the value lies in the high surrogate range from U+D800 through U+DBFF.

    Remarks

    High surrogates pair with low surrogates to represent supplementary plane characters; this helper matches the range used before ConvertToUTF32(uint, uint).

    IsLowSurrogate(uint)

    Whether the scalar value is a Unicode low surrogate code unit.

    Declaration
    public static bool IsLowSurrogate(uint c)
    Parameters
    Type Name Description
    uint c

    Unicode scalar value to test; expected in UTF-32 form for surrogate-related APIs.

    Returns
    Type Description
    bool

    Whether the value lies in the low surrogate range from U+DC00 through U+DFFF.

    Remarks

    Low surrogates follow a high surrogate in UTF-16; validating both halves prevents corrupt supplementary character reconstruction during parsing.

    ToLowerASCIIFast(char)

    Get lowercase version of this ASCII character.

    Declaration
    public static char ToLowerASCIIFast(char c)
    Parameters
    Type Name Description
    char c
    Returns
    Type Description
    char

    ToLowerASCIIFast(uint)

    Get lowercase version of this ASCII character.

    Declaration
    public static uint ToLowerASCIIFast(uint c)
    Parameters
    Type Name Description
    uint c
    Returns
    Type Description
    uint

    ToUpperASCIIFast(char)

    Get uppercase version of this ASCII character.

    Declaration
    public static char ToUpperASCIIFast(char c)
    Parameters
    Type Name Description
    char c
    Returns
    Type Description
    char

    ToUpperASCIIFast(uint)

    Get uppercase version of this ASCII character.

    Declaration
    public static uint ToUpperASCIIFast(uint c)
    Parameters
    Type Name Description
    uint c
    Returns
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2026 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)