Finite Computer-Readable Sequence

From GM-RKB
(Redirected from Symbol String)
Jump to navigation Jump to search

A Finite Computer-Readable Sequence is a machine-readable item that is a finite sequence of computer characters.



References

2020a

2020b

  • (Wikipedia, 2020b) ⇒ https://en.wikipedia.org/wiki/String_(computer_science)#Literal_strings Retrieved:2020-2-23.
    • Sometimes, strings need to be embedded inside a text file that is both human-readable and intended for consumption by a machine. This is needed in, for example, source code of programming languages, or in configuration files. In this case, the NUL character doesn't work well as a terminator since it is normally invisible (non-printable) and is difficult to input via a keyboard. Storing the string length would also be inconvenient as manual computation and tracking of the length is tedious and error-prone.

      Two common representations are:

      • Surrounded by quotation marks (ASCII 0x22 double quote or ASCII 0x27 single quote), used by most programming languages. To be able to include special characters such as the quotation mark itself, newline characters, or non-printable characters, escape sequences are often available, usually prefixed with the backslash character (ASCII 0x5C).
      • Terminated by a newline sequence, for example in Windows INI files.

2020c

  • (Wikipedia, 2020c) ⇒ https://en.wikipedia.org/wiki/C_string_handling Retrieved:2020-2-23.
    • The C programming language has a set of functions implementing operations on strings (character strings and byte strings) in its standard library. Various operations, such as copying, concatenation, tokenization and searching are supported. For character strings, the standard library uses the convention that strings are null-terminated: a string of characters is represented as an array of n + 1 elements, the last of which is a "NUL" character.

      The only support for strings in the programming language proper is that the compiler translates quoted string constants into null-terminated strings.

2020d

2020e

2020f

2007

2004