Questions tagged [uppercase]

Uppercase characters are capital letters.

Uppercase characters are capital letters: A, B, C, …

In ASCII, they are the characters in the range [A-Z]. But other characters (for instance accented characters like É, È, Ê, À, Î, Ä, Ù) are also considered uppercase.

The counterpart of is .


See also: Letter case on Wikipedia

1373 questions
2513
votes
9 answers

How do I lowercase a string in Python?

Is there a way to convert a string to lowercase? "Kilometers" → "kilometers" See How to change a string into uppercase? for the opposite.
Benjamin Didur
  • 25,343
  • 3
  • 15
  • 5
1213
votes
11 answers

How to convert a string to lower or upper case in Ruby

How do I take a string and convert it to lower or upper case in Ruby?
Heat Miser
  • 19,438
  • 7
  • 35
  • 38
806
votes
8 answers

How to change a string into uppercase?

How can I convert a string into uppercase in Python? When I tried to research the problem, I found something about string.ascii_uppercase, but it couldn't solve the problem: >>> s = 'sdsd' >>> s.ascii_uppercase Traceback (most recent call last): …
gadss
  • 21,687
  • 41
  • 104
  • 154
469
votes
52 answers

How to capitalize the first character of each word in a string

Is there a function built into Java that capitalizes the first character of each word in a String, and does not affect the others? Examples: jon skeet -> Jon Skeet miles o'Brien -> Miles O'Brien (B remains capital, this rules out Title Case) old…
WillfulWizard
  • 5,340
  • 2
  • 19
  • 15
184
votes
27 answers

In Android EditText, how to force writing uppercase?

In my Android application I have different EditText where the user can enter information. But I need to force user to write in uppercase letters. Do you know a function to do that?
Natacha
  • 1,887
  • 2
  • 14
  • 7
144
votes
24 answers

Capitalize the first letter of string in AngularJs

I want capitalize first character of string in angularjs As i used {{ uppercase_expression | uppercase}} it convert whole string to upper case.
Piyush
  • 3,947
  • 9
  • 36
  • 69
142
votes
3 answers

Capitalize or change case of an NSString in Objective-C

I was wondering how to capitalize a string found in an object in an NSMutableArray. An NSArray contains the string 'April' at index 2. I want this to be changed to 'APRIL'. Is there something simple like this? viewNoteDateMonth.text = [[displayDate…
n.evermind
  • 11,944
  • 19
  • 78
  • 122
140
votes
7 answers

How can I convert a string from uppercase to lowercase in Bash?

I have been searching to find a way to convert a string value from uppercase to lowercase. All the search results show approaches of using the tr command. The problem with the tr command is that I am able to get the result only when I use the…
raga
  • 1,483
  • 2
  • 13
  • 13
130
votes
10 answers

Why is capitalizing the first letter of a string so convoluted in Rust?

I'd like to capitalize the first letter of a &str. It's a simple problem and I hope for a simple solution. Intuition tells me to do something like this: let mut s = "foobar"; s[0] = s[0].to_uppercase(); But &strs can't be indexed like this. The…
marshallm
  • 1,565
  • 2
  • 11
  • 10
129
votes
25 answers

SQL Server: Make all UPPER case to Proper Case/Title Case

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?
RyanKeeter
  • 5,939
  • 7
  • 32
  • 40
113
votes
8 answers

How to set text to upper case in react native

How to set some text as upper case in react native? Test Need to show that Test as TEST.
Thivya
  • 2,922
  • 4
  • 17
  • 20
108
votes
7 answers

Replace a Regex capture group with uppercase in Javascript

I'd like to know how to replace a capture group with its uppercase in JavaScript. Here's a simplified version of what I've tried so far that's not working: > a="foobar" 'foobar' > a.replace( /(f)/, "$1".toUpperCase() ) 'foobar' > a.replace( /(f)/,…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
102
votes
9 answers

Upper vs Lower Case

When doing case-insensitive comparisons, is it more efficient to convert the string to upper case or lower case? Does it even matter? It is suggested in this SO post that C# is more efficient with ToUpper because "Microsoft optimized it that way." …
Parappa
  • 7,566
  • 3
  • 34
  • 38
95
votes
2 answers

SQL query to make all data in a column UPPER CASE?

I need a SQL query to make all data in a column UPPER CASE? Any ideas?
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
92
votes
8 answers

Convert from lowercase to uppercase all values in all character variables in dataframe

I have a mixed dataframe of character and numeric variables.…
user702432
  • 11,898
  • 21
  • 55
  • 70
1
2 3
91 92