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.
Questions tagged [tolower]
148 questions
0
votes
1 answer
tolower function and merging two dataframes
I have 3 dataframes called respectively: barometre2013, barometre2016, barometre2018.
I've already merge barometre2018 and barometre2016 like this:
baro1618 <- merge(barometre2016, barometre2018, all = TRUE)
All was good, I have all rows of the…

Marine Leroi
- 23
- 1
- 6
0
votes
2 answers
IgnoreCase vs ToUpper/ToLower Database Query
I'm storing usernames in my database but wish to retain the username casing so that users can have usernames such as "FooBAR".
I also wish for usernames to be unique (regardless of case) - "BaR" would cause "bar" to be unavailable.
I see three…

brad
- 1,407
- 19
- 33
0
votes
2 answers
Test case failing at specific line. Manually works fine - C (needle in haystack)
I have a C program that takes arguments from the command line. Prints the arguments in reverse order. And finds the needle/substring in the haystack. I have the following code:
Dumb.c
#include
#include
#include…

Mohammad Sohaib
- 577
- 3
- 11
- 28
0
votes
1 answer
C# UTF-32 ToLower
I'm looking for a way to convert Unicode UTF-32 (int) to lower case. In Java, something like this, would do the trick:
Character.toChars(Character.toLowerCase(Character.codePointAt(text, i)))
I have UTF-32 from Char.ConvertToUtf32, but there…

Scott
- 850
- 7
- 13
0
votes
1 answer
Make all the the values in a data table to lower without losing the classes
I would like to convert all the values in a data table without losing their class.
Example with using the iris data set
library(datasets)
library(dplyr)
data(iris)
iris <- iris %>% as.data.table()
iris[2:3, 5] <- "SeToSa"
iris %>%…

George Sotiropoulos
- 1,864
- 1
- 22
- 32
0
votes
1 answer
C++ Only execute toLowercase conversion when template is of type string
Good day,
I am writing a simple C++ Linked List using templates. I have got everything working, but I wanted to add to the functionality by making it case insensitive by converting all characters to lowercase for when the template is of type…

Trever Wagenhals
- 381
- 5
- 14
0
votes
1 answer
I am having trouble using tolower() in C++
When I try to use tolower on a string, rather than making the letters lowercase, the program converts them to random symbols.
Here is my code:
#include
#include
using namespace std;
int main()
{
string hi=…
user5918843
0
votes
2 answers
How come my lists doesn't print when I run the program?
It runs okay, but my lists doesn't print at all. Also, where should I add the convert to lowercase method for my lists? And I also need to trim the white spaces before or after the lists, which method is best for that?
import java.awt.*;
import…

dullerthandull
- 3
- 3
0
votes
1 answer
Wrong output from tolower function
I have a problem with tolower function. Tried to use it with argv but output was $0@. What's wrong with my code?
#include
#include
void makeLower(char *s) {
int i;
for(i = 0; s[i] != '\0'; i++){
s[i] =…

NouName
- 87
- 5
0
votes
2 answers
C - converting a uppercase char to lowercase char
How can I convert these characters to lowercase? Using tolower() is not working.
I have an array like this:
static char clef[][7] =
{
['A'] = "X",
['B'] = "Y",
['C'] = "Z",
['D'] = "A",
['E'] = "B",
['F'] = "C",
['G'] = "D",
['H'] =…

user25976
- 1,005
- 4
- 18
- 39
0
votes
4 answers
Get a char from a pointer to a string
Hello I am trying to write a function that converts a string to lowercase by using a pointer instead of a return value.
void makeLowerCase(std::string* in){
//for loop tolower(char from *in);}
but I have no idea how to get each char out of my…

ArtoriusIV
- 9
- 1
- 6
0
votes
3 answers
Lowering a sentence doesn't work using a separate class
I know how to lower a sentence, but I wanted to use my string modification class to do so. For some reason, using my Strmod object does not work, but doing it through main works. Here is the sentence lowering code:
TL;DR, answer: turns out I needed…

IgnisImperatrix
- 11
- 1
- 7
0
votes
6 answers
C++ tolower/toupper char pointer
Do you guys know why the following code crash during the runtime?
char* word;
word = new char[20];
word = "HeLlo";
for (auto it = word; it != NULL; it++){
*it = (char) tolower(*it);
I'm trying to lowercase a char* (string). I'm using…

mask
- 539
- 1
- 5
- 18
0
votes
2 answers
Why would string case comparison suddenly stop working in vb.net?
Does anyone know how is the following possible? All of a sudden string comparison using .ToLower and Lcase stopped working.
If I do this in the immediate window:
?lcase(text)
"menu"
?lcase(text)="menu"
False
This just started a few minutes ago. I'm…

Charles Okwuagwu
- 10,538
- 16
- 87
- 157
0
votes
3 answers
tolower() is returning a number instead of a the lowercase form?
I am writing a program that asks for input of letters and and sorts them the letter and occurrence based on input. I'm at the end of my code and I am trying to convert the uppercase letters to lowercase. I'm trying to do this:
cout <<…

Sam
- 31
- 1
- 6