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
85
votes
11 answers

Converting a char to uppercase in Java

How could I get the f and l variables converted to uppercase? String lower = Name.toLowerCase(); int a = Name.indexOf(" ",0); String first = lower.substring(0, a); String last = lower.substring(a+1); char f = first.charAt(0); char l =…
shep
  • 869
  • 2
  • 8
  • 6
78
votes
15 answers

Flutter TextField value always uppercase & debounce

I am new in Flutter. I am looking for TextField value to always uppercase but I did not find any resource on that. Another issue is the TextField onChanged event debounce implementation. When I type on TextField it immediately fires onChanged event…
Harun
  • 1,137
  • 1
  • 9
  • 7
71
votes
14 answers

angularjs force uppercase in textbox

I've tried using the uppercase filter but it does not work. I've tried doing it two ways: and The 2nd triggers a javascript error: Syntax Error:…
Sam
  • 13,934
  • 26
  • 108
  • 194
69
votes
2 answers

Make input value uppercase in CSS without affecting the placeholder

Is there a way I can make an input value uppercase without making the placeholder uppercase? Seems like I get one or the other. I'd prefer to do this cleanly just using CSS (JS last resort).
kaleazy
  • 5,922
  • 2
  • 47
  • 51
63
votes
5 answers

SQL changing a value to upper or lower case

How do you make a field in a sql select statement all upper or lower case? Example: select firstname from Person How do I make firstname always return upper case and likewise always return lower case?
Joshua Hudson
  • 2,187
  • 2
  • 20
  • 24
61
votes
8 answers

Convert whole dataframe from lower case to upper case with Pandas

I have a dataframe like the one displayed below: # Create an example dataframe about a fictional army raw_data = {'regiment': ['Nighthawks', 'Nighthawks', 'Nighthawks', 'Nighthawks'], 'company': ['1st', '1st', '2nd', '2nd'], …
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
59
votes
7 answers

CSS: text-transform not working properly for Turkish characters

The implementations of the major browsers seem to have problems with text-transform: uppercase with Turkish characters. As far as I know (I'm not Turkish.) there are four different i characters: ı i I İ where the last two are the uppercase…
Malax
  • 9,436
  • 9
  • 48
  • 64
59
votes
7 answers

Is it bad to use uppercase letters for html tags?

What is the best practice? or And why we should stick with one particular case? However all browsers seems to interpret both cases and returns the expected output.
pown
  • 1,118
  • 1
  • 16
  • 27
57
votes
6 answers

Regex to match only uppercase "words" with some exceptions

I have technical strings as the following: "The thing P1 must connect to the J236 thing in the Foo position." I would like to match with a regular expression those only-in-uppercase words (namely here P1 and J236). The problem is that I don't want…
Patrick
  • 2,577
  • 6
  • 30
  • 53
46
votes
6 answers

Python title() with apostrophes

Is there a way to use .title() to get the correct output from a title with apostrophes? For example: "john's school".title() --> "John'S School" How would I get the correct title here, "John's School" ?
David542
  • 104,438
  • 178
  • 489
  • 842
45
votes
8 answers

Count the uppercase letters in a string with Python

I am trying to figure out how I can count the uppercase letters in a string. I have only been able to count lowercase letters: def n_lower_chars(string): return sum(map(str.islower, string)) Example of what I am trying to accomplish: Type…
Stevenson
  • 617
  • 1
  • 6
  • 10
43
votes
4 answers

Two conditions using OR in XPATH

I have a textbox, 'txtSearch'. I am using it to search people by Last Name. this is my code. var xmlTempResultSearch = xmlResidentListDisplay.selectNodes( "//PeopleList/Row[contains(translate(@LastName, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',…
edsamiracle
  • 753
  • 3
  • 12
  • 27
42
votes
5 answers

Use Java and RegEx to convert casing in a string

Problem: Turn "My Testtext TARGETSTRING My Testtext" into "My Testtext targetstring My Testtext" Perl supports the "\L"-operation which can be used in the replacement-string. The Pattern-Class does not support this operation: Perl constructs…
Andreas
  • 2,045
  • 5
  • 19
  • 30
41
votes
5 answers

Turkish case conversion in JavaScript

I want to convert strings to lower or upper case in JavaScript in the locale I wanted. I think standard functions like toUpperCase() and toLocaleUpperCase() do not satisfy this need. toLocale functions do not behave as they should. For example, in…
sanilunlu
  • 725
  • 1
  • 6
  • 8
40
votes
5 answers

Naming convention for upper case abbreviations

Should a method that returns an XML stream be called public Stream getXmlStream(); or instead public Stream getXMLStream(); What's your opinion about that? What's considered best practice?
user321068
1
2
3
91 92