Leaf Input Parsing complete

This commit is contained in:
2015-11-20 11:39:23 -05:00
parent 750b2aee7b
commit 1fb73b9f76
26 changed files with 1294 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
using System;
using System.Globalization;
using System.Linq;
namespace LeafWeb.Core.Utility
{
public static class StringExtensions
{
public static string SplitCamelCase(this string str)
{
return str.Aggregate(
String.Empty,
(current, c) =>
current + (Char.IsUpper(c) && current.Length > 0 ? " " + c : c.ToString(CultureInfo.InvariantCulture)));
}
}
}