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

compare strings after converting to lower case in c

I need to compare two strings for equality (case-insensitive) but my implementation is returning alot of warnings at compile. my implementation: //The word array will contain any number of strings of varying lengths //string is the word to compare…
FunkyT
  • 51
  • 3
  • 8
0
votes
1 answer

c++ tolower a char array in a server and client program?

I am sending the server a message. For example: "Hello World." I want the server to send back the message: "hello world." for(;;) //listen forever { ClntLen = sizeof(ClntAddr); NewSockfd = Accept(Sockfd, (sockaddr*)&ClntAddr, &ClntLen); …
user2369405
  • 217
  • 1
  • 4
  • 10
0
votes
1 answer

Object foo has no method 'toLowercase'

I'm trying to get a lowercase value of each key in said object. for (each in {'foo':'bar','bar':'foo'}) { console.log(typeof each, each.toLowercase()); } The error I get is Object foo has no method 'toLowercase', yet typeof each returns…
Tgwizman
  • 1,469
  • 2
  • 19
  • 34
0
votes
1 answer

Simple transform tolower not working

So I've seen a lot of similar issues but none of the answers are fixing my issue. Can someone explain why this code: string LinkedListByName::toLower(string stringToConvert){ return std::transform(stringToConvert.begin(), stringToConvert.end(),…
Noob
  • 145
  • 2
  • 9
0
votes
1 answer

SQL Minus and lower/upper dont work together in Jdbc

i got a HSQLDB 2.2.9 and the following statement: (SELECT lower(MyCol) FROM MyTable WHERE ID = ?) MINUS (SELECT lower(MyCol) FROM MyTable WHERE ID = ?) And it works in my Squirrel. But when i execute this in my program which uses Jdbc i get the…
Dennis Ich
  • 3,585
  • 6
  • 27
  • 44
-1
votes
3 answers

python API calls json response - lowest value

I'm doing an API call and getting the below output. But what I'm actually looking for is only the lowest value for 'Active Tunnels' to be displayed. I know "for" loop is the answer but I've tried so many things in the past 5 hours and got no where…
JR21
  • 33
  • 5
-1
votes
2 answers

How to apply tolower to a string vector?

Since tolower only works for individual characters, how would I use tolower for a string vector? I know I would have to go through each individual character of each item, however I am unsure how to access the individual characters within each…
Lina Wi
  • 1
  • 1
-1
votes
2 answers

Distinct() doesn't see uppercase letter changed by ToLower() method

This is my code: string textToEncode = File.ReadAllText(@"C:\Users\ASUS\Desktop\szyfrowanie2\TextSample.txt"); textToEncode = textToEncode.ToLower(); char[] distinctLetters = textToEncode.Distinct().ToArray(); var count =…
virouz98
  • 96
  • 8
-1
votes
4 answers

How does indirect manipulation of dynamically allocated string literals truly work in C?

As it stands, I know that dynamically allocated string literals cannot be changed during run-time, otherwise you will hit a segmentation fault. This is due to the fact that dynamically allocated string literals are stored, from what I saw in the…
user11556816
-1
votes
2 answers

Using tolower() and isalpha() to on a given string and set their output into another string

I want to pass a string to the compiler for example "Mr. Adam, I am Eve" . I want to lower the case of that phrase and remove all the punctuation marks and spaces by using (isalpha), i.e.- afterwards the string should be: mradamiameve which will be…
-1
votes
2 answers

Which C function can convert À, É to lower à, è?

Which C function can convert À, É to lower à, è? I tried tolower() and towlower(), but both do not work.
L. Feng
  • 19
  • 1
  • 4
-1
votes
1 answer

Having problems with String toLowerCase

I am having troubles with converting to lower case from a string. I need to be able to accept a multitude of case combinations to ensure that it works regardless of how the user inputs the 'priority' string. Here is my enqueue method public void…
NikoBellic
  • 15
  • 7
-1
votes
2 answers

Urlencoding and toLowerCase - effect on output

I came through this code (java), and was wondering if below two will have any actual difference in output: String output1 = (URLEncoder.encode(plainString, "UTF-8")).toLowerCase(); String output2 = URLEncoder.encode(plainString.toLowerCase(),…
Sanjay Verma
  • 1,390
  • 22
  • 40
-1
votes
1 answer

Change String Array to tolower

In my program I have a text file that is read into an array that tokenizes each word. I need it this way so that I can compare the words to the words found in my Binary Tree. Issue is... some duplicates of words are not formatted the same way (one…
narue1992
  • 1,143
  • 1
  • 14
  • 40
-1
votes
2 answers

Segmentation Fault while using tolower() on dynamic arrays

I put this code on my C compiler (Dev Cpp). char *str = "SomeTHing"; for(int i = 0; str[i]; i++){ str[i] = tolower(str[i]); } This gives a segmentation fault whereas if i use a static array, char str[10] = "SomeTHing"; the loop works fine. Can…
1 2 3
9
10