next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc > The Macaulay2 language > strings and nets > String

String -- the class of all strings

Description

A string is thing that contains a sequence of characters (bytes). A string is normally entered as a sequence of characters surrounded by quotation marks.

i1 : "abcd"

o1 = abcd

Strings involving special characters can be entered by using the backslash as an escape character, see ". For an alternate method of entering strings with fewer escape sequences, see ///.

A net is a two-dimensional array of characters, and strings are regarded as a type of net.

Functions and methods returning a string :

Methods that use a string :

Fixed objects of class String :

For the programmer

The object String is a type, with ancestor classes Net < Thing.