Questions tagged [tolower]

In C / C++ tolower function converts a given character to lowercase according to the character conversion rules defined by the currently installed C locale. In the default "C" locale, the following uppercase letters ABCDEFGHIJKLMNOPQRSTUVWXYZ are replaced with respective lowercase letters abcdefghijklmnopqrstuvwxyz.

148 questions
0
votes
3 answers

How to build toLower for string correctly

I'm trying to perform case insensitive strcmp on full name string. I have a function to convert C-style strings to lowercase. char* toLowerCase(char* string){ char *s = string; unsigned long int s_len = strlen(s); …
Avshalom
  • 31
  • 4
0
votes
1 answer

Powershell toLower Get-FileHash

I have this command ... | select-object name, fullname, @{Name = "MD5"; Expression = { (Get-FileHash $_.FullName -Algorithm MD5).Hash } } How do I properly toLower the MD5…
Tony
  • 8,681
  • 7
  • 36
  • 55
0
votes
2 answers

I'm having trouble converting argv to upper in C

I'm trying to convert a fixed size argv to upper and to lower but It either gives me segmentation fault or it just stores gibberish on the var. I've tried this: #include #include #include #include #include…
Miguel M
  • 302
  • 3
  • 16
0
votes
2 answers

tolower() segfault's when trying to assign the returned value a char pointer

I'm trying to understand the black voodoo magic that are pointers and I can't get my head around the following cases. My understanding of the first parameter of getline() is clumsy, so I guess it all comes down to its type, which is different from…
Ramon Royo
  • 155
  • 1
  • 3
  • 16
0
votes
0 answers

double output from tolower() c

the while works however in the end the "selezione" variable becomes double for example by inserting FA the variable will become faFA and this does not allow the if to work. i know that there is an error but i cant find it, i am not that good so as u…
0
votes
2 answers

Allocating memory for string pointers?

I'm kind of struggling with some of the basics for C. I tried to compile this program and it came up with a Signal 11 Error. I know this is to do with memory allocation, but I'm not sure how to use malloc() correctly to make this work. Can someone…
0
votes
1 answer

how can i get ToLower to work in an expression?

I have the following line of code: protected Expression> Name= x => x.Name == "smith"; when I add a .ToLower() protected Expression> Name= x => x.Name.ToLower() == "smith"; to try to generalize…
dstewart101
  • 1,084
  • 1
  • 16
  • 38
0
votes
1 answer

C# TextBox Auto Caps Lock On

I need the following code : When I press shift key then I write small letters in my TextBox in other case I write big letters something like a “reverse” or all time pressed Caps Lock Key. So This code and other similar is helpless because there are…
OXXYM
  • 1
0
votes
5 answers

.ToString() and .ToLower() gives warning about culture differences

I am storing some boolean values as string session variables, like this: HttpContext.Session.SetString("SomeBool", user.SomeBool.ToString().ToLower()); This gives me warnings that the result could vary depending on the users culture. How is that…
Stian
  • 1,522
  • 2
  • 22
  • 52
0
votes
3 answers

Palindrome, to lower function

Currently have a assignment from school to make a C program that checks if a user entered string is a palindrome or not. The program need to have 2 different functions (not counting the main function) and one is that checks if a string is a…
0
votes
0 answers

Error when applying tolower function to column

When im trying to apply to lower function to data frame column: df <- df %>% mutate(col1 = tolower(col1)) I get: Error in tolower(BRIEF_DESCRIPTION), ...., IP �' in 'utf8towcs' Its because some of elements in column have unknown encoding. How…
user9440895
0
votes
1 answer

Lower values inside $in for PyMongo

I want to "lower" the match values inside an "$in". Is there a way to do that? My code: results = list( col.aggregate([ { '$match': { 'website': { '$in': filters['website'].split('|') }, 'val': { '$ne': None…
nb_nb_nb
  • 1,243
  • 11
  • 36
0
votes
3 answers

How to determine if a user has capitalized a string input or not in C#?

This is my first question here! I'm working on a C# coding assignment for college where the player inputs different actions and results of their actions are displayed in the console. Until now, I have simply been saying (if firstInput == "Action"…
0
votes
1 answer

Can anyone tell me in details, why i am watching warning for this program?

#include #include int main() { char input[102], output[210]; int i=0; scanf("%s",input); for(i=0;i
mahin hossen
  • 175
  • 9
0
votes
1 answer

Convert one item to lowercase before AD export

In an ActiveDirectory Export I want the mail adresses in all lowercase, I know about ToLower() but I'm struggling putting it in the right place: (Powershell) Get-ADUser -SearchBase "OU=11-something,DC=somethingelse,DC=somethingelser" -Filter…
chris
  • 181
  • 2
  • 18