mirror of
https://github.com/rm-dr/daisy
synced 2025-07-05 01:59:30 -07:00
Substitute cleanup
This commit is contained in:
@ -37,8 +37,12 @@ pub fn parse_no_context(s: &String) -> Result<Expression, (LineLocation, ParserE
|
||||
parse(s, &Context::new())
|
||||
}
|
||||
|
||||
pub fn substitute(s: &String) -> String {
|
||||
let (_, s) = substitute_cursor(s, s.chars().count());
|
||||
return s;
|
||||
}
|
||||
|
||||
pub fn substitute(
|
||||
pub fn substitute_cursor(
|
||||
s: &String, // The string to substitute
|
||||
c: usize // Location of the cursor right now
|
||||
) -> (
|
||||
|
Reference in New Issue
Block a user