Q:

All UPPERCASE to SentenceCase

I have a database that has tables in all CAPITALS eg - TABLENAME.
In my tt file I want to convert these to names to Sentence Case eg - TableName
Has anyone had any success in doing this before?
If all else failed I guess i could capitalise the first letter eg - Tablename would be better than all capitals.

A:

What you mean is the camel case but in your case it's not possible as your program can't possibly guess whether it should be TableName or TablenAme, unless you teach your application all the words in English, at least the ones that are mostly used in software engineering. The .NET Humanizr does something different from what you need, it breaks (well the String extension) long words like "TheVariableThatKeepsNumberOfAttempts"  into separate words to create a human readable sentence. But as you can see, this word itself follows camel-case pattern and it's not hard to instruct the program to split the word from where the letters are capital.
If it's not too late, you can change your table names from TABLENAME to TABLE_NAME, so that you can easily do what you want on the code side.

