value · System
StringIterator<T>
public value StringIterator<T : [u8, u16, u32]>
The code units of a string, in order.
- Kind
- value
- Namespace
- System
- Assembly
- System.Core
- Access
- public
- Source file
String.ant
Type parameters
| Name | Constraints |
|---|---|
T | one of u8, u16, u32 |
Constructors
Properties
T Current { get; }
#
Methods
Source
StringIterator<T> as Antril, decompiled from its Larva HIR.
// System.StringIterator — System.Core (decompiled from Larva HIR)
into namespace System
{
/// The code units of a string, in order.
public value StringIterator<T : [u8, u16, u32]>
{
String<T> text;
i32 index;
public:
new(String<T> text)
{
this.text = text;
index = -1;
}
Next() : bool
{
index++;
return index < text.Length;
}
T Current
{
get => text[index];
}
}
}