jmlparser-parent
Toggle table of contents
3.28.2-J8.0-K13.5-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
jmlparser-parent
utils
/
io.github.jmltoolkit.utils
/
LineColumnIndex
Line
Column
Index
class
LineColumnIndex
(
content
:
String
)
(
source
)
The index is 1-based. The first character also begins in line 1 and column 1.
Author
Alexander Weigl
Members
Constructors
Line
Column
Index
Link copied to clipboard
constructor
(
content
:
String
)
Properties
line
Offsets
Link copied to clipboard
var
lineOffsets
:
IntArray
Functions
position
To
Offset
Link copied to clipboard
fun
positionToOffset
(
p
:
Position
)
:
Int
fun
positionToOffset
(
line
:
Int
,
column
:
Int
)
:
Int
substring
Link copied to clipboard
fun
substring
(
range
:
Range
)
:
String
fun
substring
(
beginLine
:
Int
,
beginColumn
:
Int
,
endLine
:
Int
,
endColumn
:
Int
)
:
String