|
     
-
DH_LeftString:
Given a text string and a length n, outputs the string's n leftmost
characters.
-
DH_RightString:
Given a text string and a length n, outputs the string's n rightmost
characters.
-
DH_SubString:
Given a text string, a start position s, and a length n, outputs n
characters from the string starting at position s.
-
DH_StringCompare:
Given 2 text strings, sets Bool outputs to indicate if the first string
equals the second, or if unequal, which string sorts before the other. By
default, the comparison is case-sensitive. To compare without regard to
case, set the Case Insensitive input to TRUE. The output pins are
interpreted as follows:
Text 1 < Text 2 - TRUE if Text 1 sorts before Text 2,
otherwise FALSE.
Text 1 = Text 2 - TRUE if Text 1 equals Text 2, otherwise
FALSE.
Text 1 > Text 2 - TRUE if Text 1 sorts after Text 2,
otherwise FALSE.
As with the Numeric
Comparison Modules, these Boolean outputs can be combined using the DH
Boolean Logic modules, and used to trigger actions by connecting them to
DH_BoolToFloat or DH_BoolToVoltage modules.
-
DH_StringSearch:
Given 2 text strings and a start position s, searches for an occurrence
of the second string in the first, starting at position s in the first
string. Outputs the position at which the search string was found, or -1 if
it was not found. By default, searches left to right. To search right to
left, set the Right to Left input to TRUE.
-
DH_StringLength:
Given a text string, outputs the number of characters it contains.
Notes:
String positions are always indexed from 0 as the first
character of the string. The position of the last character of the string is
1 less than the string's length.
top |
Next |