Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Editor/Data/Util/TextUtil.cs
2024-05-06 11:45:45 -07:00

13 lines
280 B
C#

using System.Text.RegularExpressions;
namespace UnityEditor.ShaderGraph
{
public static class TextUtil
{
public static string PascalToLabel(this string pascalString)
{
return Regex.Replace(pascalString, "(\\B[A-Z])", " $1");
}
}
}