Substring Found Info
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
Creates a new SubstringFoundInfo object with the specified parameters.
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.
Functions
Link copied to clipboard
Get the element at index in nestedInfos. This is to support a notation for simpler access to nestedInfos.