TextHelper Block

Modified: 2008/01/26 20:00 by Andy Sterland - Categorized as: Popfly Blocks
Provides simple operations for manipulating text.

Edit

Operations

Edit

getSubstring

Returns a portion of the input text, given a position and length.

Inputs

NameDescription
textThe input text.
startIndexThe position of the first character of the destination string.
lengthThe length of the destination string, if you don't want it to go to the end of the input string.

Outputs

Name
string

Edit

append

Returns a string that's the result of appending the second string to the first string.

Inputs

NameDescription
firstThe input leading text.
secondThe input trailing string.

Outputs

Name
string

Edit

skipFirstCharacters

Chops the specified number of characters off of the input text.

Inputs

NameDescription
textThe input text.
skipCountThe number of characters to skip.

Outputs

Name
string

Edit

split

Returns an array of the substrings separated by a given separator.

Inputs

NameDescription
textThe input text.
separatorThe text used to delimit the substrings.

Outputs

Name
string


Edit

Objects

Details about type definitions can be found on the Block Metadata Type System page.

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.