KetexFragment

abstract class KetexFragment

Constructors

Link copied to clipboard
fun KetexFragment()

Functions

Link copied to clipboard
fun add(group: KetexGroup)
fun add(set: KetexSet)
fun add(token: KetexToken)

fun add(str: String, escape: Boolean = true)

Append a raw string of characters to the regex.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
operator fun KetexGroup.unaryPlus()

Append a regex group to the regex.

operator fun KetexSet.unaryPlus()

Append a character set to match in the regex.

operator fun KetexToken.unaryPlus()

Append a custom regex token to match in the regex. DOES NOT escape metacharacters.

operator fun Char.unaryPlus()

Append a single character to match in the regex. This function escapes the char before appending it to the regex, so it cannot add metacharacters.

operator fun String.unaryPlus()

Append a string of characters to match in the regex. This function escapes the string before appending it to the regex, so it cannot add metacharacters.

open operator fun CharRange.unaryPlus()

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard