зеркало из https://github.com/mozilla/gecko-dev.git
199da14cd0
MozReview-Commit-ID: 7LSWUCyCxkT --HG-- rename : third_party/rust/quote/.cargo-checksum.json => third_party/rust/quote-0.3.15/.cargo-checksum.json rename : third_party/rust/quote/Cargo.toml => third_party/rust/quote-0.3.15/Cargo.toml rename : third_party/rust/syn/LICENSE-MIT => third_party/rust/quote-0.3.15/LICENSE-MIT rename : third_party/rust/quote/README.md => third_party/rust/quote-0.3.15/README.md rename : third_party/rust/quote/src/ident.rs => third_party/rust/quote-0.3.15/src/ident.rs rename : third_party/rust/quote/src/lib.rs => third_party/rust/quote-0.3.15/src/lib.rs rename : third_party/rust/quote/src/to_tokens.rs => third_party/rust/quote-0.3.15/src/to_tokens.rs rename : third_party/rust/quote/src/tokens.rs => third_party/rust/quote-0.3.15/src/tokens.rs rename : third_party/rust/quote/tests/test.rs => third_party/rust/quote-0.3.15/tests/test.rs rename : third_party/rust/syn/.cargo-checksum.json => third_party/rust/syn-0.11.11/.cargo-checksum.json rename : third_party/rust/syn/Cargo.toml => third_party/rust/syn-0.11.11/Cargo.toml rename : third_party/rust/syn/LICENSE-MIT => third_party/rust/syn-0.11.11/LICENSE-MIT rename : third_party/rust/syn/README.md => third_party/rust/syn-0.11.11/README.md rename : third_party/rust/syn/src/aster/generics.rs => third_party/rust/syn-0.11.11/src/aster/generics.rs rename : third_party/rust/syn/src/aster/ident.rs => third_party/rust/syn-0.11.11/src/aster/ident.rs rename : third_party/rust/syn/src/aster/invoke.rs => third_party/rust/syn-0.11.11/src/aster/invoke.rs rename : third_party/rust/syn/src/aster/lifetime.rs => third_party/rust/syn-0.11.11/src/aster/lifetime.rs rename : third_party/rust/syn/src/aster/mod.rs => third_party/rust/syn-0.11.11/src/aster/mod.rs rename : third_party/rust/syn/src/aster/path.rs => third_party/rust/syn-0.11.11/src/aster/path.rs rename : third_party/rust/syn/src/aster/qpath.rs => third_party/rust/syn-0.11.11/src/aster/qpath.rs rename : third_party/rust/syn/src/aster/ty.rs => third_party/rust/syn-0.11.11/src/aster/ty.rs rename : third_party/rust/syn/src/aster/ty_param.rs => third_party/rust/syn-0.11.11/src/aster/ty_param.rs rename : third_party/rust/syn/src/aster/where_predicate.rs => third_party/rust/syn-0.11.11/src/aster/where_predicate.rs rename : third_party/rust/syn/src/attr.rs => third_party/rust/syn-0.11.11/src/attr.rs rename : third_party/rust/syn/src/constant.rs => third_party/rust/syn-0.11.11/src/constant.rs rename : third_party/rust/syn/src/data.rs => third_party/rust/syn-0.11.11/src/data.rs rename : third_party/rust/syn/src/derive.rs => third_party/rust/syn-0.11.11/src/derive.rs rename : third_party/rust/syn/src/escape.rs => third_party/rust/syn-0.11.11/src/escape.rs rename : third_party/rust/syn/src/expr.rs => third_party/rust/syn-0.11.11/src/expr.rs rename : third_party/rust/syn/src/fold.rs => third_party/rust/syn-0.11.11/src/fold.rs rename : third_party/rust/syn/src/generics.rs => third_party/rust/syn-0.11.11/src/generics.rs rename : third_party/rust/syn/src/ident.rs => third_party/rust/syn-0.11.11/src/ident.rs rename : third_party/rust/syn/src/item.rs => third_party/rust/syn-0.11.11/src/item.rs rename : third_party/rust/syn/src/krate.rs => third_party/rust/syn-0.11.11/src/krate.rs rename : third_party/rust/syn/src/lib.rs => third_party/rust/syn-0.11.11/src/lib.rs rename : third_party/rust/syn/src/lit.rs => third_party/rust/syn-0.11.11/src/lit.rs rename : third_party/rust/syn/src/mac.rs => third_party/rust/syn-0.11.11/src/mac.rs rename : third_party/rust/syn/src/op.rs => third_party/rust/syn-0.11.11/src/op.rs rename : third_party/rust/syn/src/ty.rs => third_party/rust/syn-0.11.11/src/ty.rs rename : third_party/rust/syn/src/visit.rs => third_party/rust/syn-0.11.11/src/visit.rs rename : third_party/rust/unicode-xid/.cargo-checksum.json => third_party/rust/unicode-xid-0.0.4/.cargo-checksum.json rename : third_party/rust/unicode-xid/Cargo.toml => third_party/rust/unicode-xid-0.0.4/Cargo.toml |
||
---|---|---|
.. | ||
scripts | ||
src | ||
.cargo-checksum.json | ||
.travis.yml | ||
COPYRIGHT | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
unicode-xid
Determine if a char
is a valid identifier for a parser and/or lexer according to
Unicode Standard Annex #31 rules.
extern crate unicode_xid;
use unicode_xid::UnicodeXID;
fn main() {
let ch = 'a';
println!("Is {} a valid start of an identifier? {}", ch, UnicodeXID::is_xid_start(ch));
}
features
unicode-xid supports a no_std
feature. This eliminates dependence
on std, and instead uses equivalent functions from core.
crates.io
You can use this package in your project by adding the following
to your Cargo.toml
:
[dependencies]
unicode-xid = "0.0.4"