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

String -- the class of all strings

Description

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

i1 : "abcd"

o1 = abcd

For an alternate method of entering strings which does not involve any escape sequences, see ///.

A net is a two-dimensional array of characters, and strings are regarded as a type of net. See 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.