Case sensitivity

Case sensitivity

Text sometimes exhibits case sensitivity; that is, words can differ in meaning based on differing use of uppercase and lowercase letters. Words with capital letters don't always have the same meaning when written with lowercase letters.For example, "Bill" is the first name of former U.S. president Bill Clinton, who could sign a "bill" (which is a proposed law that was approved by Congress). And a Polish person can use polish to clean something.

When a computer program compares two words to decide whether they are the same, it might or might not apply case sensitivity, depending upon the programmer’s intent.

Case sensitivity is relevant to:
*usernames
*passwords
*filenames
*commands
*variable names
*website addresses
*searching for a text string within electronic text

Some computer languages are case-sensitive (Java, C++, Ccite book | last = Kernighan | first = Brian W. | authorlink = Brian Kernighan | coauthors = Dennis M. Ritchie | chapter=Chapter 2: Types, Operators and Expressions |pages=page 33 | title = The C Programming Language | edition = 1st ed. | publisher = Prentice Hall | month = February | year = 1978 | location = Englewood Cliffs, NJ | id = ISBN 0-13-110163-3 ] , Ruby [cite book | last = Matsumoto| first = Yukihiro | authorlink = Yukihiro Matsumoto | chapter=Chapter 2: Language Basics |pages=page 9 | title = Ruby in a nutshell | edition = 1st ed. | publisher = O'Reilly Media | month = January | year = 2002 | id = ISBN 0-596-00214-9 ] and XML), whereas others are case-insensitive (i.e., not case-sensitive), for example, most BASICs (an exception being BBC BASIC), SQL and Pascal. There are also languages, such as Haskell and Prolog, in which the capitalization of an identifier encodes information about its semantics.

Often, computer passwords are case-sensitive and computer user names are not, which can be confusing for the inexperienced user. Passwords are often made case-sensitive to make them harder to guess, whereas making usernames harder to guess or remember is not an advantage.

It takes more work for a program to ignore case when comparing data, depending on the data being compared. Usually it suffices in text coded in character sets like ASCII or EBCDIC to merely convert the comparand and the data temporarily to one case and then compare; however it becomes far more challenging in a multi-lingual environment, e.g., using Unicode, since case-conversion rules differ between some languages, for example, in German the uppercase form for the sharp s ("ß") is "SS".

Case-insensitive operations are sometimes said to fold case, from the idea of folding the character code table so that upper- and lower-case letters coincide. The alternative smash case is more likely to be used by someone that considers this behaviour a misfeature or in cases wherein one case is actually permanently converted to the other.

References

ee also

* List of case sensitive English words
* Case preservation


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Case sensitivity — (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich unterschiedliche… …   Deutsch Wikipedia

  • case sensitivity — raidžių lygio paisymas statusas T sritis informatika apibrėžtis Didžiųjų ir jas atitinkančių mažųjų raidžių laikymas skirtingomis. Kai kuriose programavimo kalbose nepaisoma raidžių lygio, t. y. didžiosios ir jas atitinkančios mažosios raidės… …   Enciklopedinis kompiuterijos žodynas

  • case-sensitivity — noun The characteristic of being case sensitive; having different reactions to typed letters based on whether the letters are uppercase or lowercase …   Wiktionary

  • Case-Sensitivität — Case sensitivity (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich… …   Deutsch Wikipedia

  • Case-sensitiv — Case sensitivity (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich… …   Deutsch Wikipedia

  • Case Sensitivität — Case sensitivity (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich… …   Deutsch Wikipedia

  • Case insensitive — Case sensitivity (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich… …   Deutsch Wikipedia

  • Case insensitivity — Case sensitivity (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich… …   Deutsch Wikipedia

  • Case sensitive — Case sensitivity (engl. case = Fach, abgeleitet von den Fächern (type cases), in denen Drucker die verschiedenen Drucklettern aufbewahrten, sensitivity = Abhängigkeit) bezeichnet in der elektronischen Datenverarbeitung zwei grundsätzlich… …   Deutsch Wikipedia

  • Case preservation — When a computer file system stores text, the computer may keep or discard case information. When the case is stored, it is called case preservation.A system that is not case preserving is necessarily case insensitive, but it is possible and… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”