This is a flash blog , real fast. Wonder how to change a text to Proper Case? If you don’t know what is Proper Case (or in another words is Title Case), here it is the quote from Wikipedia.
“Some computer programming languages offer facilities for converting text to a form in which all words are first-letter capitalized.” from Wikipedia.
Proper Case Code
- string Input = "pIetER wALSh";
- string Output = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(Input);
- /*
- * The result for Output = "Pieter Walsh"
- */
Hope it helps….
Tidak ada komentar:
Posting Komentar
[give me your ideas, hopes, comments and compliments below...]
[aaand...... +1 if you need to....]