indexOf Case Sensitive?

The indexOf() methods are all case-sensitive. You can make them (roughly, in a broken way, but working for plenty of cases) case-insensitive by converting your strings to upper/lower case beforehand: s1 = s1.toLowerCase(Locale.US); s2 = s2.toLowerCase(Locale.US); s1.indexOf(s2);

How do I make jQuery Contains case insensitive, including jQuery 1.8+?

This is what i’m using in a current project, haven’t had any problems. See if you have better luck with this format: jQuery.expr[‘:’].Contains = function(a, i, m) { return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0; }; In jQuery 1.8 the API for this changed, the jQuery 1.8+ version of this would be: jQuery.expr[“:”].Contains = jQuery.expr.createPseudo(function(arg) { return function( … Read more

Are PHP functions case sensitive?

I am quoting from this: Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration. So, its looks like user-defined functions are not case-sensitive, there was a vote for making functions/objects under PHP5 case-sensitive.

Case sensitivity in Git

May be a workaround similar to this comment in an msysgit issue (for another case-insensitive OS: Windows) could help? I’ve encountered this same issue. Refactored a package name in Eclipse and switching to a previous build broke due to the folder name not reverting. I’m using Windows 7, Git 1.7.0.2.msysgit.0 My folder was renamed in … Read more

Is git not case sensitive?

It is going to depend on the core.ignorecase configuration value, which is set to false in case-sensitive filesystems and true in msysgit on Windows. core.ignorecase If true, this option enables various workarounds to enable git to work better on filesystems that are not case sensitive, like FAT. For example, if a directory listing finds “makefile” … Read more

Is XML case-sensitive?

Short Answer: Yes – XML is case sensitive. Longer Answer: It is widely accepted as case sensitive, however if you want to accept more flexibly, take a look at the question below, which discusses having case-insensitive enumerations: XML Schema Case Insensitive Enumeration of Simple Type String

Is VB really case insensitive?

The difference between VBA and VB.NET is just because VB.NET compiles continuously in the background. You’ll get an error when you compile the VBA. Like Jonathan says, when programming you can think of VB.NET as case-insensitive apart from string-comparisons, XML, and a few other situations… I think you’re interested in what’s under the hood. Well, … Read more

Case conventions on element names?

Most XML standards originating from the W3C tend to use lower case with hyphens. There is a philosophical distinction between seeing XML as a format for platform neutral documents, which W3C standards try to encourage, and languages such as XAML which see XML as a serialisation of a platform specific object graph. If you’re not … Read more

tech