String

String -- the class of all strings.

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

     i1 = "abcd"
     
     o1 = "abcd"
     

Newline characters can be included. There are escape sequences which make it possible to enter special characters:

             \n             newline
             \f             form feed
             \\             \ 
             \"             "
             \t             tab
             \xxx           ascii character with octal value xxx

Operations on strings:

  • s#i -- getting a character from a string
  • s|t -- concatenation
  • ascii -- ASCII conversion
  • substring -- substring extraction
  • concatenate -- concatenation
  • characters -- extraction of characters
  • # -- length of a string
  • stringlen -- length of a generalized string
  • transnet -- convert integers into network order
  • match -- match patterns
  • See also Net.

    Go to main index.

    Go to concepts index.