docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method InsertSpacesBetweenWords

    InsertSpacesBetweenWords(string)

    Inserts spaces into a string between words separated by uppercase letters. Numbers are treated as uppercase.

    Declaration
    public static string InsertSpacesBetweenWords(this string str)
    Parameters
    Type Name Description
    string str

    Input string.

    Returns
    Type Description
    string

    Input string with spaces added.

    Remarks

    Examples:

    • "HelloWorld" -> "Hello World"
    • "HelloWORLDAgain" -> "Hello WORLD Again"
    In This Article
    Back to top
    Copyright © 2024 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)