Download user manual - Parse-O

Transcript
P A R S E - O - M A T I C
C O M M A N D S
U S E R
M A N U A L
—
D E C A P S U L A T O R
Decapsulator Commands
Overview
This section documents the specific decapsulator commands. For a broader overview
of decapsulators, please see the Decapsulators section of this user manual.
Insert
Format
Examples
Purpose
Parameters
Controls
Defaults
Similar Cmds
Notes
Insert v1 d2 v3 [v4]
Insert Var '10' 'Cat'
; Insert 'Cat' at column 10
Insert Var '-1' 'X'
; Insert 'X' before last char
Insert Var '>*A' 'Y'
; Insert 'Y' before last 'A'
Insert Var 'B' 'Z' 'Exclude' ; Insert 'Z' after first
'B'
Inserts v3 into v1 at the position determined by d2
v1 - Variable being modified
d2 - Decapsulator
v3 - Value to insert at the position found by v2
v4 - Decapsulator control settings
Exclude/Include; IgnoreCase/MatchCase
v4 = 'Include MatchCase' ("Include‖ means ―insert
before”)
Change, Overlay
If decapsulator d2 is not found, nothing is done.
Sets $Success ('Y' = decapsulator value was found).
Overlay
Format
Examples
Purpose
Parameters
Controls
Defaults
Similar Cmds
Notes
Overlay v1 d2 v3 [v4]
Overlay MyVar '10' 'Cat' ; Overlay 'Cat' at column 10
Overlay MyVar '<*A' 'X'
; Overlay first 'A' with 'X'
Overlay MyVar '3*B' 'Y'
; Overlay third 'B' with 'Y'
Overlay MyVar '>*C' 'Z'
; Overlay last 'C' with 'Z'
Overwrites v1 with v3 at the position determined by d2
v1 - Variable being modified
d2 - Decapsulator
v3 - Value to overwrite at the position found by v2
v4 - Decapsulator control settings
Exclude/Include; IgnoreCase/MatchCase
v4 = 'Include MatchCase'
Change, Insert
If decapsulator d2 is not found, nothing is done.
If necessary, v1 will be lengthened to make room for
v3.
Sets $Success ('Y' = decapsulator was found).
82