extract_strings_from_file

Function extract_strings_from_file 

Source
pub fn extract_strings_from_file(
    file_path: PathBuf,
) -> Result<Vec<ExtractedString>, Box<dyn Error>>
Expand description

快速提取文件中的字符串

§参数

  • file_path - ESP/ESM/ESL文件路径

§返回

返回提取到的字符串列表

§示例

use esp_extractor::extract_strings_from_file;
use std::path::PathBuf;
 
let strings = extract_strings_from_file(PathBuf::from("example.esp"))?;
println!("提取到 {} 个字符串", strings.len());