(line: &str)
| 485 | s.parse::<i64>().ok() |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | // Split `"rd, rest"` into `(rd_str, rest_str)`. |
| 490 | fn parse_two_fields(operands: &str) -> Option<(&str, &str)> { |
| 491 | let comma = operands.find(',')?; |
| 492 | Some((operands[..comma].trim(), operands[comma + 1..].trim())) |
| 493 | } |
| 494 | |
| 495 | // Parse `"rd, rs"` -> `(rd_reg, rs_reg)`. Used by `mv`. |
no outgoing calls
no test coverage detected