GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing en.wikipedia.org — Caret - Wikipedia This article is about the computing character. For the proofreader's insertion symbol, see Caret (proofreading). For other uses, see Caret (disambiguation) and Carat (disambiguation).
"^" and "U+005E" redirect here. For the diacritic, see Circumflex. For math notation, see Exponentiation and Logical conjunction. For similar characters, see ∧, λ, 人, and ʌ.
Look up caret in Wiktionary, the free dictionary. Caret (from Latin caret 'it lacks')[1] is the name used familiarly for the character ^ provided on most QWERTY keyboards by typing ⇧ Shift+6. The symbol has a variety of uses in programming and mathematics. The name "caret" arose from its visual similarity to the original proofreader's caret, ‸, a mark used in proofreading to indicate where a punctuation mark, word, or phrase should be inserted into a document. The ASCII standard (X3.64.1977) calls it a "circumflex";[2] the Unicode standard calls it a "circumflex accent", although it is no longer practicable to use it for that purpose. HistoryTypewritersOn typewriters designed for languages that routinely use diacritics (accent marks), there are two possible ways to type these: keys can be dedicated to precomposed characters (with the diacritic included); alternatively a dead key mechanism can be provided. With the latter, a mark is made when a dead key is typed but, unlike normal keys, the paper carriage does not move on and thus the next letter to be typed is printed under the accent. The ^ symbol was originally provided in typewriters and computer printers so that circumflex accents could be overprinted on letters (as in ô or ŵ). Transposition into ISO/IEC 646 and ASCIIThe incorporation of the circumflex symbol into ASCII is a consequence of this prior existence on typewriters: this symbol did not exist independently as a type or hot-lead printing character. The original 1963 version of the ASCII standard used the code point 0x5E for an up-arrow ↑. However, the 1965 ISO/IEC 646 standard defined code point 0x5E as one of five available for national variation,[a] with the circumflex ^ diacritic as the default and the up-arrow as one of the alternative uses.[3] In 1967, the second revision of ASCII followed suit.[4]
^â Caret compared to lower-case circumflex accent Overprinting to add an accent mark was not always supported well by printers, and was almost never possible on video terminals. The freestanding circumflex (which had come to be called a caret) quickly became reused for many other purposes, such as in computer languages and mathematical notation. As the mark did not need to fit above a letter any more, it became larger in appearance such that it can no longer be used to overprint an accent in most fonts.[5] Support for accented characters eventually came to be provided by including precomposed characters in character sets,[b] rather than by using overprinting. UsesProgramming languagesThe symbol ^ has many uses in programming languages, where it is typically called a caret. It can signify exponentiation, the bitwise XOR operator, string concatenation[6], and control characters in caret notation, among other uses. In regular expressions, the caret is used to match the beginning of a string or line; if it begins a character class, then the inverse of the class is to be matched. ANSI C can transcribe the caret in the form of the trigraph Pascal uses the caret for declaring and dereferencing pointers.
In Smalltalk, the caret is the method return statement.
In C++/CLI, .NET reference types are accessed through a handle using the Node.js uses the caret in package.json files to signify dependency resolution behavior being used for each particular dependency. In the case of Node.js, a caret allows any kind of update, unless it is seen as a "major" update as defined by semver.[8] Surrogate symbol for superscript and exponentiationIn mathematics, the caret can signify exponentiation (e.g. The use of the caret for exponentiation can be traced back to ALGOL 60, which expressed the exponentiation operator as an upward-pointing arrow, intended to evoke the superscript notation common in mathematics. The upward-pointing arrow is now used to signify hyperoperations in Knuth's up-arrow notation, with a single arrow representing exponentiation and multiple adjacent arrows representing higher-level operations. Escape characterIt is often seen in caret notation to show control characters: for instance, The Windows command-line interpreter (cmd.exe) uses the caret to escape reserved characters (most other shells use the backslash). For example, to pass a 'less-than' sign as an argument to a program, one would type Upward-pointing arrowIn internet forums, on social networking sites such as Facebook, or in online chats, one or more carets may be used beneath the text of another post, representing an upward-pointing arrow to that post;[9] in addition to the arrow usage, it can also mean that the user who posted the ^ agrees with the above post. Multiple carets may be used to indicate that the comment is replying to, or relating to, the post above that correlates with the number of carets used, or to "underscore" the correct portion of the previous post, or simply for emphasis. A similar use has been adopted by programming language compilers, such as the Java compiler, to point out where a compilation error has occurred. The compiler prints out the faulty line of code and uses a single caret on the next line, padded by spaces, to give a visual indication of the error location. UnicodeThe ASCII assignment to 0x5E was inherited by Unicode. Carets and related and similar characters in Unicode include:
See also
Notes
References
Retrieved from "https://en.wikipedia.org/w/index.php?title=Caret&oldid=1382959238" Hidden categories:
| ||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||