Caret

^
Caret
In UnicodeU+005E ^ CIRCUMFLEX ACCENT (^)
Different from
Different fromU+2038 CARET
U+02C6 ˆ MODIFIER LETTER CIRCUMFLEX ACCENT
U+028C ʌ LATIN SMALL LETTER TURNED V
U+2227 LOGICAL AND
U+039B Λ GREEK CAPITAL LETTER LAMDA
Related
See alsoU+FF3E FULLWIDTH CIRCUMFLEX ACCENT

Caret (from Latin caret 'there is lacking')[3] 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";[4] the Unicode standard calls it a "circumflex accent", although it is no longer practicable for that purpose.

History

Typewriters

Typewriter with French (AZERTY) keyboard: à, è, é, ç ù have dedicated keys; the circumflex and diaeresis accents have dead keys

On 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 ASCII

The 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.[5] In 1967, the second revision of ASCII followed suit.[6]

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.[7] Accented letters eventually because widely supported by adding precomposed characters[b] instead of using overprinting.

In Unicode the symbol is encoded as U+005E ^ CIRCUMFLEX ACCENT; in HTML it may be used directly or inserted with ^. The combining character for use as a diacritic is U+0302 ◌̂ COMBINING CIRCUMFLEX ACCENT, although precomposed characters (like U+00E2 â LATIN SMALL LETTER A WITH CIRCUMFLEX) are available for most European languages.

Uses

Programming languages

The symbol ^ has many uses in programming languages, where it is typically called a caret. It can signify exponentiation, the bitwise XOR operator, string concatenation[citation needed], 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 ??', as the character was originally not available in all character sets and keyboards. C++ additionally supports tokens like xor (for ^) and xor_eq (for ^=) to avoid the character altogether. RFC 1345 recommends that the character be transcribed as digraph '> when required.[8]

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 ClassName^ syntax. In Apple's C extensions for Mac OS X and iOS, carets are used to create blocks and to denote block types. Go uses it as a bitwise NOT operator.

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.[9]

Surrogate symbol for superscript and exponentiation

In mathematics, the caret can signify exponentiation (e.g. 3^5 for 35) where the usual superscript is not readily usable (as on some graphing calculators). It is also used to indicate a superscript in TeX typesetting.

The use of the caret for exponentiation can be traced back to ALGOL 60,[citation needed] 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.

Escape character

It is often seen in caret notation to show control characters: for instance, ^A means the control character with value 1.

