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
1
vote
3 answers

Make tolower as static

I need to make the standard library function tolower static instead of "public' scope. I am compiling with MISRA C:2004, using IAR Embedded Workbench compiler. The compiler is declaring tolower as inline: inline int tolower(int _C) { …
Thomas Matthews
  • 56,849
  • 17
  • 98
  • 154
1
vote
1 answer

Segmentation fault Ubuntu C

I am getting a segmentation fault when I want to run this program. It is supposed to by a self-written grep function but case-insensitive. The same code for case-sensitive works just fine so it might have something to do with tolower()?. Please…
learning
  • 13
  • 3
1
vote
1 answer

Why cant I convert my chars into lower case

Im trying to take a string of characters check if any of the charachters in that string are lowercased, if that is the case I want to change them, but when im trying to use Char.ToLower() nothing happens. Console.Clear(); string rightWord =…
Darre
  • 21
  • 2
1
vote
0 answers

Case insensitivity for SAP Odata call

I am trying to call the customers odata API and it basically works if there is the cases of the user names are the same in both systems. SAP odata api is case sensitive. And I have a few users which have a lower case letter in the username on SAP SF…
MrJamsn
  • 11
  • 2
1
vote
1 answer

create JSON key of second level to lowercase in javascript / nodej s

I am trying to make json key to lowercase so I got a solution where it making all the json key toLowercase but I don't want to make all the json key to lower case I only want to make the second level of json key to the lowercase so while doing…
user18275031
1
vote
1 answer

new to coding help Processing

I am trying to make a user input be inverted to what they put in so for example if they put in helloWorld it would output to HELLOwORLD but for some reason, my code is not working and I don't know how to fix it. import javax.swing.JOptionPane; …
glow
  • 21
  • 3
1
vote
1 answer

htaccess int:tolower redirected many times

i have activate RewriteMap in Virtualhost with: RewriteEngine On RewriteMap lc int:tolower ... and after that in htacess have this role: RewriteCond %{REQUEST_URI} [A-Z] RewriteRule . ${lc:%{REQUEST_URI}} [R=301,L] ... but make me redirected many…
1
vote
1 answer

having a funtion store a string that it makes lowercase and returns it for later use in C++

Ok, i have a program I'm trying to make and the basic thing is to keep me from rewriting the same long 4 lines of code over and over throughout the project, I'm wanting to see if i can get it to take a string from cin and make the whole string…
Trevor S
  • 11
  • 1
1
vote
3 answers

capitalize last letter of a single word

In R trying to write a function that takes the word MarsuPial and results in marsupiaL. current code mycap <- function(mystr = "") { mystr <- tolower(mystr) a <- substr(mystr, 1, 1) b <- substr(mystr, 2, nchar(mystr)) paste(tolower(a), b,…
putnro01
  • 21
  • 3
1
vote
0 answers

tolower () does not work for a Turkish character

"İ" is a special and frequently used letter for Turkish. I have data of multiple text types. The messages contain the following letters, which are translated versions of Turkish characters, with a mixed case. I have to shrink and transform to make…
NCC1701
  • 139
  • 11
1
vote
3 answers

C++ transform parameter initialization question

I was trying to transform a string into lowercase and store it in another variable using std::transform and std::tolower. I first tried: string str1("Hello"); string lowerStr1; transform(str1.begin(), str1.end(), lowerStr1.begin(), ::tolower); cout…
hpark95
  • 13
  • 2
1
vote
1 answer

How to replace uppercase consonants with corresponding lowercase ones using c++ string?

I'm solving a little problem and I met an runtime error and I have no idea where is the source of that error. I'm taking a string word and converting it's uppercase consonants to the corresponding lowercase ones by building another string new_word.…
Ion
  • 81
  • 1
  • 9
1
vote
2 answers

R join by tolower

I´ve got some sample data data1 = data.frame(name = c("cat", "dog", "parrot"), freq = c(1,2,3)) data2 = data.frame(name = c("Cat", "snake", "Dog", freq2 = c(2,3,4))) data1$name = as.character(data1$name) data2$name = as.character(data2$name) which…
WinterMensch
  • 643
  • 1
  • 7
  • 17
1
vote
2 answers

R tolower only within function

I would like to remove words from a character vector. This is how I do: library(tm) words = c("the", "The", "Intelligent", "this", "This") words_to_remove = c("the", "This") removeWords(tolower(words), tolower(words_to_remove)) This is really nice,…
WinterMensch
  • 643
  • 1
  • 7
  • 17
1
vote
2 answers

ToLower std::vector

This is related to question : String array to C++ function Although everything is working fine now, the only thing I am not able to accomplish is to tolower the user input as I am getting an error : Function bool lookupTerm(const std::string& term,…
Matias Barrios
  • 4,674
  • 3
  • 22
  • 49