Lines Matching refs:str
69 pub fn from_string(str: &String) -> Option<RedirectTarget> { in from_string()
70 if str.starts_with("&") { in from_string()
71 if let Ok(fd) = str.split_at(1).1.parse::<i32>() { in from_string()
77 Some(RedirectTarget::File(str.clone())) in from_string()
89 pub fn from_string(str: &String) -> Option<RedirectMode> { in from_string()
90 match str.as_str() { in from_string()
108 ParseError::UnexpectedInput(str) => eprintln!("Unexpected input: \"{str}\""), in handle()
109 ParseError::UnsupportedToken(str) => eprintln!("Unsupported token: \"{str}\""), in handle()
110 ParseError::UnexpectedToken(str) => eprintln!("Unexpected token: \"{str}\""), in handle()
118 fn parse_env(str: &str) -> String { in parse_env()
119 std::env::var(str).unwrap_or(String::new()) in parse_env()
122 fn lexer(input: &str) -> Result<Vec<Token>, ParseError> { in lexer()
268 pub fn parse(input: &str) -> Result<Vec<Pipeline>, ParseError> { in parse()