StringLine Struct
A struct representing a text line.
public struct StringLineConstructors
| Name | Description |
|---|---|
| StringLine(StringSlice, int, int, int, NewLine) | Initializes a new instance of the StringLine struct. |
| StringLine(StringSlice) | Initializes a new instance of the StringLine struct. |
| StringLine(StringSlice, int, int, int, NewLine) | Initializes a new instance of the StringLine struct. |
StringLine overloads
StringLine(StringSlice, int, int, int, NewLine)
StringLine.csInitializes a new instance of the StringLine struct.
public StringLine(StringSlice slice, int line, int column, int position, NewLine newLine)Parameters
sliceStringSlice- The slice.
lineint- The line.
columnint- The column.
positionint- The position.
newLineNewLine- The line separation.
StringLine(StringSlice)
StringLine.csInitializes a new instance of the StringLine struct.
public StringLine(ref StringSlice slice)Parameters
sliceStringSlice- The slice.
StringLine(StringSlice, int, int, int, NewLine)
StringLine.csInitializes a new instance of the StringLine struct.
public StringLine(ref StringSlice slice, int line, int column, int position, NewLine newLine)Parameters
sliceStringSlice- The slice.
lineint- The line.
columnint- The column.
positionint- The position.
newLineNewLine- The line separation.
Methods
| Name | Description |
|---|---|
| ToString() | Performs the to string operation. |
ToString()
StringLine.csOperators
| Name | Description |
|---|---|
| implicit operator StringSlice(StringLine) | Performs an implicit conversion from StringLine to StringSlice. |
implicit operator StringSlice(StringLine)
StringLine.csPerforms an implicit conversion from StringLine to StringSlice.
public static implicit operator StringSlice(StringLine line)Fields
| Name | Description |
|---|---|
| Column | The column position. |
| Line | The line position. |
| NewLine | The newline. |
| Position | The position of the start of this line within the original source code |
| Slice | The slice used for this line. |
Column
The column position.
public int ColumnLine
The line position.
public int LineNewLine
The newline.
public NewLine NewLinePosition
The position of the start of this line within the original source code
public int PositionSlice
The slice used for this line.
public StringSlice Slice