From 61a8a28f9ff10aed41b1ee5c58df827db6b87d7c Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 13 Oct 2014 13:51:43 +0100 Subject: Include the Unicode version used to generate `src/libunicode/tables.rs`. --- src/libunicode/lib.rs | 1 + src/libunicode/tables.rs | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src/libunicode') diff --git a/src/libunicode/lib.rs b/src/libunicode/lib.rs index 2918bad03df..b84aec77a09 100644 --- a/src/libunicode/lib.rs +++ b/src/libunicode/lib.rs @@ -64,6 +64,7 @@ pub mod char { pub use normalize::{decompose_canonical, decompose_compatible, compose}; pub use tables::normalization::canonical_combining_class; + pub use tables::UNICODE_VERSION; pub use u_char::{is_alphabetic, is_XID_start, is_XID_continue}; pub use u_char::{is_lowercase, is_uppercase, is_whitespace}; diff --git a/src/libunicode/tables.rs b/src/libunicode/tables.rs index e359883295f..3f15abcad6d 100644 --- a/src/libunicode/tables.rs +++ b/src/libunicode/tables.rs @@ -12,6 +12,10 @@ #![allow(missing_doc, non_uppercase_statics, non_snake_case)] +/// The version of [Unicode](http://www.unicode.org/) +/// that the `UnicodeChar` and `UnicodeStrSlice` traits are based on. +pub const UNICODE_VERSION: (uint, uint, uint) = (7, 0, 0); + fn bsearch_range_table(c: char, r: &'static [(char,char)]) -> bool { use core::cmp::{Equal, Less, Greater}; use core::slice::ImmutableSlice; -- cgit 1.4.1-3-g733a5