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
56
votes
5 answers

Ruby post title to slug

How should I convert a post title to a slug in Ruby? The title can have any characters, but I only want the slug to allow [a-z0-9-_] (Should it allow any other characters?). So basically: downcase all letters convert spaces to hyphens delete…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
53
votes
14 answers

How to lowercase every element of a collection efficiently?

What's the most efficient way to lower case every element of a List or Set? My idea for a List: final List strings = new ArrayList(); strings.add("HELLO"); strings.add("WORLD"); for(int i=0,l=strings.size();i
Chris
  • 15,429
  • 19
  • 72
  • 74
48
votes
4 answers

Error converting text to lowercase with tm_map(..., tolower)

I tried using the tm_map. It gave the following error. How can I get around this? require(tm) byword<-tm_map(byword, tolower) Error in UseMethod("tm_map", x) : no applicable method for 'tm_map' applied to an object of class "character"
jackStinger
  • 2,035
  • 5
  • 23
  • 36
47
votes
1 answer

Making all the characters in a string lowercase in Lua

Here is the thing. I am trying to convert a string in lowercase in Lua, but it's not working. I have done this String = String:lower() but it doesn't like it. I am sure that is the way to do it, I've seen it done before. A few sites suggest it…
OddCore
  • 1,534
  • 6
  • 19
  • 32
47
votes
7 answers

Android ActionBar MenuItem LowerCase

I want to make MenuItem title in the ActionBar to LowerCase. my menu.xml
Vladimir
  • 549
  • 1
  • 5
  • 8
45
votes
6 answers

How to detect lowercase letters in Python?

I need to know if there is a function that detects the lowercase letters in a string. Say I started writing this program: s = input('Type a word') Would there be a function that lets me detect a lowercase letter within the string s? Possibly ending…
JustaGuy313
  • 533
  • 2
  • 6
  • 11
43
votes
4 answers

Two conditions using OR in XPATH

I have a textbox, 'txtSearch'. I am using it to search people by Last Name. this is my code. var xmlTempResultSearch = xmlResidentListDisplay.selectNodes( "//PeopleList/Row[contains(translate(@LastName, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',…
edsamiracle
  • 753
  • 3
  • 12
  • 27
42
votes
5 answers

Use Java and RegEx to convert casing in a string

Problem: Turn "My Testtext TARGETSTRING My Testtext" into "My Testtext targetstring My Testtext" Perl supports the "\L"-operation which can be used in the replacement-string. The Pattern-Class does not support this operation: Perl constructs…
Andreas
  • 2,045
  • 5
  • 19
  • 30
41
votes
5 answers

Turkish case conversion in JavaScript

I want to convert strings to lower or upper case in JavaScript in the locale I wanted. I think standard functions like toUpperCase() and toLocaleUpperCase() do not satisfy this need. toLocale functions do not behave as they should. For example, in…
sanilunlu
  • 725
  • 1
  • 6
  • 8
39
votes
3 answers

Converting strings to a lower case in pandas

I have a data that contains domain names: url var1 www.CNN.com xsd www.Nbc.com wer www.BBc.com xyz www.fOX.com zyx .... The data is of the Series type. I am using the following to convert url variable to lower…
Feyzi Bagirov
  • 1,292
  • 4
  • 28
  • 46
38
votes
4 answers

URL Structure: Lower case VS Upper case

Just trigger in my mind when I was going through some websites were they having upper case and lower case combination in url something like http://www.domain.com/Home/Article Now as I know we should always use lowercase in url but have not idea…
Code Lover
  • 8,099
  • 20
  • 84
  • 154
37
votes
5 answers

Rails: How to downcase non-English string?

How could I downcase a non-English string in Ruby on Rails 3 ? str = "Привет" # Russian puts str[0].ord # => 1055 str.downcase! puts str[0].ord # => 1055 (Should be 1087) I want it to work in Ruby 1.8.7 as well as Ruby 1.9.2.
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
37
votes
11 answers

Ruby on Rails uncapitalize first letter

I'm running Rails 2.3.2. How do I convert "Cool" to "cool"? I know "Cool".downcase works, but is there a Ruby/Rails method that does the opposite of capitalize, i.e., uncapitalize or decapitalize?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
35
votes
8 answers

strtolower() for unicode/multibyte strings

I have some text in a non-English/foreign language in my page, but when I try to make it lowercase, it characters are converted into black diamonds containing question marks. $a = "Երկիր Ավելացնել"; echo $b = strtolower($a); //returns �����…
Simon
  • 22,637
  • 36
  • 92
  • 121
34
votes
5 answers

Why can't "transform(s.begin(),s.end(),s.begin(),tolower)" be complied successfully?

Given the code: #include #include #include #include using namespace std; int main() { string s("ABCDEFGHIJKL"); transform(s.begin(),s.end(),s.begin(),tolower); cout<
liu
  • 937
  • 1
  • 9
  • 15
1
2
3
68 69