title-case

Format string to title case

How do I format a string to title case?...

How can I capitalize the first letter of each word in a string in Perl?

What is the easiest way to capitalize the first letter in each word of a string? ...

Is there a simple way to convert MySQL data into Title Case?

I have a MySQL table where all the data in one column was entered in UPPERCASE, but I need to convert in to Title Case, with recognition of "small words" akin to the Daring Fireball Title Case script. I found this excellent solution for transforming strings to lowercase, but the Title Case function seems to have been left out of my vers...

TitleCase In Visual C++

I'm currently trying to find an easy way to convert a Visual (Managed) C++ string to title case. In VB.NET, you can use either: StrConv(sampleString, vbProperCase) or sampleString = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(sampleString) In C# you use: sampleString = System.Globalization.CultureInfo.Cu...

In Java how do you Title Case a String while preserving some common abbreviations

There are many ways to Title Case in java. But how do you prevent some of the common abbreviations from being converted. For Example; System.out.println(makeProper("JAMES A SWEET"); System.out.println(makeProper("123 MAIN ST SW"); James A Sweet 123 Main St Sw SW should remain uppercase as it is an abbreviation to South West. ...

Python Titlecase a String with exceptions

Is there a standard way in Python to titlecase a string (i.e. words start with uppercase characters, all remaining cased characters have lowercase) but leaving articles and like lowercased? ...