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

Redirect asp.net core 2.0 urls to lowercase

I have seen that you can configure routing in ASP.NET Core 2.0 to generate lower case urls as described here: https://stackoverflow.com/a/45777372/83825 Using this: services.AddRouting(options => options.LowercaseUrls = true); However, although…
SelAromDotNet
  • 4,715
  • 5
  • 37
  • 59
14
votes
6 answers

Convert a single character to lowercase in C++ - tolower is returning an integer

I'm trying to convert a string to lowercase, and am treating it as a char* and iterating through each index. The problem is that the tolower function I read about online is not actually converting a char to lowercase: it's taking char as input and…
user83676
  • 339
  • 1
  • 9
  • 15
14
votes
4 answers

Why Java Character.toUpperCase/toLowerCase has no Locale parameter like String.toUpperCase/toLowerCase

I am wondering that why Character.toUpperCase/toLowerCase has no Locale parameter like String.toUpperCase/toLowerCase. I have to first uppercase of a text that can be in Any language. I have 2 solutions: Use Character.toUpperCase String text =…
LHA
  • 9,398
  • 8
  • 46
  • 85
14
votes
4 answers

Django LowerCaseCharField

We implemented a LowerCaseCharField. We would be happy to hear better implementation suggestions. from django.db.models.fields import CharField class LowerCaseCharField(CharField): """ Defines a charfield which automatically converts all…
14
votes
3 answers

Why do upper case letters come before lower case letters in the ASCII table?

In one of my interview, the interviewer asked me why the upper case letters are before the lower case letters in ASCII table, I searched on google.com but found nothing, could anyone gave me the answer? Thx a lot!
Judking
  • 6,111
  • 11
  • 55
  • 84
13
votes
2 answers

Unicode characters having asymmetric upper/lower case. Why?

Why do the following three characters have not symmetric toLower, toUpper results /** * Written in the Scala programming language, typed into the Scala REPL. * Results commented accordingly. */ /* Unicode Character 'LATIN CAPITAL LETTER SHARP…
Tim Friske
  • 2,012
  • 1
  • 18
  • 28
13
votes
2 answers

Why uppercase isn't usual in URL

I've visited many sites that most of them used lowercase in URLs like stackoverflow.com/questions google.com/webmaster bing.com/news Why using uppercase isn't more prevalent? Is there a problem using uppercase in URL? Is this a programming language…
Mohammad
  • 21,175
  • 15
  • 55
  • 84
12
votes
0 answers

How to make XCode templates connvert ___FILEBASENAMEASIDENTIFIER___ to uppercase

Quick question description. There is C header file template which has this code as a template: #ifndef ___FILEBASENAMEASIDENTIFIER_______FILEEXTENSION___ #define ___FILEBASENAMEASIDENTIFIER_______FILEEXTENSION___ #endif Logically it produces the…
GregoryM
  • 547
  • 5
  • 23
12
votes
1 answer

Converting CSV headers to be case insensitive in Ruby

I have a ruby import to DB process that checks header titles against an array called headers. As it stands right now, those headers must be typed exactly the same as they appear in the array. I would like for them to be accepted regardless if they…
Stinga B
  • 123
  • 1
  • 4
12
votes
1 answer

Postgresql lowercase to compare data

I want to get the contents from a row in the Postgresql database and compare the lowercase version of it to a lowercase version of a user input to check if it exists in the database. i tried: "SELECT LOWER(name) FROM user_names WHERE name LIKE…
Shadin
  • 1,867
  • 5
  • 26
  • 37
11
votes
7 answers

Lowercasing script in Python vs Perl

In Perl, to lowercase a textfile, I could do the following lowercase.perl: #!/usr/bin/env perl use warnings; use strict; binmode(STDIN, ":utf8"); binmode(STDOUT, ":utf8"); while() { print lc($_); } And on the command line: perl…
alvas
  • 115,346
  • 109
  • 446
  • 738
11
votes
6 answers

how to change hash keys in the lower case using ruby

Given hash with nested documents: myHash = { "MemberId"=>"ABC0001", "MemberName"=>"Alan", "details"=>[ {"LineNumber"=>"4.1", "Item"=>"A0001", "Description"=>"Apple"}, {"LineNumber"=>"5.1", "Item"=>"A0002"}, …
Askar
  • 5,784
  • 10
  • 53
  • 96
10
votes
8 answers

Java Program to test if a character is uppercase/lowercase/number/vowel

As I said before, how do I test if the entered character is one of the parameters? I've written this code, but it doesn't seem to run very well(or at all), no errors, however. Also, I need to use the basic code I've used here. Its for school and we…
Prnth
  • 143
  • 1
  • 1
  • 9
10
votes
6 answers

lower_case_table_names=1 on Ubuntu 18.04 doesn't let mysql to start

I have installed mysql community server 8.013 on ubuntu 18.04 and I have the following issue. I want to set lower_case_table_names=1 in order to have case insensitive table names in my db. I edited /etc/mysql/mysql.conf.d/mysqld.cnf and added the…
Christoph Adamakis
  • 865
  • 2
  • 9
  • 26
10
votes
2 answers

Case insensitive string matching in awk

Assume a multi-line text file file in which some lines start with whitespaces. $ cat file foo Baz baz QUX QUx Quux BaZ Qux BazaaR Further assume that I wish to convert all those lines that start with a keyword (e.g. "baz") to lowercase…
Michael Gruenstaeudl
  • 1,609
  • 1
  • 17
  • 31