refactor: refactor project dirs

上级 2458ced3
pub mod scie_scanner;
pub mod scie_onig;
pub mod scie_error;
pub mod onig_scanner;
pub mod onig_string;
pub mod utf_string;
......@@ -21,6 +21,9 @@ pub struct ScieOnig {
}
impl ScieOnig {
pub fn new(pattern: &str) -> Result<Self, ScieOnigError> {
}
pub fn demo_new(pattern: &str) -> Result<Self, ScieOnigError> {
let option = ScieOnigOptions::REGEX_OPTION_NONE;
let syntax = Syntax::default();
......
pub type Pointer = i32;
pub struct OnigScanner {
pub _ptr: Pointer
}
impl OnigScanner {
pub fn new(pattens: Vec<&str>) -> Self {
let strPtrsArr: Vec<Pointer> = vec![];
let strLenArr: Vec<i32> = vec![];
for x in pattens {
}
OnigScanner { _ptr: 0 }
}
}
#[cfg(test)]
mod tests {
use crate::scanner::onig_scanner::OnigScanner;
#[test]
fn it_show_works_works() {
OnigScanner::new(vec!["^"]);
assert!(true)
}
}
pub struct OnigString {
}
impl OnigString {
pub fn new() -> Self {
OnigString {}
}
}
pub struct UtfString {
}
impl UtfString {
pub fn new() -> Self {
UtfString {}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册