ModelCheckTextBudget

The shared text policy for display tables and IDE SARIF.

Types

Link copied to clipboard
Link copied to clipboard
class Text

A fresh instance also records the longest original value in each reducible column.

Properties

Link copied to clipboard
const val MAX_BYTES: Long
Link copied to clipboard
const val SHORT_TEXT_LENGTH: Int = 256
Link copied to clipboard

Functions

Link copied to clipboard
fun shorten(value: String, limit: Int): String
Link copied to clipboard
Link copied to clipboard
fun write(output: Writer, label: String, maxBytes: Long = MAX_BYTES, render: (ModelCheckTextBudget.Text, Writer) -> Unit)

Measures a replayable renderer without retaining its output. Reduce Correction before Message, keeping the longest common prefix that fits. The renderer keeps identities, classifications and all rows intact.

Generated with STIG