Ui::getTextSubstringSlice
Returns a substring that is between two specified positions. The length of the string will be calculated using (endPosition - startPosition).
Example:
// Get 'STRING' text from 'MY_STRING'
subStr = UI::_GET_TEXT_SUBSTRING_SLICE('MY_STRING', 3, 9);
// Overflows are possibly replaced with underscores (needs verification)
subStr = UI::_GET_TEXT_SUBSTRING_SLICE('MY_STRING', 3, 10); // 'STRING_'?
Syntax
ui.getTextSubstringSlice(text, startPosition, endPosition);
Required Arguments
- text: String
- startPosition: int
- endPosition: int
Return value
- String
Example
todo