(neg: bool, sign_flag: u8)
| 328 | } |
| 329 | |
| 330 | fn sign_char(neg: bool, sign_flag: u8) -> Option<char> { |
| 331 | if neg { Some('-') } |
| 332 | else if sign_flag == b'+' { Some('+') } |
| 333 | else if sign_flag == b' ' { Some(' ') } |
| 334 | else { None } |
| 335 | } |
| 336 | |
| 337 | fn pad_numeric(s: &Spec, body: &str) -> String { |
| 338 | let (neg, mag) = if let Some(rest) = body.strip_prefix('-') { (true, rest) } else { (false, body) }; |
no outgoing calls
no test coverage detected