-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parse all steps with generic parser (#43)
- Loading branch information
Showing
213 changed files
with
1,517 additions
and
1,550 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use quick_xml::escape::unescape; | ||
use quick_xml::events::{BytesStart, Event}; | ||
use quick_xml::Reader; | ||
|
||
use crate::utils::attributes::get_attribute; | ||
|
||
#[derive(Debug, Default)] | ||
pub struct Comment {} | ||
|
||
impl Comment { | ||
pub fn from_xml(reader: &mut Reader<&[u8]>, _: &BytesStart) -> Result<String, String> { | ||
let mut depth = 1; | ||
let mut comment = String::new(); | ||
let mut buf: Vec<u8> = Vec::new(); | ||
loop { | ||
match reader.read_event_into(&mut buf) { | ||
Err(_) => continue, | ||
Ok(Event::Start(e)) => { | ||
depth += 1; | ||
|
||
if e.name().as_ref() == b"Comment" { | ||
comment = get_attribute(&e, "value").unwrap_or_default(); | ||
}; | ||
} | ||
Ok(Event::End(_)) => { | ||
depth -= 1; | ||
if depth == 0 { | ||
break; | ||
} | ||
} | ||
_ => {} | ||
} | ||
buf.clear(); | ||
} | ||
|
||
Ok(unescape(&comment).unwrap().to_string()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
pub struct CommitRecordRequestsOptions; | ||
|
||
#[allow(dead_code)] | ||
impl CommitRecordRequestsOptions { | ||
pub const WITH_DIALOG: u32 = 128; | ||
pub const SKIP_DATA_ENTRY_VALIDATION: u32 = 256; | ||
pub const OVERRIDE_ESS_LOCKING_CONFLICTS: u32 = 512; | ||
} | ||
|
||
pub struct RefreshWindowOptions; | ||
#[allow(dead_code)] | ||
impl RefreshWindowOptions { | ||
pub const FLUSH_CACHED_JOIN_RESULTS: u32 = 256; | ||
pub const FLUSH_CACHED_EXTERNAL_DATA: u32 = 512; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.