Crate japanese_codepoints

Crate japanese_codepoints 

Source
Expand description

Japanese Code Points Library

A Rust library for handling Japanese character code points based on JIS standards.

§Features

  • codepoints: Basic ASCII and control characters (default)
  • codepoints-jisx0201: JIS X 0201 character set
  • codepoints-jisx0208: JIS X 0208 character set (without kanji)
  • codepoints-jisx0208kanji: JIS X 0208 kanji characters
  • codepoints-jisx0213kanji: JIS X 0213 extended kanji characters
  • full: All character sets

§Examples

use japanese_codepoints::CodePoints;

// Basic usage
let cp = CodePoints::new(vec![0x3041, 0x3042]); // あ, い
assert!(cp.contains("あ"));
assert!(!cp.contains("う"));
use japanese_codepoints::jisx0208::Hiragana;

let hiragana = Hiragana::new();
assert!(hiragana.contains("あいうえお"));

Re-exports§

pub use codepoints::CodePoints;

Modules§

codepoints
Core code points functionality
data
Data modules for character code points
validation

Macros§

validate_codepoints
Basic macro for validating that a string contains only allowed code points
validate_codepoints_advanced
Advanced macro for validating strings against multiple character sets with various options