Strip the surrounding `"..."` from a quoted string directive argument.
(s: &str)
| 58 | ".dword" | ".quad" => parse_u64(rest, constants).map(Self::Dword), |
| 59 | ".asciz" | ".string" => parse_quoted_string(rest).map(Self::Asciz), |
| 60 | ".space" | ".zero" => parse_u64(rest, constants).map(Self::Space), |
| 61 | ".equ" | ".set" => { |
| 62 | let mut parts = rest.splitn(2, ','); |
| 63 | let name = parts.next()?.trim(); |
| 64 | if name.is_empty() |
| 65 | || !name |
| 66 | .chars() |
| 67 | .all(|character| character.is_ascii_alphanumeric() || character == '_') |
| 68 | { |
| 69 | return None; |
| 70 | } |
| 71 | let val: i64 = parts.next()?.trim().parse().ok()?; |
| 72 | Some(Self::Equ(name.to_owned(), val)) |
| 73 | } |
| 74 | _ if [ |
| 75 | ".section", ".text", ".data", ".rodata", ".bss", ".globl", ".global", ".align", |
| 76 | ".balign", ".byte", ".half", ".short", ".word", ".long", ".dword", ".quad", |