Questions tagged [lowercase]

Lowercase characters are letters in minuscule: a, b, c, …

Lowercase characters are letters in minuscule: 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 lowercase.

The counterpart of is .


See also: Letter case on Wikipedia

1025 questions
7
votes
5 answers

Normalize the case of array keys in PHP

Is there a "better" way (built-in function, better algorithm) to normalize the case of all the keys in a PHP array? Looping though and creating a new array works $new = array(); foreach( $old as $key=>$value) { $key = strToLower($key); …
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
7
votes
3 answers

How to prevent users writing with caps lock?

I don't really like people who write with Caps Lock. In addition the aversion, it defaces the whole application. I am wondering how to prevent users writing all characters with caps lock. I cannot force all text to lowercase due to special names and…
quosal
  • 167
  • 1
  • 2
  • 10
7
votes
2 answers

How to do a Python XPath case-insensitive search using lxml?

I am trying to match for country or Country using lower-case function in XPath. translate is kinda messy, so using lower-case and my Python version 2.6.6 has XPath 2.0 support I believe since lower-case is only available in XPath 2.0. How I can put…
ThinkCode
  • 7,841
  • 21
  • 73
  • 92
6
votes
5 answers

Unicode lowercase characters?

I read up someplace, that there are characters other than A-Z that have a lowercase equivalent, in Unicode. Which could these be, and why would any other character need an upper and lower case?
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
6
votes
2 answers

Title Case JavaScript

I am trying to create a function in which after toLowerCase() input, will then capitalize the first letter in each element of an array. function title_case ( String ) { var result = ""; var text = String.toLowerCase().split(" "); for…
Kitty
  • 137
  • 2
  • 8
6
votes
2 answers

How to convert a part of string to lowercase in c#

I have a string like this LUXOR and I want to convert other letters to lowercase except first letter or the string.that meant, I want this string Luxor from above string. I can convert full string to upper or lower by using ToUpper or ToLower.but…
caldera.sac
  • 4,918
  • 7
  • 37
  • 69
6
votes
2 answers

How to capitalize all strings in an array?

I have a array of strings, but all the stings are written in upper case letters. Is there a way for me to make all the strings in the array to lower case, (and with capitalisation) array = ["BOY","GIRL","MAN"] // func to convert it to array =…
Tarjerw
  • 505
  • 1
  • 5
  • 12
6
votes
2 answers

PHP: rename all files to lower case in a directory recursively

I need help. I want to rename all files to lower case within a directory recursively. I have a code to test but it only rename within that folder not recursively. How can I make it to do it recursively. This is the code I use
rkevx21
  • 2,441
  • 5
  • 19
  • 40
6
votes
8 answers

Check if a character is lowerCase or upperCase

I am trying to make a program that stores a string in a variable called input. With this input variable, I am then trying to convert it to an array, and then test with a for loop whether each character in the array is lowerCase or not. How can I…
Sachin
  • 737
  • 1
  • 9
  • 23
6
votes
2 answers

How to use _.where() in underscore to compare values regardless of case

I have a webpage where if something typed in search box it then iterates through a file for that value. I need it so that search/find not case sensitive. The case sensitivity must remain in the file but for comparison purposes it disregards the…
yigames
  • 185
  • 1
  • 5
  • 23
6
votes
7 answers

regex uppercase to lowercase

Is it possible to transform regexp pattern match to lowercase? var pattern:RegExp; var str:String = "HI guys"; pattern = /([A-Z]+)/g; str = str.replace(pattern, thisShouldBeLowerCase); Output should look like this: "hi guys"
luccio
  • 485
  • 1
  • 6
  • 24
6
votes
4 answers

Format lowercased string to capitalize the begining of each sentence

I have a string like FIRST SENTENCE. SECOND SENTENCE. I want to lowercase the string in that way to capitalize the first letter of each sentence. For example: string = string.toLowerCase().capitalize(); only the first sentence is capitalized. I…
zsola3075457
  • 177
  • 4
  • 14
6
votes
0 answers

VIM: how to change case of accented characters with 'gU'?

Following sentence contains all accented characters (chars with diacritic) that are used in Czech language. příliš žluťoučký kůň úpěl ďábelské ódy Now I convert this line to uppercase using gUU and I get: PříLIš žLUťOUčKý Kůň úPěL ďáBELSKé…
Pontiac_CZ
  • 619
  • 1
  • 6
  • 13
6
votes
1 answer

How to only lowercase quoted string in VIM

Say I have a file with the following content: Apple 'BANANA' ORANGE 'PEACH' What is the regex to convert all quoted uppercase to lowercase? The expected output file should look like: Apple 'banana' ORANGE 'peach'
Mingyu
  • 31,751
  • 14
  • 55
  • 60
6
votes
10 answers

Java - Convert lower to upper case without using toUppercase()

I'm trying to create a short program that would convert all letters that are uppercase to lowercase (from the command line input). The following compiles but does not give me the result I am expecting. What would be the reason for this?? Eg) java…
Betty Jones
  • 73
  • 1
  • 3
  • 12