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
11
votes
1 answer

Capitalize first letter after special characters

I want to remove extra spaces, add spaces if required and capitalize first letter of each word after special character using R string <- "apple,banana, cat, doll and donkey; fish,goat" I want output as Apple, Banana, Cat, Doll and donkey; Fish,…
Rajan
  • 453
  • 4
  • 22
11
votes
3 answers

Automatically capitalize first letter of first word in a new sentence in LaTeX

I know one of LaTeX's bragging points is that it doesn't have this Microsoftish behavior. Nevertheless, it's sometimes useful. LaTeX already adds an extra space after you type a (non-backslashed) period, so it should be possible to make it…
memius
  • 4,045
  • 5
  • 26
  • 25
11
votes
10 answers

Finding all uppercase letters of a string in java

So I'm trying to find all the uppercase letters in a string put in by the user but I keep getting this runtime error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 4 at…
EvanD
  • 189
  • 1
  • 1
  • 12
10
votes
8 answers

Java Program to test if a character is uppercase/lowercase/number/vowel

As I said before, how do I test if the entered character is one of the parameters? I've written this code, but it doesn't seem to run very well(or at all), no errors, however. Also, I need to use the basic code I've used here. Its for school and we…
Prnth
  • 143
  • 1
  • 1
  • 9
10
votes
2 answers

How to capitalize a string in Python?

How can I convert a string to all capitals in Python 3.4? for example, I want to convert: string to: STRING I have tried with the .upper method, but it returns: "string".upper How can I fix this…
A..
  • 375
  • 2
  • 6
  • 15
10
votes
6 answers

Changing a lowercase character to uppercase in c++

Here is the code that i wrote. When i enter a lowercase character such as 'a', it gives me a blank character but afterwards it works well. Can you tell me what i did wrong? Thanks. :) #include #include using namespace std; int…
Manisha Singh Sanoo
  • 919
  • 1
  • 13
  • 42
10
votes
9 answers

Fastest way to find first uppercase character in a string

Suppose you have this string: hiThere What is the fastest way to find where the first upper case character is? (T in this example) I am worried about performance as some words are quite long.
Martin
  • 510
  • 1
  • 6
  • 15
9
votes
1 answer

Text uppercase option in intellij?

Just imagine I have defined a list of static variables in lower case on my editor. Is there any option in intellij where I can select a portion of my source code and convert it into either upper/lower case?
Supun Wijerathne
  • 11,964
  • 10
  • 61
  • 87
9
votes
8 answers

Directive to upper case input fields

I want to use a directive to transform all input data to uppercase. To achieve that, I create this custom directive : @Directive({ selector: '[appToUpperCase]' }) export class ToUpperCaseDirective { constructor() {} @HostListener('input',…
Julien AZEMA
  • 186
  • 1
  • 2
  • 9
9
votes
3 answers

How does s[i]^=32 convert upper to lower case?

int main() { string s; cout << "enter the string :" << endl; cin >> s; for (int i = 0; i < s.length(); i++) s[i] ^= 32; cout << "modified string is : " << s << endl; return 0; } I saw this code which converts…
Rashed Sami
  • 141
  • 1
  • 4
  • 12
9
votes
4 answers

Grails: How to make everything I create Upper Case?

I am currently using CSS to change everything I write to upperCase when I create an entry, but that is not enough. When I save things, the text shown in the text fields is upper case, but the real value that Grails stores stays in lower case. I am…
randomizertech
  • 2,309
  • 15
  • 48
  • 85
9
votes
16 answers

how to convert Lower case letters to upper case letters & and upper case letters to lower case letters

Alternately display any text that is typed in the textbox // in either Capital or lowercase depending on the original // letter changed. For example: CoMpUtEr will convert to // cOmPuTeR and vice versa. …
akki0996
  • 713
  • 2
  • 6
  • 14
9
votes
6 answers

How to find all upper case strings in a MySQL table?

I initially thought this is trivial. Then thought 'binary' might do it. I am unsure at this point. Name ---- John MARY Kin TED I would like to query just MARY and TED which are in all upper case. How would I query this?
ThinkCode
  • 7,841
  • 21
  • 73
  • 92
8
votes
6 answers

Permutate a String to upper and lower case

I have a string, "abc". How would a program look like (if possible, in Java) who permute the String? For example: abc ABC Abc aBc abC ABc abC AbC
Francisco
  • 99
  • 1
  • 2
8
votes
4 answers

How do I detect if a character is uppercase or lowercase?

Let's say I extract a single character from a NSString like this: [@"This is my String" characterAtIndex:0] How do I find out if the character I get is a lowercase or uppercase character? Thanks for any adivice!
Funkybit
  • 359
  • 1
  • 2
  • 15