CssLocation

class CssLocation(pointer: <Error class: unknown class><<Error class: unknown class>>)

Represents a location in a file or other source of data parsed by the CSS engine.

The @bytes and @line_bytes offsets are meant to be used to programmatically match data. The @lines and @line_chars offsets can be used for printing the location in a file.

Note that the @lines parameter starts from 0 and is increased whenever a CSS line break is encountered. (CSS defines the C character sequences "\r\n", "\r", "\n" and "\f" as newlines.) If your document uses different rules for line breaking, you might want run into problems here.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var bytes: <Error class: unknown class>

number of bytes parsed since the beginning

Link copied to clipboard
var chars: <Error class: unknown class>

number of characters parsed since the beginning

Link copied to clipboard
val gtkCssLocationPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var lineBytes: <Error class: unknown class>

Number of bytes parsed since the last line break

Link copied to clipboard
var lineChars: <Error class: unknown class>

Number of characters parsed since the last line break

Link copied to clipboard
var lines: <Error class: unknown class>

number of full lines that have been parsed. If you want to display this as a line number, you need to add 1 to this.