Initializes a new instance of the StringSegment class.
public StringSegment(string? source)
| parameter | description |
|---|---|
| source | The source string. |
Creates a segment that represents the entire source string.
Initializes a new instance of the StringSegment class.
public StringSegment(string source, Capture capture)
| parameter | description |
|---|---|
| source | The source string. |
| capture | The Capture to represent. |
Initializes a new instance of the StringSegment class.
public StringSegment(string? source, int offset)
| parameter | description |
|---|---|
| source | The source string. |
| offset | The offset of the segment. |
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | The offset is out of range. |
Creates a segment that starts at the specified offset and continues to the end of the source string.
Initializes a new instance of the StringSegment class.
public StringSegment(string? source, int offset, int length)
| parameter | description |
|---|---|
| source | The source string. |
| offset | The offset of the segment. |
| length | The length of the segment. |
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | The offset or length are out of range. |