Method Next
Next(Int32)
Advances the iterator either forward or backward the specified number of steps. Negative values move backward, and positive values move forward. This is equivalent to repeatedly calling Next() or Previous().
Declaration
public override int Next(int n)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | The number of steps to move. The sign indicates the direction (negative is backwards, and positive is forwards). |
Returns
Type | Description |
---|---|
System.Int32 | The character offset of the boundary position n boundaries away from the current one. |
Overrides
Next()
Advances the iterator to the next boundary position.
Declaration
public override int Next()
Returns
Type | Description |
---|---|
System.Int32 | The position of the first boundary after this one. |