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

Function repeat_char

regex/regex-syntax/src/error.rs:282–284  ·  view source on GitHub ↗
(c: char, count: usize)

Source from the content-addressed store, hash-verified

280}
281
282fn repeat_char(c: char, count: usize) -> String {
283 ::std::iter::repeat(c).take(count).collect()
284}
285
286#[cfg(test)]
287mod tests {

Callers 2

fmtMethod · 0.85
left_pad_line_numberMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected