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
33
votes
4 answers

How to replace uppercase letters to lowercase letters using regex in Eclipse?

I'd like to go through all of my source code files and replace every occurence of k_Xyyy with k_xyyy (switch the first letter after k_ from uppercase to lowercase). I'm using the eclipse dialog to search and replace multiple files. Right now I have…
user196692
32
votes
5 answers

How can I capitalize all letters in an NSString?

I'm trying to capitalize all letters in a NSString for a table cell label. Here's my code: // cell title and subtitle cell.nameLabel.text = listingNode.title; [cell.nameLabel.text uppercaseString]; It doesn't seem to have any effect at all.
user2588945
  • 1,681
  • 6
  • 25
  • 38
30
votes
2 answers

Using upper-case and lower-case xpath functions in selenium IDE

I am trying to get a xpath query using the xpath function lower-case or upper-case, but they seem to not work in selenium (where I test my xpath before I apply it). Example that does NOT work: //*[.=upper-case('some text')] I have no problem…
Aristotelis
  • 321
  • 1
  • 3
  • 4
29
votes
6 answers

Check if all characters of a string are uppercase

Say I have a string that can contain different characters: e.g. word = "UPPER£CASe" How would I test the string to see if all the characters are uppercase and no other punctuation, numbers, lowercase letters etc?
ffgghhffgghh
  • 319
  • 1
  • 3
  • 7
28
votes
10 answers

Why should the first letter of a Java class be upper-cased?

Why should the first letter of a Java class be upper-cased? Is it not possible to run a program containing lower-cased class names? If it is possible, what's the difference?
SKADIN
  • 535
  • 1
  • 6
  • 14
27
votes
4 answers

Capitalize the first letter of each word in a filename with powershell

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 $.FullName $.Name.ToUpper() } } But I only want the first…
Gilko
  • 2,280
  • 8
  • 36
  • 45
27
votes
3 answers

Checking if string is in uppercase in R

Is there simpler method to match regex pattern in its entirety? For example, to check if given string is uppercase the following 2 methods but seem too complex. Checking stringr I found no indication for simpler solution either. Method…
topchef
  • 19,091
  • 9
  • 63
  • 102
26
votes
5 answers

How can I get Python to use upper case letters when printing hexadecimal values?

In Python v2.6 I can get hexadecimal for my integers in one of two ways: print(("0x%x")%value) print(hex(value)) However, in both cases, the hexadecimal digits are lower case. How can I get these in upper case?
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
25
votes
5 answers

Vim: how to make the text I've just typed uppercase?

Use case: I've just entered insert mode, and typed some text. Now I want to make it uppercase. It can be done via gUmotion. However, I can't find the motion over the text entered in the recent input session. It's somewhat strange and the concept…
P Shved
  • 96,026
  • 17
  • 121
  • 165
25
votes
5 answers

XSLT Stylesheet: Changing text to upper case

I am using an XSLT stylesheet to create an Excel document from an XML file. One of the values that I am pulling in I want to display as upper case. How is this possible?
Charmiane
24
votes
4 answers

Golang - ToUpper() on a single byte?

I have a []byte, b, and I want to select a single byte, b[pos] and change it too upper case (and then lower case) The bytes type has a method called ToUpper(). How can I use this for a single byte? Calling ToUpper on single Byte OneOfOne gave the…
Nevermore
  • 7,141
  • 5
  • 42
  • 64
23
votes
9 answers

How to convert string to uppercase in windows textbox?

I've a textbox in my windows application. It allows only alphabets and digits. I want when ever I type any alphabet, it should be converted to uppercase.How can I do that and in which event? I've used str.ToUpper() but the cursor is shifting to the…
Sukanya
  • 1,041
  • 8
  • 21
  • 40
21
votes
3 answers

Android sort sqlite query results ignoring case

just wondering if theres a way of sorting the results of a query ignoring case. Cause at the moment fields starting with an upper case letter are sorted and put on top of the list and fields starting with lower case letter are also sorted but are…
mixkat
  • 3,883
  • 10
  • 40
  • 58
21
votes
4 answers

C string to uppercase in C and C++

While I was putting together a to-uppercase function in C++ I noticed that I did not receive the expected output in C. C++ function #include #include #include void strupp(char* beg) { while (*beg++ =…
Alex Koukoulas
  • 998
  • 1
  • 7
  • 21
21
votes
7 answers

How to extract all UPPER from a string? Python

#input my_string = 'abcdefgABCDEFGHIJKLMNOP' how would one extract all the UPPER from a string? #output my_upper = 'ABCDEFGHIJKLMNOP'
O.rka
  • 29,847
  • 68
  • 194
  • 309