Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/CUTF8StringView
Description
Convert index and span count that may be relative (negative) to the length of the string to direct index and span. Assert if the index is out of bounds.
| Name | InputByteIdxSpan |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/UTF8StringView.h |
| Include Path | #include "uLang/Common/Text/UTF8StringView.h" |
bool InputByteIdxSpan
(
int32_t & InOutIdx,
int32_t & InOutSpan
) const
: true if there is a valid span of characters and false if the span or string is empty
Parameters
| Name | Remarks |
|---|---|
| InOutIdx - index to convert. If negative it is relative to the end of the string -1=last char, -2=second to last char, etc. |