
StringSubstring |
ptolemy.actor.lib.string.StringSubstring |
Output a substring of the string provided at the input. The position of the
substring within the input string is determined by the start and
stop port parameters. Following Java convention, the character at
start is included, but the character at stop is not.
If the stop is less than start, then
the substring starts at start and extends to the end of the
string. The default values for start and stop are
both 0; this results in an empty string at the output.
Author(s): Neil E. Turner and Edward A. Lee
Version:$Id: StringSubstring.java,v 1.14 2005/07/08 19:56:38 cxh Exp $
Pt.Proposed Rating:Green (net)
Pt.Accepted Rating:Green (net)
start
The beginning index of the input string, which is the position of
first character of the desired substring. Its default value is 0,
type int.
stop
The ending index of the input string, which is 1 greater than the
position of last letter of the desired substring. Its default value
is 0, type int.