Skip to main content

extract_identifier

Function extract_identifier 

Source
pub fn extract_identifier(s: &str) -> (String, &str)
Expand description

Extract an identifier (possibly quoted with " or `) from the start of s. Returns (identifier, rest_of_string).

Doubled quotes inside double-quoted identifiers are treated as an escaped quote character (e.g. "col""name"col"name).