<string-cut>
Purpose/Function
Slices up string into indicated segments, allowing assignment to the environment of each part separately.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
string |
|
required |
string to be operated on |
Elements
TAG |
TYPE |
COUNT |
DESCRIPTION |
---|---|---|---|
|
|
0:N |
description of segment and how to assign it |
See below.
ReturnValues
None.
Examples
<string-cut string="${input.start.date}"> <section start="0" end="4" declare="start.year" /> <section start="4" end="6" declare="start.month" /> <section start="6" end="8" declare="start.day" /> <section start="8" declare="start.hour" /> </string-cut> <string-cut string="${end.date.string}"> <section start="0" end="4" declare="end.year" /> <section start="4" end="6" declare="end.month" /> <section start="6" end="8" declare="end.day" /> <section start="8" declare="end.hour" /> </string-cut>
ncsa.tools.ogrescript.types.CutSection
<search-pair>
Purpose/Function
Describes a section of a string and how to assign it to the environment.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
start |
|
0 |
where to start the section |
end |
|
-1 |
where to end to section |
declare |
|
required, if assign is |
declare variable with this name |
assign |
|
required, if declare is |
assign to variable with this name |
global |
|
false |
assignment is to global frame |
Elements
None.
ReturnValues
None.
Examples
See above.