title-case Questions
5
Solved
I have a large array of strings such as this one:
"INTEGRATED ENGINEERING 5 Year (BSC with a Year in Industry)"
I want to capitalise the first letter of the words and make the rest of th...
Daysidayspring asked 13/11, 2015 at 15:22
48
Solved
I'm trying to write a function that capitalizes the first letter of every word in a string (converting the string to title case).
For instance, when the input is "I'm a little tea pot", I...
Lynwoodlynx asked 15/9, 2015 at 14:52
16
Solved
I searched high and low but could only find indirect references to this type of question. When developing an android application, if you have a string which has been entered by the user, how can yo...
Louislouisa asked 12/9, 2012 at 11:47
4
Solved
I want to convert an input string to Title Case.
So, if I have an input string
Name: MR. M.A.D KARIM
I want to produce the following output string
Name: M.A.D Karim
And if I have an input st...
Leffen asked 22/11, 2014 at 8:58
69
Is there a simple way to convert a string to Title Case? E.g. john smith becomes John Smith. I'm not looking for something complicated like John Resig's solution, just (hopefully) some kind of one-...
Clareclarence asked 13/10, 2008 at 8:5
15
Solved
Let's say that I have a two word string and I want to capitalize
both of them.
name <- c("zip code", "state", "final count")
The Hmisc package has a function capitalize which capitalized the ...
Pogue asked 15/6, 2011 at 21:44
22
Are there any built in methods available to convert a string into Title Case format?
Filippo asked 6/7, 2009 at 9:6
12
Solved
I want to standardize a user-supplied string. I'd like the first letter to be capitalized for the name and if they have entered two last names, then capitalize the first and second names. For examp...
Fungus asked 4/1, 2012 at 23:50
19
Solved
I have a string that I converted to a TextInfo.ToTitleCase and removed the underscores and joined the string together. Now I need to change the first and only the first character in the string to l...
Unspent asked 18/2, 2017 at 3:26
11
Solved
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 scri...
Velar asked 28/7, 2009 at 2:9
25
Solved
I have a table that was imported as all UPPER CASE and I would like to turn it into Proper Case. What script have any of you used to complete this?
Burgle asked 23/10, 2008 at 15:19
9
Solved
I have a String and I need to convert the first letter of each word to upper case and rest to lower case using xsl, For example,
Input String= dInEsh sAchdeV kApil Muk
Desired Output String= Dine...
Cosmic asked 29/10, 2012 at 13:26
3
Solved
What's the difference between uppercase and titlecase.
Frankly, I never heard of titlecase before.
In java there are seperate methods for both:
Character.isTitleCase(char)
Character.isUpperCase(...
Toxophilite asked 2/8, 2015 at 10:38
3
Solved
I have a string with improper capitalization scattered like below:
$str = "tHis iS a StRinG thAt NeEds ProPer CapiTilization";
$newStr = ucfirst($str);
echo $newStr;
How would I be able ...
Amphicoelous asked 14/9, 2015 at 12:15
2
Solved
Could you have a look at my sample?
This result produces from the following example:
var str = @"VIENNA IS A VERY BEAUTIFUL CAPITAL CITY.";
var title = new CultureInfo("en-US",...
Deleterious asked 28/5, 2021 at 10:33
1
Solved
When using Kotlin 1.5, Android Studio warns that String.capitalize is deprecated.
The suggested replacement is:
myString.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) e...
Blouin asked 16/5, 2021 at 6:42
20
How do I format a string to title case?
Algonkian asked 3/8, 2008 at 16:3
11
Solved
I found a brilliant RegEx to extract the part of a camelCase or TitleCase expression.
(?<!^)(?=[A-Z])
It works as expected:
value -> value
camelValue -> camel / Value
TitleValue -> Title /...
Burack asked 29/9, 2011 at 7:36
4
Solved
I want to change the names of some files automatically.
With this code I change the lowercase letters to uppercase:
get-childitem *.mp3 | foreach { if ($.Name -cne $.Name.ToUpper()) {
ren $.Fu...
Marvismarwin asked 27/3, 2014 at 17:12
9
Solved
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 like and, in, and of lowerca...
Jyoti asked 16/9, 2010 at 16:25
3
Solved
Is there any difference in str.title() vs str.capitalize()? My understanding from the docs is that both methods capitalize the first letter of a word and make the rest of the letters lowercase. Did...
Tiaratibbetts asked 18/12, 2019 at 3:1
2
I am preparing slides using markdown and using pandoc to convert them to HTML slides for use with reveal.js.
The resulting titles default to uppercase. I want them to appear in "titlecase" where e...
Colorant asked 1/11, 2017 at 14:39
10
Solved
What is the easiest way to capitalize the first letter in each word of a string?
Laconia asked 16/9, 2008 at 21:17
4
Solved
I am having trouble with the capitalization of names using PHP. There are some names that have 2 capital letters in them (ex: McCall). When storing a users name that registers for our website, we r...
Ski asked 4/3, 2012 at 2:35
5
Solved
Python: Is there a one line script to title case strings except for strings that start with a digit?
The title() method works great, but I have a situation where there are strings that start with both words and numbers and I only want to titlecase the words in the string that do not begin with num...
Ignition asked 28/8, 2015 at 22:28
1 Next >
© 2022 - 2024 — McMap. All rights reserved.