-
Notifications
You must be signed in to change notification settings - Fork 0
StringUtils Module
syeyoung edited this page Jul 16, 2020
·
1 revision
StringUtils module contains few string related blocks in operators tab and few user-defined functions.
StringUtils module can be imported via
Require "StringUtils";
StringUtils::subString(string: Text, start: Text, end: Text) : get substring of string from start to end.
StringUtils::subString("applemango",3,6) returns "lem"
StringUtils::contains(string: Text, search: Text) : check if string contains search does not check the case of string because that's how scratch
works(Expression only)
StringUtils::getLengthOf(string: Text) : get length of string (Expression only)
StringUtils::indexOf(string: Text, find: Text) : index of find in string.
StringUtils::getLetterOf(string: Text, index: Text) : get indexth letter of string (Expression only)
N/A