Copyright ® (1999-2008) EDMGROUP Pty Ltd - EZY Prolog Reference

 substring

[This is preliminary specification and subject to change.]

Group

Prolog predicates  (more...)

Type

determ

Syntax

substring( STRING INPUT, INTEGER START, INTEGER NBYTES, STRING RESULT)

Flow patterns

(i,i,i,o)

 

Description:

Return part of string
Remarks

The first character in Source has position 1. It is an error to address outside the string, except that it is not an error to ask for 0 characters at the extreme end of it.

Sample:

No sample

Copyright © 1997-2013 EDMGROUP (Australia)