is_escape

Crates.iois_escape
lib.rsis_escape
version0.1.1
created_at2025-08-08 09:06:02.894064+00
updated_at2025-08-08 09:06:02.894064+00
descriptionis_escape
homepagehttps://github.com/i18n-site/rust/tree/dev/is_escape
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1786462
size17,648
i18n.site (i18nsite)

documentation

README

is_escape

pub fn is_escape(md: &str) -> bool {
  let mut n = 0;
  let mut iter = md.chars().rev();
  while let Some('\\') = iter.next() {
    n += 1;
  }
  n % 2 != 0
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Commit count: 68

cargo fmt