Parsoid
A bidirectional parser between wikitext and HTML5
|
Logger backend for linter. More...
Public Member Functions | |
__construct (Env $env) | |
logLintOutput () | |
Static Public Member Functions | |
static | convertDSROffsets (Env $env, array &$lints, string $from='byte', string $to='ucs2') |
Convert DSR offsets in collected lints. | |
Logger backend for linter.
This backend filters out logging messages with Logtype "lint/*" and logs them (console, external service).
|
static |
Convert DSR offsets in collected lints.
Linter offsets should always be ucs2 if the lint viewer is client-side JavaScript. But, added conversion args in case callers wants some other conversion for other use cases.
Env | $env | |
array | &$lints | |
('byte'|'ucs2'|'char') | $from | |
('byte'|'ucs2'|'char') | $to |