No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnityMenuItem.cs 523B

123456789101112131415161718
  1. namespace Unity.PlasticSCM.Editor.UI
  2. {
  3. internal static class UnityMenuItem
  4. {
  5. internal static string GetText(string menuName, string subMenuName)
  6. {
  7. return string.Format("{0}{1}{2}", menuName, SEPARATOR, subMenuName);
  8. }
  9. internal static string EscapedText(string menuName)
  10. {
  11. return menuName.Replace(SEPARATOR, ESCAPED_SEPARATOR);
  12. }
  13. const string SEPARATOR = "/";
  14. const string ESCAPED_SEPARATOR = "\u200A\u2215\u200A";
  15. }
  16. }