MinMaxLengthDocumentFilter

class MinMaxLengthDocumentFilter(val minLength: Int, maxLength: Int) : MaxLengthDocumentFilter(source)

Similar to MaxLengthDocumentFilter, but the length cannot go below minLength either.

Parameters

minLength

the minimum allowable length of the document; if the length is initially below this value, any progress made towards this value is accepted but cannot be undone

maxLength

the maximum allowable length of the document

Constructors

Link copied to clipboard
constructor(minLength: Int, maxLength: Int)

Properties

Link copied to clipboard
private val minLength: Int

Functions

Link copied to clipboard
open override fun remove(fb: DocumentFilter.FilterBypass, offset: Int, length: Int)

Removes length characters starting at offset from the document, using fb to bypass recursively invoking the filter.