Debian Codegraph @

/

debian rust-jetscii 0.5.3-3debian librust-jetscii-dev debian librust-jetscii+benchmarks-dev debian librust-jetscii+default-dev debian librust-jetscii-0-dev debian librust-jetscii-0+benchmarks-dev debian librust-jetscii-0+default-dev debian librust-jetscii-0.5-dev debian librust-jetscii-0.5+benchmarks-dev debian librust-jetscii-0.5+default-dev debian librust-jetscii-0.5.3-dev debian librust-jetscii-0.5.3+benchmarks-dev debian librust-jetscii-0.5.3+default-dev cargo jetscii 0.5.3 debianjsonmakefilemarkdownrustrustrust-c-abishelltomlyaml 24 files · 345 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

Jetscii

A tiny library to efficiently search strings for sets of ASCII characters or byte slices for sets of bytes.

Current Version Documentation

Examples

Searching for a set of ASCII characters

#[macro_use]
extern crate jetscii;

fn main() {
    let part_number = "86-J52:rev1";
    let first = ascii_chars!('-', ':').find(part_number);
    assert_eq!(first, Some(2));
}

Searching for a set of bytes

#[macro_use]
extern crate jetscii;

fn main() {
    let raw_data = [0x00, 0x01, 0x10, 0xFF, 0x42];
    let first = bytes!(0x01, 0x10).find(&raw_data);
    assert_eq!(first, Some(1));
}

Check out the documentation for information about feature flags and benchmarks.

Contributing

  1. Fork it (https://github.com/shepmaster/jetscii/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add a failing test.
  4. Add code to pass the test.
  5. Commit your changes (git commit -am 'Add some feature')
  6. Ensure tests pass.
  7. Push to the branch (git push origin my-new-feature)
  8. Create a new Pull Request
dir .github/
dir debian/
dir proptest-regressions/
dir src/
file .cargo_vcs_info.json
file .gitignore
file CHANGELOG.md
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md
file build.rs