_GET_TEXT_SUBSTRING_SLICE
Docslocal retval = GetTextSubstringSlice(text, startPosition, endPosition)Description
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 = HUD::_GET_TEXT_SUBSTRING_SLICE("MY_STRING", 3, 9);
// Overflows are possibly replaced with underscores (needs verification)
subStr = HUD::_GET_TEXT_SUBSTRING_SLICE("MY_STRING", 3, 10); // "STRING_"?
Parameters
| Name | Type | Description |
|---|---|---|
text | char* | — |
startPosition | int | — |
endPosition | int | — |
Returns
char*