build: reinit projects

上级 a9e7d507
pub mod scie_scanner;
pub mod scie_onig;
pub mod scie_error;
pub mod old;
pub mod onig_scanner;
pub mod onig_string;
......
......@@ -7,8 +7,8 @@ pub struct OnigScanner {
impl OnigScanner {
pub fn new(pattens: Vec<&str>) -> Self {
let strPtrsArr: Vec<Pointer> = vec![];
let strLenArr: Vec<i32> = vec![];
let str_ptrs_arr: Vec<Pointer> = vec![];
let str_len_arr: Vec<i32> = vec![];
for x in pattens {
}
......
pub struct OnigString {
pub utf16length: i32,
pub utf8length: i32,
pub utf16value: String,
pub utf8value: Vec<u8>,
pub utf16offset_to_utf8: Option<Vec<u32>>,
pub utf8offset_to_utf16: Option<Vec<u32>>,
}
impl OnigString {
pub fn new() -> Self {
OnigString {}
pub fn new(str: String) -> Self {
let utf16Length = str.len();
OnigString {
utf16length: 0,
utf8length: 0,
utf16value: "".to_string(),
utf8value: vec![],
utf16offset_to_utf8: None,
utf8offset_to_utf16: None
}
}
}
#[cfg(test)]
mod tests {
use crate::scanner::onig_scanner::OnigScanner;
use crate::scanner::onig_string::OnigString;
#[test]
fn it_show_works_works() {
OnigString::new(String::from(""));
assert!(true)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册