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
-1
votes
2 answers

Replace word in mysql with same word but uppercase

For example: I have text in my column like: 'some text with word to replace' and i want to replace: word with Word i do: update table set column = replace(column, 'word', 'Word'); and i get error: Mysql: #1442 - Can't update table 'table' in…
pain.reign
  • 371
  • 2
  • 4
  • 17
-1
votes
2 answers

android searching UpperCase

I am working with json. I have been successful in parsing json and can show the result in listview(images and texts). Now I want to write a search function to search in my json output. I have writen a function, it searches name, but all names in…
user3345767
  • 349
  • 1
  • 2
  • 11
-1
votes
1 answer

How do you convert inputted data to uppercase so that it is recognised by a while loop?

I am trying to create a program that allows the user to keep using the program as long as what they enter is YES or a form of yes. I have created the program and it works and continues to loop providing they enter YES in uppercase. I have tried to…
user2633836
  • 131
  • 3
  • 5
  • 13
-1
votes
2 answers

Why does this Ruby code using char.upcase! fail but char = char.upcase works?

I was solving a coding problem to do a funny case for each word, "LiKe ThIs". Here was my one liner solution. I know it's a little hacky, but oh well. string.split(" ").map{|word| word.split("").map.with_index{|char,i| i.even? ? char.upcase! :…
V_H
  • 1,793
  • 3
  • 34
  • 59
-1
votes
3 answers

String case conversion javascript

So I really need help with something thats been bugging me for some time now. I have a function which looks like this: var convertString = function (str){ // Place for additional code here. return str;}; And what I need this function to do is to…
Lemonmuncher
  • 33
  • 1
  • 11
-1
votes
3 answers

Making only the first letter of a word uppercase

I have a method that converts all the first letters of the words in a sentence into uppercase. public static String toTitleCase(String s) { String result = ""; String[] words = s.split(" "); for (int i = 0; i < words.length; i++) …
Zolt
  • 2,761
  • 8
  • 43
  • 60
-1
votes
4 answers

preg_replace case insensitive using two arrays to replace the first match

I need something like this: $string = "That's a big apple, a red apple"; $arr = array(apple, lemon); $arr2 = array(APPLE, LEMON); preg_replace('/($arr)/i', $arr2, $string, 1); //output = That's a big APPLE, a red apple It means replace words for…
Eddie D.
  • 145
  • 3
  • 12
-1
votes
2 answers

java controle upper and lowercase in 2 String

I want to check if every character in a string is the inverse of the other character in the second. By inverse I mean uppercase and lowercase. For example these strings: Ahh7h aHH7H The result will be true I wrote this code but the result is…
user2328999
  • 91
  • 3
  • 12
-1
votes
2 answers

Uniquely mapping upper case to lower case

I have 2 strings: ahFkZXZ-cHV6emxlZmxvd2RldnIZCxILUHV6emxlSW1hZ2UYgICAgICAgIBcDA ahFkZXZ-cHV6emxlZmxvd2RldnIZCxILUHV6emxlSW1hZ2UYgICAgICAgIBCDA You'll notice that these 2 strings are nearly identical, other than the 3rd-to-last letter 'C' being…
Shaun Budhram
  • 3,690
  • 4
  • 30
  • 41
-1
votes
2 answers

converting to uppercase in ascx.cs

I currently have the following code which transforms the first letter of the surname to uppercase; static string UppercaseFirst(string s) { if (string.IsNullOrEmpty(s)) { return string.Empty; } char[] a = s.ToCharArray(); …
-1
votes
1 answer

Function to return true if two letters are either both upper or both lower case not working, c++

#include using namespace std; char myChar_1 = 'a'; char myChar_2 = 'b'; char checkChar(char myChar_1,char myChar_2){ if ((isupper(myChar_1) && isupper(myChar_2)) || (islower(myChar_1) && islower(myChar_2))) { return true; …
Nikolai Stiksrud
  • 157
  • 2
  • 4
  • 7
-1
votes
3 answers

How to check if the first character of a string is uppercase?

I have a function which takes a string as an argument. What I want to do is check if the string starts with an upper case letter. If this is true, then I want to return true. If it does not start with an upper case letter then I wish to return…
James Warner
  • 147
  • 4
  • 4
  • 11
-1
votes
4 answers

Check for count of UpperCase

import java.util.Scanner; public class Test{ public static int countUppercase(String s){ int count = 0; for(int i = 0; i='A'&&s.charAt(i)<='Z'){ count++; } } return count; } public static void…
Ralph
  • 2,959
  • 9
  • 26
  • 49
-1
votes
2 answers

Is there a way to use IgnoreCase in Javascript?

I want to transnlate some words, but i have problems when I write HOUSE in uppercase or mixing. it just work when i write in lowercase