Skip to main content

Questions tagged [case-insensitivity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
5 answers

How do you fix the wrong-case-sensitivity dictionary setting bug-pattern?

There is a coding anti-pattern I've noticed (while using .Net). You declare a data class, which is supposed to have a dictionary field (or get/set Property), and lets call it 'Properties', for the ...
Tim Lovell-Smith's user avatar
-4 votes
1 answer

What happen to string.ToCommonSenseCase()?

I'm very confused about this. In most programming languages, there are string.ToUpperCase(), string.ToLowerCase(), sometimes Capitalize() (which capitalize the first letter of the string), even ...
AVAVT's user avatar
  • 111
0 votes
1 answer

Static analysis for finding capitalisation / case inconsistencies in file names

TLDR; I'm looking for ideas on how to flag code containing file names/paths that have inconsistent capitalisation with the actual file/directory. Situation I am migrating a significant code base ...
thexacre's user avatar
  • 1,165
1 vote
1 answer

pcre case insensitivity: handle escape sequences as raw bytes?

Consider the following regex (no unicode): Example:\x04\x05\x41 Suppose you search this regex case-insensitively. Would you expect it to search the final \x41 in case-sensitive manner? People whom I ...
Muxecoid's user avatar
  • 111
9 votes
3 answers

Programming around email address case sensitivity

Like many websites, we use email addresses as user identifiers for logins. RFC 5321 [#2.3.11] states that the local parts of email addresses: MUST be interpreted and assigned semantics only by the ...
Gareth's user avatar
  • 5,122
9 votes
6 answers

What are the pros and cons of having a CaseInsensitiveString type in Java? [closed]

I'm tempted to create a final class CaseInsensitiveString implements CharSequence. This would allow us to define variables and fields of this type, instead of using a regular String. We can also have ...
polygenelubricants's user avatar