#unicode-characters #character #name #bad #fetching

sigil

Simple and bad library for fetching unicode character names and some other stuff

3 unstable releases

Uses old Rust 2015

0.2.0 Jan 1, 2017
0.1.1 Dec 5, 2016
0.1.0 Dec 4, 2016

#26 in #bad

Unlicense

1MB
67 lines

Sigil

Simple and bad library for fetching unicode character names and some other stuff.

How to use:

Get information by a name:

extern crate sigil;

assert_eq!(sigil::info_by_name("HUNDRED POINTS SYMBOL").unwrap().character,
    	   '💯');

Get information by a character:

assert_eq!(sigil::info_by_char('💯').unwrap().name,
		   "HUNDRED POINTS SYMBOL".to_string());

Get all unicode stuff as a vector of Characters:

assert_eq!(sigil::raw_unicode_data().get(28695).unwrap().name,
		   "HUNDRED POINTS SYMBOL".to_string());

Dependencies

~1.5MB
~13K SLoC