Maptitude GISDK Help |
Extracts one word from a string.
Added negative position and optional delimiter in Version 6.0/2012.
w = Word(string str, integer pos, optional string delim)
Argument |
Contents |
str |
Any string |
pos |
The position of the word to be returned; negative value searches from the end |
delim |
An optional string of delimiter characters |
A string that is a substring of str that corresponds to the specified word.
If pos is negative then the words are counted from the end of the string.
Words are separated by spaces, tabs, and punctuation marks, and optionally any characters in delim.
Word("the quick brown fox", 2) // returns "quick"
Word("the quick brown fox", 5) // returns null
Word("the quick brown fox", 1) // returns "the"
Word("the quick brown fox", -1) // returns "fox"
Word("the#quick#brown#fox", -2, "#") // returns "brown"
Function |
Summary |
Compares two strings to see if they match |
|
Returns a concatenated string separated by the delimiter |
|
Divides a string into pieces separated by vertical bars (|) |
|
Divides a string into pieces separated by the specified delimiters |
|
Extracts a portion of a string |
©2025 Caliper Corporation | www.caliper.com |