// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // String Extensions // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Extensions { using System.Globalization; /// /// String Extensions /// public static class StringExtensions { /// /// Change the input string to title case /// /// the input string /// the input string in title case public static string ToTitleCase(this string input) { TextInfo textInfo = new CultureInfo(CultureInfo.CurrentCulture.Name, false).TextInfo; return textInfo.ToTitleCase(input); } } }