japhonex 0.1.1

Japanese phone number checker for Rust
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 2 items with examples
  • Size
  • Source code size: 5.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 351.69 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • tknf/japhonex-rust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mast1ff

Japhonex Rust

Japanese phone number checker for Rust.

Installation

[dependencies]
japhonex = "0.1"

Usage

In your Go app you can do something like:

extern crate japhonex;
use japhonex::japhonex;
use japhonex::HyphenCheck;

fn main () {
    let r = japhonex(HyphenCheck::Optional);

    r.is_match("<your input>");
}

Hyphen validation patterns

Optional

let r = japhonex(HyphenCheck::Optional);
// 0xx-xxxx-xxxx or 0xxxxxxxxxx

Required

let r = japhonex(HyphenCheck::Required);
// 0xx-xxxx-xxxx

No hyphen

let r = japhonex(HyphenCheck::NoCheck);
// 0xxxxxxxxxx

Licence

MIT