Navigation
API > API/Plugins > API/Plugins/ElectraBase
There is a known anomaly in the FString::TConstIterator. It iterates all TCHARs in the string including the terminating zero character. This is not the behaviour we want and setup some helper iterator here which is not including the terminating zero.
| Name | FStringIterator |
| Type | class |
| Header File | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/Utilities/StringHelpers.h |
| Include Path | #include "Utilities/StringHelpers.h" |
Syntax
class FStringIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FStringIterator
(
const FString& InString, |
Utilities/StringHelpers.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Index | int32 | Utilities/StringHelpers.h | ||
| StringToIterate | const FString & | Utilities/StringHelpers.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetIndex() |
Returns an index to the current element. | Utilities/StringHelpers.h | |
const TCHAR * GetRemainder() |
Utilities/StringHelpers.h | ||
int32 GetRemainingLength() |
Utilities/StringHelpers.h | ||
void Reset() |
Resets the iterator to the first element. | Utilities/StringHelpers.h | |
void SetToEnd() |
Sets iterator to the last element. | Utilities/StringHelpers.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FStringIterator operator-
(
int32 Offset |
Utilities/StringHelpers.h | ||
FStringIterator & operator--() |
Moves iterator to the previous element in the container. | Utilities/StringHelpers.h | |
FStringIterator operator--
(
int |
Utilities/StringHelpers.h | ||
operator bool() |
Conversion to "bool" returning true if the iterator has not reached the last element. | Utilities/StringHelpers.h | |
const TCHAR & operator*() |
Utilities/StringHelpers.h | ||
FStringIterator operator+
(
int32 Offset |
Utilities/StringHelpers.h | ||
FStringIterator operator++
(
int |
Utilities/StringHelpers.h | ||
FStringIterator & operator++() |
Advances iterator to the next element in the container. | Utilities/StringHelpers.h | |
FStringIterator & operator+=
(
int32 Offset |
Iterator arithmetic support | Utilities/StringHelpers.h | |
FStringIterator & operator-=
(
int32 Offset |
Utilities/StringHelpers.h | ||
const TCHAR * operator->() |
Utilities/StringHelpers.h |