SubstringFoundInfo

data class SubstringFoundInfo(val type: FoundType, val overallRange: IntRange, val contentRange: IntRange, val resumeIndex: Int, val nestedInfos: List<SubstringFoundInfo> = listOf())

Represents information about a found substring.

Constructors

Link copied to clipboard
constructor(type: FoundType, info: SubstringFoundInfo)

Creates a new SubstringFoundInfo object with the specified parameters.

constructor(type: FoundType, overallRange: IntRange, contentRange: IntRange, resumeIndex: Int, nestedInfos: List<SubstringFoundInfo> = listOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The range of the found substring in the actual content. The "actual content" is a range that does not contain format strings (e.g. symbols like #, @, *, etc.).

Link copied to clipboard

The list of nested SubstringFoundInfo objects.

Link copied to clipboard

The range of the found substring in the overall string. The "whole string" is the range that includes the format string (e.g. symbols such as #, @, *, etc.).

Link copied to clipboard

The restart index of the found substring. This index makes it easier to restart searches.

Link copied to clipboard

The type of the found substring.

Functions

Link copied to clipboard
operator fun get(index: ISubIndex): SubstringFoundInfo
operator fun get(index: Int): SubstringFoundInfo

Get the element at index in nestedInfos. This is to support a notation for simpler access to nestedInfos.