We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30af6ad commit ccdfd9cCopy full SHA for ccdfd9c
crates/aio-translator/src/lib.rs
@@ -30,6 +30,7 @@ pub use aio_translator_whatlang::WhatLangDetector;
30
pub use aio_translator_youdao::YoudaoTranslator;
31
pub use ct2rs::ComputeType;
32
pub use style_transfer::StyleTransfer;
33
+pub use style_transfer::is_valuable_text;
34
35
#[cfg(test)]
36
mod tests {
crates/aio-translator/src/style_transfer.rs
@@ -242,7 +242,7 @@ fn is_control(ch: char) -> bool {
242
)
243
}
244
245
-fn is_valuable_text(text: &str) -> bool {
+pub fn is_valuable_text(text: &str) -> bool {
246
text.chars().any(|v| is_valuable_char(v))
247
248
0 commit comments