mathe/Library/PackageCache/com.unity.shadergraph@14.0.8/Editor/Data/Util/TextUtil.cs
2024-09-20 20:30:10 +02: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");
}
}
}