4#include <system/string.h>
5#include <system/details/icu_namespace.h>
10ASPOSECPP_3RD_PARTY_ICU_NAMESPACE_START {
12 ASPOSECPP_3RD_PARTY_CLASS(BreakIterator);
15namespace System {
namespace Globalization {
17class TextElementEnumerator;
39 MEMBER_FUNCTION_MAKE_OBJECT(
TextElementEnumerator, CODEPORTING_ARGS(const
String& str,
int start_index = 0,
bool use_string_aliasing = false), CODEPORTING_ARGS(str, start_index, use_string_aliasing));
50 ASPOSECPP_SHARED_API
int get_ElementIndex() const;
54 ASPOSECPP_SHARED_API
bool MoveNext();
57 ASPOSECPP_SHARED_API
String GetTextElement() const;
59 ASPOSECPP_SHARED_API
void Reset();
76 const int m_start_index;
80 std::unique_ptr<codeporting_icu::BreakIterator> m_break_iterator;
84 int m_element_position;
87 int CurrentIteratorPosition()
const;
90 static void CreateStringAlias(
const String& str,
String& alias,
int start_index);
Splitter to iterate through string parts. Objects of this class should only be allocated using System...
Definition: string_info.h:18
Enumerator to iterate through string elements (characters). Objects of this class should only be allo...
Definition: text_element_enumerator.h:28
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
SharedPtr< TextElementEnumerator > TextElementEnumeratorPtr
TextElementEnumerator pointer type.
Definition: text_element_enumerator.h:19
Definition: db_command.h:9