<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

java.lang.String

required

string to be operated on

Elements

TAG

TYPE

COUNT

DESCRIPTION

<section>

ncsa.tools.ogrescript.types.CutSection

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

int

0

where to start the section

end

int

-1

where to end to section

declare

java.lang.String

required, if assign is null

declare variable with this name

assign

java.lang.String

required, if declare is null

assign to variable with this name

global

boolean

false

assignment is to global frame

Elements

None.

ReturnValues

None.

Examples

See above.

  • No labels