Checking the first character of a string in Icon |
|
You can check to see if a given string starts with a particular
character or type of character using the Icon function
``any ( c, s )''.
any()'' function succeeds and produces the
position after the matched character, which will be 2 in this case
(the position of the second character).
any()'' function fails.
|
John Shipman, john@nmt.edu
Last updated: 1996/10/29 23:55:10 UT URL: http://www.nmt.edu/tcc/help/lang/icon/any.html |
|