Home > Terms > English, UK (UE) > Code unit sequence

Code unit sequence

An ordered sequence of one or more code units.

  • When the code unit is an 8-bit unit, a code unit sequence may also be referred to as a byte sequence.
  • A code unit sequence may consist of a single code unit.
  • In the context of programming languages, the value of a string data type basically consists of a code unit sequence. Informally, a code unit sequence is itself just referred to as a string, and a byte sequence is referred to as a byte string. Care must be taken in making this terminological equivalence, however, because the formally defined concept of a string may have additional requirements or complications in programming languages. For example, a string is defined as a pointer to char in the C language and is conventionally terminated with a NULL character. In object-oriented languages, a string is a complex object, with associated methods, and its value may or may not consist of merely a code unit sequence.
  • Depending on the structure of a character encoding standard, it may be necessary to use a code unit sequence (of more than one unit) to represent a single encoded character. For example, the code unit in SJIS is a byte: encoded characters such as "a" can be represented with a single byte in SJIS, whereas ideographs require a sequence of two code units. The Unicode Standard also makes use of code unit sequences whose length is greater than one code unit.
This is auto-generated content. You can help to improve it.
0
Collect to Blossary

Member comments

You have to log in to post to discussions.

Terms in the News

Featured Terms

Harry8L
  • 0

    Terms

  • 0

    Blossaries

  • 1

    Followers

Industry/Domain: Entertainment Category: TV

Glen Larson

Glen Larson was the writer, producer and creator of many of the biggest 70's and 80's hit TV shows. He was responsible for shows such as the original ...

Contributor

Featured blossaries

赤峰市

Category: Geography   1 18 Terms

BMW

Category: Autos   1 1 Terms

Browers Terms By Category