Below are the specifications of text editors:
- Contains (text, value) assembler
- startsWith (text, value) assembler
- endsWith fitter (text, value) assembler
- substring (text, startIndex) assembler
- substring (text, startIndex, length) assembler
- Replace (text, oldText, newText) assembler
Contains (text, value) assembler
Checks if the item/module has the value informed
EXAMPLE: contains($REFERENCE(TEST)$, crossbar)
In this case, if the Test reference has a value equal to Crossbar, this assembler returns the True value, otherwise, it returns the False value.
startsWith (text, value) assembler
Tests whether the variable starts with a specific value
EXAMPLE: startWith($REFERENCE(TEST)$, cros)
In this case, if the Test reference starts with the value equal to the crossbar. This fitter returns the True value, otherwise, it returns the False value
endsWith (text, value) assembler
Tests whether the variable ends with a specific value
EXAMPLE: endsWith($REFERENCE(TEST)$, bar)
In this case, if the Test reference ends with the value equal to bar, this assembler returns the True value, otherwise, it returns the False value
substring (text, startIndex) assembler
Remove cuts the given index of a string
EXAMPLE: Substring($REFERENCE(TEST)$, 3)
In the case, if the test reference has the crossbar value when applying the applied substring assembler, the returned value would be “ssbar”.
substring (text, startIndex, lenght) assembler
Determines the start character and the end character (3 + 3)
EXAMPLE: Substring($REFERENCE(TEST)$, 3,3)
In this case, if the test reference has the value equal to Crossbar, the value returned when applying the Substring assembler will be seen, since it starts counting in character 3 plus 2 characters counting from the first.
length (text) assembler
Returns the number of characters that a given string has.
EXAMPLE: length($REFERENCE(TEST)$)
In this case, the value if the test reference has the value equal to the crossbar, the value returned in this assembler will be 8
replace (text, oldText, newText) assembler
Search the old text and exchange it for the informed value.
EXAMPLE: replace($REFERENCE(TEST)$, crossbar, batten)
In this case, if the value of the test reference returns the crossbar value, that value will be replaced by the batten value.