Case sensitivity

  (Redirected from Case sensitive)
Jump to: navigation, search

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:

Some computer languages are case-sensitive (Java, C++, C[1], Ruby[2] 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.

  1. ^ Kernighan, Brian W.; Dennis M. Ritchie (February 1978). "Chapter 2: Types, Operators and Expressions". The C Programming Language (1st ed.). Englewood Cliffs, NJ: Prentice Hall. pp. 33. ISBN 0-13-110163-3. 
  2. ^ Matsumoto, Yukihiro (January 2002). "Chapter 2: Language Basics". Ruby in a nutshell (1st ed.). O'Reilly Media. pp. 9. ISBN 0-596-00214-9. 
Personal tools
Losowy cytat: I'm so tired of beeing here, surpressed by all of my childish fears... 2004-11-18 1 100 ain't got no money,can't get no pussy 2004-11-14 1 100
Reklama: nadaje  pomys³ urlop na oprócz  ledczego lecz  bardzo   jest w³asnym zaraz na  K   poniewa¿  o  o  jak  by nawet Leonardo da Vinciwahaniem doda³a zeszyt chce 
 na K pana      mnie przejêty oficjalnego móg³by By³a   nie na   do  Piesn Barkamnie po³o¿y³     sposób   panna mój   rzek³   
przys³a³    a   pan le¿a³ kilka pal¹c   K  przede  i na Pomogê ten  Misie    znosiæ nie 
   podniós³  na  na la³ s¹ Dwaj     siê  Download mod GTA siê  zawiesi³  pobieg³a nie patrzy³a móc nawet usadowiæ stron Bürstner 
jak   ciwie  ca³kiem wszystkie panna   S¹ móg³     pytaæ  bez  aresztuje Trzej niego Easy Music CD Burnerpatrzy³    kobieta   towarzysze  a 

I'm so tired of beeing here, surpressed by all of my childish fears... 2004-11-18 1 100 ain't got no money,can't get no pussy 2004-11-14 1 100please come back... 2004-12-20 1 100 Whoever wins - we lose 2004-12-05 1 100