lowercase

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 inputs to lowercase and saves. """ def pre_save(self, model_instance, add): ...

Case Sensitivity In Perl Script - How Do I Make It Insensitive?

How would I change the following markov script to treat capitalized and lowercase words as the same? The entire idea is to help increase the quality of output of my markov text generator. As it stands, if you plug 99 lowercase sentences into it and 1 capitalized sentence - you almost always find a non-markovized version of the capitali...

sed: toupper a character on a location

This sed "s/public \(.*\) get\(.*\)()/\1 \2/g" will transfor this public class ChallengeTO extends AbstractTransferObject { public AuthAlgorithm getAlgorithm(); public long getCode(); public int getIteration(); public String getPublicKey(); public String getSelt(); }; into this public class ...

MediaWiki: Can I make all links lowercase and use hyphen instead of underscore as word separator?

Can I make in Mediawiki links lowercase and use hyphen instead of underscore as word separator? Sort of what Wordpress or another wiki CMS does. ...

regexp uppercase to lowercase

Hi, 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" Thx ...

How to add lowercase field to NSURLRequest header field?

I'm getting pretty frustrated figuring out how to add a lowercase header field to an NSMutableURLRequest. NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:MyURLString]]; [urlRequest setValue:@"aValue" forHTTPHeaderField:@"field"]; In the example above, "field" gets switched to "Field," since...

C toLowerCase Function won't work - Access violation

Hi, I have a simple function which takes an array of characters as an argument, and converts all the characters to lower case. However, I get a weird access violation error. Here's the code: void toLower(char *rec) { int i=0; while (rec[i]!='\0') { if (rec[i]>='A' && rec[i]<='Z') rec[i]='a'+rec[i]-'A'; //this is ...

c - convert a mixed-case string to all lower case

is the best/cleanest way to just do a for loop iterating through each position and call tolower() on it? ...

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 not supported by this class: [...] The preprocessing operations \l \u, \L, and \U. ...

Vim: search and replace across multiple lines with conversion to lower case

Hi! Here's what I'd like to do, for each one of many files: search for all occurrences of "<a href" then begin block selection select until the first occurrence of ">" convert the entire match to lowercase Thanks again, Olivier Pons ...

Convert HTML tag to lowercase

I working on an intranet project for IE6 (i know...) and I need to output some HTML code from a div. I use $('#output').text($('#container').html()); But IE6 outputs all the code in uppercase: <TABLE border=1> <TR> <TD>Test Content</TD> </TR> </TABLE> How can I convert HTML tags to lowercase using jQuery? Would be useful to hav...

Lowercase conversion in XSL

Hello, I have an XML like <emps> <emp id='3432'> <fname>Jack</fname> <lname>Dawson</lname> <emp> <emp id='1122'> <fname>Jack</fname> <lname>Thompson</lname> <emp> <emps> I am developing a web application which searches this xml based on the first name entered and comes up with a resultant page. To achieve this I have written an x...

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 might be a problem caused by a wrong version of the interpreter. Any ideas? ...

Is there a good way to change UPPER CASE html tags to lower case, across a whole document?

So, I've got a bunch of markup-pages delivered that I am supposed to style. Problem is that tags are all in uppercase, even though the doctype declares it as xhtml. Not only is it ugly and hurting my eyes, it's also wrong, isn't it? Is there a good way, perhaps a coda (my preferred tool), plug-in, or online service that can do this for ...

PHP string transform first character uppercase/lowercase

I have two types of strings, 'hello', 'helloThere'. What I want is to change them so they read like: 'Hello', 'Hello There' depending on the case. What would be a good way fo doing this? Thanks ...

Emacs should set the second character of a word in lower case

In most cases I'm writing german texts. Most words start with an uppercase letter followed by lower case letters. Sometimes I'm typing too fast and also the second letter of a word is typed upper case. To work around this issue I asked myself if it is poosible to write a function which automatically changes the case of the second letter....

Python: How to check if a unicode string contains a cased character?

Hi! I'm doing a filter wherein I check if a unicode (utf-8 encoding) string contains no uppercase characters (in all languages). It's fine with me if the string doesn't contain any cased character at all. For example: 'Hello!' will not pass the filter, but "!" should pass the filter, since "!" is not a cased character. I planned to u...

What is the standard algorithm for converting unicode characters into lowercase?

I want to know the standard algorithm for converting unicode characters into lowercase as proposed by unicode.org. Also, do most programming languages follow this proposed standard? ...

Use lower-case constants for false, true, null in NetBeans

There is any way to set them in auto completion code in lowercase? Automatically they appear in UPPERCASE, I know that constants are defined in UPPERCASE but I prefer lowercase for them. ...

How i can translate uppercase to lowercase letters in a rewrite rule in nginx web server?

I need to translate the address: www.example.com/TEST in ---> www.example.com/test ...