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

How to change uppercase to lowercase in a string?

The overall goal of this program is to count the occurrences of a word that the user inputs. To do this I need all of the words in this long string to be lowercase. I do not want to print the entire string with print s.lower() I just want this to…
-3
votes
2 answers

Capitalize everything after _ using REGEX

I want to capitalise everything following a _ using regex. Example: from en_gb to en_GB Thanks!
-3
votes
4 answers

tolower() and toupper() aren't working

My code is here: char* kropecka(char* tab) { int a=0,b=0; char* zwr; zwr=(char*)malloc(30*sizeof(char)); for(a;strlen(tab);a++) { if(tab[a]!='.') { if(isupper(tab[a])) …
1_bug
  • 5,505
  • 4
  • 50
  • 58
-3
votes
4 answers

php upper and lowercase without built in function

Hey guys i want to convert a string from lowercase to uppercase and vice versa without using any built in functions strtoupper or strtolower in php, can anyone help me please. edit: I can use some other functions to do the job, like substr(), ord(),…
zniz
  • 95
  • 1
  • 8
-3
votes
1 answer

string can't convert lowercase to upper case as c program

How can I convert a string using the toupper function? This did not work. #include #include #include int main(){ char ch[20]; printf("\nEnter Your String :"); gets(ch); int i=0; for(i=0;ch[i]…
MH Raihan
  • 31
  • 6
-4
votes
3 answers

Python change lowercase to uppercase

I need help with python program. I don't know how to make python change at least 1 lowercase letter to uppercase. from random import * import random pin="" lenght=random.randrange(8,15) for i in range(lenght): …
ado
  • 5
  • 4
-4
votes
1 answer

How to separate lowercase and uppercase letters with commas?

Neriman KivrakCanan AcerTurkiye El MohammedAyse Ozgecan becomes Neriman Kivrak, Canan Acer, Turkiye El Mohammed, Ayse Ozgecan
-4
votes
3 answers

Split a string at uppercase letters, but only if a lowercase letter follows in Python

I am using pdfminer.six in Python to extract long text data. Unfortunately, the Miner does not always work very well, especially with paragraphs and text wrapping. For example I got the following output: "2018Annual ReportInvesting for Growth and…
Macces
  • 3
  • 1
  • 3
-4
votes
1 answer

im trying to count the uppercase characters but its not working, I don't want to change the main but if you could help me fix the function

#include #include using namespace std; int countUpper (char*myString){ bool isupper(char s); size_t uCount{0}; for(;*myString!='\0';){ myString++; uCount++; isupper(true); } …
-4
votes
2 answers

How to make string inputs case insensitive in C#?

So, in my quest to learn C#, I am attempting to create an interactive story that changes based on some of the input that the user had submitted. If the user types in "Bobby" in this case, the narrator begins to talk like Hank Hill. However, with how…
DaimonCide
  • 11
  • 1
  • 4
-4
votes
3 answers

How to make shortcut of first letters of any text?

I need to write a function that returns the first letters (and make it uppercase) of any text like: shortened = shorten("Don't repeat yourself") print(shortened) Expected output: DRY and: shortened = shorten("All terrain armoured…
Ribote
  • 3
  • 1
-4
votes
3 answers

How do i modify lists in lists in Python?

So, i'm trying to make my elements in my lists uppercase, but i can't make the standard something.upper(), i'm guessing because of the lists in the lists. fx: names = [['henry', 'mike'],'jones', 'kevin',['michael', 'simon']] How do i do this?…
user10541733
-4
votes
1 answer

How to check if there are 2 upper case letters, 3 lower case letters, and 1 number in JAVA

Please help i have been stuck for a good part of an afternoon already and cant really find/understand answers from other resources. I need to receive a password input from the user and need to test whether or not the password contains: Two Upper…
enzo
  • 9
  • 2
-4
votes
2 answers

Lowercase to uppercase letters problems in C - segmentation fault

i have a segmentation fault error when i want to run the executable file void lowerupper(char *s){ int i ; int a = strlen (s); printf("%d\n", a); //fails here segmentation fault for (i=0 ; i < a-1 ; i++){ if( (s[i]…
-4
votes
2 answers

Java string to array and replace a certain word from user to uppercase

Here is the full Question: ... My Code import java.util.Scanner; import java.lang.StringBuilder; public class javaAPIString { public static void main(String[]args) { String SentenceFromUser = ""; String IndiWordFromUser =…