Prose.KeyValueFragment

References
public readonly struct Prose.KeyValueFragment

Constructors

KeyValueFragment

#
public KeyValueFragment(string key, int keyStart, string value, int valueStart)
Create a new fragment.
key (string)
keyStart (int)
value (string)
valueStart (int)

Properties

Key

#
public string Key { get; }
Gets the key text of this pair. This string never contains leading or trailing whitespace.

KeyEnd

#
public int KeyEnd { get; }
Gets the character index within the line of the last character of the key string. This will be -1 if there is no key string.

KeyStart

#
public int KeyStart { get; }
Gets the character index within the line of the first character of the key string. This will be -1 if there is no key string.

Value

#
public string Value { get; }
Gets the value text of this pair. This string never contains leading or trailing whitespace.

ValueEnd

#
public int ValueEnd { get; }
Gets the character index within the line of the last character of the value string.

ValueStart

#
public int ValueStart { get; }
Gets the character index within the line of the first character of the value string.