MCPcopy Create free account
hub / github.com/davidblewett/rure-python / line_number_padding

Method line_number_padding

regex/regex-syntax/src/error.rs:273–279  ·  view source on GitHub ↗

Return the line number padding beginning at the start of each line of the pattern. If the pattern is only one line, then this returns a fixed padding for visual indentation.

(&self)

Source from the content-addressed store, hash-verified

271 /// If the pattern is only one line, then this returns a fixed padding
272 /// for visual indentation.
273 fn line_number_padding(&self) -> usize {
274 if self.line_number_width == 0 {
275 4
276 } else {
277 2 + self.line_number_width
278 }
279 }
280}
281
282fn repeat_char(c: char, count: usize) -> String {

Callers 1

notate_lineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected