1using System.Text.RegularExpressions; 2 3namespace UnityEditor.ShaderGraph 4{ 5 public static class TextUtil 6 { 7 public static string PascalToLabel(this string pascalString) 8 { 9 return Regex.Replace(pascalString, "(\\B[A-Z])", " $1"); 10 } 11 } 12}