File: character.rs

package info (click to toggle)
rust-unicode-names2 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,356 kB
  • sloc: python: 192; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;

fn main() {
    let mut arguments = env::args().into_iter();
    arguments.next(); // Executable name
    for argument in arguments {
        match unicode_names2::character(&argument) {
            Some(c) => println!("{}", c),
            None => println!("{}: no such character", argument),
        }
    }
}