str_indices 0.3.2

Count and convert between indexing schemes on string slices.
Documentation

Str Indices

Latest Release Documentation

Count and convert between different indexing schemes on utf8 string slices.

The following schemes are currently supported:

  • Chars (or "Unicode scalar values").
  • UTF16 code units.
  • Lines, with three options for recognized line break characters:
    • Line feed only.
    • Line feed and carriage return.
    • All Unicode line break characters, as specified in Unicode Annex #14.

License

This project is licensed under either of

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Str Indices by you will be licensed as above, without any additional terms or conditions.

This crate is no-std, doesn't allocate, and has zero dependencies, and aims to remain that way. Please adhere to this in any submitted contributions.