Home
last modified time | relevance | path

Searched refs:num_start_index (Results 1 – 1 of 1) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/clean/
H A Dutils.rs278 let mut num_start_index = if num_chars.get(0) == Some(&'-') { 1 } else { 0 }; in format_integer_with_underscore_sep() localVariable
279 let chunk_size = match num[num_start_index..].as_bytes() { in format_integer_with_underscore_sep()
281 num_start_index += 2; in format_integer_with_underscore_sep()
285 num_start_index += 2; in format_integer_with_underscore_sep()
286 let remaining_chars = num_chars.len() - num_start_index; in format_integer_with_underscore_sep()
296 num_chars[..num_start_index] in format_integer_with_underscore_sep()
298 .chain(num_chars[num_start_index..].rchunks(chunk_size).rev().intersperse(&['_']).flatten()) in format_integer_with_underscore_sep()