Skip to main content

Module util

Module util 

Source
Expand description

Small helpers shared by core and first-party plugins, so each rule has one implementation.

Functions§

parse_cell
Parse a cell reference (B12, $B$12) into zero-based (row, col). $ may only appear directly before the column letters and before the row number.
percent_encode
Percent-encode everything except RFC 3986 unreserved characters and, if keep_slash, /.
scaled_decimal
Parse decimal text ("-12.30") into an integer scaled by 10^scale for an Arrow decimal. Negative scales are allowed ("1200" at scale -2 is 12). Digits that the scale would drop must be zero: a value that doesn’t fit the scale is an error, never silently cut.
summarize
One line, at most max characters, for quoting SQL in messages.