Character string
In Data-processing, a character string is an ordered continuation of characters. The character string is a standard of Donnée in many data-processing languages. In English, one employs the term '' string ''.
Coding
A chain can be coded in with various codings of character, like ASCII, UTF-8, etcIn a Computing memory, the Adresse memory of the first character is known. To delimit the end of the chain, either it is finished by a character of end of chain (zero binary in Langage C, and one speaks then about ASCIIZ to indicate “ finished by a Z éro ”), or the number of characters is stored in parallel (BASIC, Pascal, PL/I). In certain directed languages object, the internal coding of the chain does not need to be known (encapsulation).
Syntactic sugar
Generally, a character string is represented surrounded by quotation marks. Examples:-
"Wikipedia" -
' This sentence is a character string. “ -
" 123" -
' First solution to contain the delimitor \”, a character of échappement' -
" Second solution to contain the délimiteur" " , the doubling of the délimiteur"
Algorithms
Several algorithms belongs to the state of the art to treat the chains, each one being able to know various forms. Some examples of categories of such algorithms:- algorithms of search for under-chain (S) like that of Boyer-Moore
- algorithms of search for rational expressions
- algorithms of sorting
- Algorithms of sorting in Unicode; Alphabetical classification; Alphabetical classification complexes
- syntactic Analyze of a chain
- algorithms of conversion (Unicode, capitalization, transcribings…)
Programmer has, today, generally more about of to worry (even if it must know the principle of it), these algorithms being directly used by the primitive of the language.
See too
| Random links: | Dagbego | Jean Chambige | Road periphery of Mans | Salmon trout | Vincent Carloix | Animations_d'Aardman |