WikiCrawler/Utility/StringUtility.cs
/// <summary>
/// Capitalizes the first letter of each word.
/// </summary>
Capitalizes the first letter of each word.
Capitalizes the first letter of each word .
public static string ToTitleCase(this string text)
	{
		bool lastWhitespace = true;
		StringBuilder builder = new StringBuilder();
		for (int i = 0; i < text.Length; i++)
		{
			builder.Append(lastWhitespace ? char.ToUpper(text[i]) : text[i]);
			lastWhitespace = char.IsWhiteSpace(text[i]);
		}
		return builder.ToString();
	}
public static string ToTitleCase ( this string text ) { bool lastWhitespace = true ; StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < text . Length ; i ++ ) { builder . Append ( lastWhitespace ? char . ToUpper ( text [ i ] ) : text [ i ] ) ; lastWhitespace = char . IsWhiteSpace ( text [ i ] ) ; } return builder . ToString ( ) ; }
Capitalizes the first letter of each word.
Capitalizes the first letter of each word .
string
this