The Windows command-line interpreter (cmd.exe) uses the caret to escape reserved characters[citation needed] (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 arrow

In 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;[10] 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.[citation needed] 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.

See also

Notes

  1. ^ ISO 646 (and ASCII, which it includes) is a standard for 7-bit encoding, providing just 96 printable characters (and 32 control characters). This was insufficient to meet the needs of Western European languages and so the standard specifies certain code points that are available for national variation.
  2. ^ For instance in ISO Latin-1.

References

  1. ^ Unicode (1991–2012). "IPA Extensions" (PDF). Retrieved 20 August 2012.
  2. ^ Eric W. Weisstein. "Caret". MathWorld. Wolfram. Retrieved 20 August 2012.
  3. ^ "Etymology of 'caret'". Online Etymology Dictionary. Douglas Harper. Retrieved 22 October 2024.
  4. ^ "American National Standard for Information Interchange" (PDF). National Institute for Standards. 1977. (facsimile, not machine readable)
  5. ^ "Character histories: notes on some ASCII code positions (5E)".
  6. ^ Tom Jennings. "ASCII: American Standard Code for Information Infiltration". Archived from the original on 21 August 2014. Retrieved 14 September 2010.
  7. ^ Jukka K. Korpela (18 January 2010). "Kirjainten tarinoita" (PDF) (in Finnish). pp. 132–133. Retrieved 14 September 2010.
  8. ^ Simonsen, Keld (June 1992). "RFC 1345 – Character Mnemonics and Character Sets". Internet Engineering Task Force. Retrieved 7 March 2022.
  9. ^ "Caret ranges in node.js". Archived from the original on 3 December 2016. Retrieved 1 October 2019.
  10. ^ "What is Caret?". Computer Hope. Retrieved 14 August 2012.

Read other articles:

Kampanye LiaoshenBagian dari Perang Saudara TiongkokPertempuran JinzhouTanggal12 September 1948 – 2 November 1948LokasiManchuriaHasil Kemenangan yang menentukan bagi KomunisPerubahanwilayah Direbutnya Manchuria oleh KomunisPihak terlibat Republik Tiongkok Angkatan Darat Republik Tiongkok Partai Komunis Tentara Lapangan Timur LautTokoh dan pemimpin Chiang Kai-shek Wei Lihuang Du Yuming Fan Hanjie (POW) Liao Yaoxiang (POW) Liu Yuzhang Lin Biao Luo Ronghuan Liu YalouKekuatan 580.000&...

 

 

Google FotoTipeaplikasi seluler Versi pertama28 Mei 2015; 8 tahun lalu (2015-05-28)Versi stabilDaftariOS: 6.29 (23 Maret 2023)Android: 6.40.0.537730002 (4 Juni 2023) GenrePenyimpanan dan berbagi fotoKarakteristik teknisSistem operasiAndroid, iOS, webPlatformAndroid dan iOS Formatunduhan digital Metode inputlayar sentuh Informasi pengembangPembuatLarry Page PengembangGooglePenerbitGoogle Play Sumber kode Google Playcom.google.android.apps.photos Informasi tambahanSitus webphotos.google.co...

 

 

The following are operators of the de Havilland Mosquito: Military operators Australia Royal Australian Air Force No. 1 Squadron RAAF No. 87 Squadron RAAF No. 94 Squadron RAAF No. 456 Squadron RAAF No. 464 Squadron RAAF No. 1 Photo Reconnaissance Unit RAAF No. 5 Operational Training Unit RAAF Belgium Belgian Air Force 11 Squadron, 1 Wing Canada Royal Canadian Air Force No. 400 Squadron RCAF No. 404 Squadron RCAF No. 406 Squadron RCAF No. 409 Squadron RCAF No. 410 Squadron RCAF No. 418 Squadr...

This article is about the Polytechnic High School in Long Beach, California. For the high school in New York, see Long Beach High School (New York). For the Polytechnic School in Pasadena, California, see Pasadena Poly. Public school in Long Beach, California, United StatesLong Beach Polytechnic High SchoolAddress1600 Atlantic AvenueLong Beach, CaliforniaUnited StatesCoordinates33°47′15″N 118°11′02″W / 33.78750°N 118.18389°W / 33.78750; -118.18389Informatio...

 

 

7th season of the Premier League This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (September 2012) (Learn how and when to remove this template message) Football league seasonFA Premier LeagueSeason1998–99Dates15 August 1998 – 16 May 1999ChampionsManchester United5th Premier League title12th English titleRelegatedCharlton AthleticBlackburn RoversNottingham F...

 

 

Rebecca FergusonLahirRebecca Louisa Ferguson Sundström19 Oktober 1983 (umur 40)Stockholm, SwediaAlmamaterAdolf Fredrik's Music SchoolPekerjaanAktrisTahun aktif1999–sekarang Rebecca Louisa Ferguson Sundström[1] (lahir 19 Oktober 1983), dikenal secara profesional sebagai Rebecca Ferguson, adalah seorang Aktris Swedia.[2] Dia sangat dikenal sebagai pemeran utama Elizabeth Woodville dalam The White Queen (2013), yang memberinya nominasi Golden Globe, dan perannya se...

The AmericanThe American #1Publication informationPublisherDark Horse ComicsFormatComic bookPublication date1987No. of issues8 regular issues, 1 special, 1 miniseriesMain character(s)The AmericanCreative teamCreated byMark Verheiden (writer) The American is an American comic book series published in 1987 by Dark Horse Comics. The American continued for eight regular issues, a special, a miniseries, and occasional stories in anthologies, through the mid-1990s. A collection of all the lead char...

 

 

Canadian television series This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may need to be rewritten to comply with Wikipedia's quality standards. You can help. The talk page may contain suggestions. (November 2020) This article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all im...

 

 

American politician John CessnaMember of the U.S. House of Representativesfrom Pennsylvania's 16th districtIn officeMarch 4, 1873 – March 3, 1875Preceded byBenjamin F. MeyersSucceeded bySobieski RossIn officeMarch 4, 1869 – March 3, 1871Preceded byWilliam H. KoontzSucceeded byBenjamin F. MeyersMember of the Pennsylvania House of RepresentativesIn office1850185118621863 Personal detailsBorn(1821-06-29)June 29, 1821Bedford County, PennsylvaniaDiedDecember 13, 1...

 本表是動態列表,或許永遠不會完結。歡迎您參考可靠來源來查漏補缺。 潛伏於中華民國國軍中的中共間諜列表收錄根據公開資料來源,曾潛伏於中華民國國軍、被中國共產黨聲稱或承認,或者遭中華民國政府調查審判,為中華人民共和國和中國人民解放軍進行間諜行為的人物。以下列表以現今可查知時間為準,正確的間諜活動或洩漏機密時間可能早於或晚於以下所歸�...

 

 

1962 film by Chano Urueta The Witch's MirrorTheatrical release posterDirected byChano UruetaWritten by Alfredo Ruanova Carlos Enrique Taboada Produced byAbel SalazarStarring Rosita Arenas Armando Calvo Isabela Corona Dina de Marco Distributed byAlameda FilmsRelease date 1960 (1960) Running time75 minutesCountryMexicoLanguageSpanish The Witch's Mirror (Spanish: El espejo de la bruja) is a 1960[a] Mexican supernatural horror film directed by Chano Urueta, written by Alfredo Ruanova...

 

 

American hacker (1963–2023) Kevin MitnickMitnick in 2010BornKevin David Mitnick(1963-08-06)August 6, 1963Los Angeles, California, U.S.DiedJuly 16, 2023(2023-07-16) (aged 59)Pittsburgh, Pennsylvania, U.S.Other namesThe Condor, The Darkside HackerOccupations Information technology consultant Author Organizations Mitnick Security Consulting Chief Hacking Officer at KnowBe4, Inc Board member ofKnowBe4Criminal charge(s)1995: Wire fraud (14 counts), possession of unauthorized acce...

Hamburgbukta (English: Hamburg Bay) is a one-kilometer-long bay on the western side of Hoelhalvøya, Albert I Land, Spitsbergen in the Svalbard archipelago. Hamburgbukta lies just below Magdalenafjorden (j), on the peninsula, Hoelhalvøya, that forms its southern shore. History The French were the first to occupy it in 1633, calling it Port Louis or Refuge Français. On the southern shore of the bay they built a whaling station. In 1634 two English men-of-war tried to drive out the French, bu...

 

 

Book by Garth Risk Hallberg City on Fire First edition (US)AuthorGarth Risk HallbergLanguageEnglishGenreFictionPublisherAlfred A. Knopf (US)Jonathan Cape (UK)Publication date2015Publication placeUnited StatesMedia typePrint (Hardback & Paperback)Pages927ISBN978-0-385-35377-9 City on Fire is a 2015 novel by Garth Risk Hallberg, published by Alfred A. Knopf.[1][2][3] The novel takes place in New York City in the 1970s. It is Hallberg's first published novel.[...

 

 

Constituency of the Madhya Pradesh legislative assembly in India PushprajgarhConstituency No. 88 for the Madhya Pradesh Legislative AssemblyConstituency detailsCountryIndiaRegionCentral IndiaStateMadhya PradeshDistrictAnuppurLS constituencyShahdolEstablished1957ReservationST Pushprajgarh Assembly constituency is one of the 230 Vidhan Sabha (Legislative Assembly) constituencies of Madhya Pradesh state in central India.[1][2][3] It is a segment of Shahdol (Lok Sabha cons...

1993 novel by John Marsden This article is about the novel. For its adaptations, see Tomorrow, When the War Began (film) and Tomorrow When the War Began (TV series). Tomorrow, When the War Began First editionAuthorJohn MarsdenCover artistHelen HallidayLanguageEnglishSeriesTomorrow seriesGenreYoung adultActionAdventure novelPublisherPan Macmillan (Australia)Publication date1993Publication placeAustraliaMedia typePrint (hardcover and paperback)Pages286Followed byThe Dead of Night...

 

 

You can help expand this article with text translated from the corresponding article in Spanish. (July 2011) Click [show] for important translation instructions. View a machine-translated version of the Spanish article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikiped...

 

 

Place in Bács-Kiskun, HungarySoltszentimreCountry HungaryCountyBács-KiskunArea • Total44.49 km2 (17.18 sq mi)Population (2023) • Total1,247 • Density27.56/km2 (71.4/sq mi)Time zoneUTC+1 (CET) • Summer (DST)UTC+2 (CEST)Postal code6223Area code78 Location of Bács-Kiskun county in Hungary Soltszentimre is a village in Bács-Kiskun County, in the Southern Great Plain region of southern Hungary. Aerial photography of ...

Legitimationskette der Bundesebene, unmittelbare Staatsverwaltung, vereinfacht Legitimationskette der unmittelbaren und mittelbaren Staatsverwaltung sowie der Selbstverwaltung auf Bundes- und Landes- sowie Kommunalebene (stark vereinfacht und systematisiert) Die Legitimationskettentheorie ist eine Theorie, die die demokratische Legitimation hoheitlichen wie nichthoheitlichen Handelns in einer ununterbrochenen Kette auf die Willensäußerung des Volkes bei der Wahl zurückführt. In politikwis...

 

 

كأس إسكتلندا 1906–07 تفاصيل الموسم كأس إسكتلندا  البلد المملكة المتحدة  البطل نادي سلتيك  كأس إسكتلندا 1905–06  كأس إسكتلندا 1907–08  تعديل مصدري - تعديل   كأس اسكتلندا 1906–07 (بالإنجليزية: 1906–07 Scottish Cup)‏ هو موسم من كأس اسكتلندا. فاز فيه نادي سلتيك.[1] نتائج الموسم ...