about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/arena.rs2
-rw-r--r--src/libstd/bigint.rs50
-rw-r--r--src/libstd/bitv.rs2
-rw-r--r--src/libstd/cmp.rs2
-rw-r--r--src/libstd/deque.rs2
-rw-r--r--src/libstd/ebml.rs2
-rw-r--r--src/libstd/flatpipes.rs6
-rw-r--r--src/libstd/oldmap.rs2
-rw-r--r--src/libstd/par.rs4
-rw-r--r--src/libstd/rope.rs4
-rw-r--r--src/libstd/sha1.rs14
-rw-r--r--src/libstd/sort.rs6
-rw-r--r--src/libstd/term.rs36
-rw-r--r--src/libstd/test.rs4
-rw-r--r--src/libstd/time.rs6
-rw-r--r--src/libstd/unicode.rs262
16 files changed, 202 insertions, 202 deletions
diff --git a/src/libstd/arena.rs b/src/libstd/arena.rs
index d76438dd89b..a26132d92ca 100644
--- a/src/libstd/arena.rs
+++ b/src/libstd/arena.rs
@@ -68,7 +68,7 @@ pub mod rustrt {
 
 // This probably belongs somewhere else. Needs to be kept in sync with
 // changes to glue...
-const tydesc_drop_glue_index: size_t = 3 as size_t;
+static tydesc_drop_glue_index: size_t = 3 as size_t;
 
 // The way arena uses arrays is really deeply awful. The arrays are
 // allocated, and have capacities reserved, but the fill for the array
diff --git a/src/libstd/bigint.rs b/src/libstd/bigint.rs
index 309925e7cf9..564afea9f08 100644
--- a/src/libstd/bigint.rs
+++ b/src/libstd/bigint.rs
@@ -44,14 +44,14 @@ pub mod BigDigit {
     #[cfg(target_arch = "x86")]
     #[cfg(target_arch = "arm")]
     #[cfg(target_arch = "mips")]
-    pub const bits: uint = 16;
+    pub static bits: uint = 16;
 
     #[cfg(target_arch = "x86_64")]
-    pub const bits: uint = 32;
+    pub static bits: uint = 32;
 
-    pub const base: uint = 1 << bits;
-    priv const hi_mask: uint = (-1 as uint) << bits;
-    priv const lo_mask: uint = (-1 as uint) >> bits;
+    pub static base: uint = 1 << bits;
+    priv static hi_mask: uint = (-1 as uint) << bits;
+    priv static lo_mask: uint = (-1 as uint) >> bits;
 
     priv fn get_hi(n: uint) -> BigDigit { (n >> bits) as BigDigit }
     priv fn get_lo(n: uint) -> BigDigit { (n & lo_mask) as BigDigit }
@@ -1046,9 +1046,9 @@ mod biguint_tests {
         fail_unless!(BigUint::new(~[0, 0, -1]).to_uint() == uint::max_value);
     }
 
-    const sum_triples: &'static [(&'static [BigDigit],
-                                 &'static [BigDigit],
-                                 &'static [BigDigit])] = &[
+    static sum_triples: &'static [(&'static [BigDigit],
+                                   &'static [BigDigit],
+                                   &'static [BigDigit])] = &[
         (&[],          &[],       &[]),
         (&[],          &[ 1],     &[ 1]),
         (&[ 1],        &[ 1],     &[ 2]),
@@ -1086,9 +1086,9 @@ mod biguint_tests {
         }
     }
 
-    const mul_triples: &'static [(&'static [BigDigit],
-                                 &'static [BigDigit],
-                                 &'static [BigDigit])] = &[
+    static mul_triples: &'static [(&'static [BigDigit],
+                                   &'static [BigDigit],
+                                   &'static [BigDigit])] = &[
         (&[],               &[],               &[]),
         (&[],               &[ 1],             &[]),
         (&[ 2],             &[],               &[]),
@@ -1112,10 +1112,10 @@ mod biguint_tests {
         (&[ 0,  0,  1],     &[ 0,  0,  0,  1], &[0, 0,  0,  0,  0,  1])
     ];
 
-    const divmod_quadruples: &'static [(&'static [BigDigit],
-                                       &'static [BigDigit],
-                                       &'static [BigDigit],
-                                       &'static [BigDigit])]
+    static divmod_quadruples: &'static [(&'static [BigDigit],
+                                         &'static [BigDigit],
+                                         &'static [BigDigit],
+                                         &'static [BigDigit])]
         = &[
             (&[ 1],        &[ 2], &[],               &[1]),
             (&[ 1,  1],    &[ 2], &[-1/2+1],         &[1]),
@@ -1400,9 +1400,9 @@ mod bigint_tests {
         ).to_uint() == 0);
     }
 
-    const sum_triples: &'static [(&'static [BigDigit],
-                                 &'static [BigDigit],
-                                 &'static [BigDigit])] = &[
+    static sum_triples: &'static [(&'static [BigDigit],
+                                   &'static [BigDigit],
+                                   &'static [BigDigit])] = &[
         (&[],          &[],       &[]),
         (&[],          &[ 1],     &[ 1]),
         (&[ 1],        &[ 1],     &[ 2]),
@@ -1452,9 +1452,9 @@ mod bigint_tests {
         }
     }
 
-    const mul_triples: &'static [(&'static [BigDigit],
-                                 &'static [BigDigit],
-                                 &'static [BigDigit])] = &[
+    static mul_triples: &'static [(&'static [BigDigit],
+                                   &'static [BigDigit],
+                                   &'static [BigDigit])] = &[
         (&[],               &[],               &[]),
         (&[],               &[ 1],             &[]),
         (&[ 2],             &[],               &[]),
@@ -1478,10 +1478,10 @@ mod bigint_tests {
         (&[ 0,  0,  1],     &[ 0,  0,  0,  1], &[0, 0,  0,  0,  0,  1])
     ];
 
-    const divmod_quadruples: &'static [(&'static [BigDigit],
-                                       &'static [BigDigit],
-                                       &'static [BigDigit],
-                                       &'static [BigDigit])]
+    static divmod_quadruples: &'static [(&'static [BigDigit],
+                                         &'static [BigDigit],
+                                         &'static [BigDigit],
+                                         &'static [BigDigit])]
         = &[
             (&[ 1],        &[ 2], &[],               &[1]),
             (&[ 1,  1],    &[ 2], &[-1/2+1],         &[1]),
diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs
index 270a2c1fc1b..3acc95a3aad 100644
--- a/src/libstd/bitv.rs
+++ b/src/libstd/bitv.rs
@@ -877,7 +877,7 @@ mod tests {
     use core::vec;
     use core::rand;
 
-    const bench_bits : uint = 1 << 14;
+    static bench_bits : uint = 1 << 14;
 
     #[test]
     pub fn test_to_str() {
diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs
index 6fd77de0342..93a2f4e2acc 100644
--- a/src/libstd/cmp.rs
+++ b/src/libstd/cmp.rs
@@ -14,7 +14,7 @@ use core::f32;
 use core::f64;
 use core::float;
 
-pub const FUZZY_EPSILON: float = 1.0e-6;
+pub static FUZZY_EPSILON: float = 1.0e-6;
 
 pub trait FuzzyEq<Eps> {
     fn fuzzy_eq(&self, other: &Self) -> bool;
diff --git a/src/libstd/deque.rs b/src/libstd/deque.rs
index 4f61321b4e7..e6fcbdc84c8 100644
--- a/src/libstd/deque.rs
+++ b/src/libstd/deque.rs
@@ -14,7 +14,7 @@ use core::container::{Container, Mutable};
 use core::prelude::*;
 use core::vec;
 
-const initial_capacity: uint = 32u; // 2^5
+static initial_capacity: uint = 32u; // 2^5
 
 pub struct Deque<T> {
     priv nelts: uint,
diff --git a/src/libstd/ebml.rs b/src/libstd/ebml.rs
index 437ab561f95..92898af2993 100644
--- a/src/libstd/ebml.rs
+++ b/src/libstd/ebml.rs
@@ -545,7 +545,7 @@ pub mod writer {
 
     // Set to true to generate more debugging in EBML code.
     // Totally lame approach.
-    const debug: bool = false;
+    static debug: bool = false;
 
     priv impl Encoder {
         // used internally to emit things like the vector length and so on
diff --git a/src/libstd/flatpipes.rs b/src/libstd/flatpipes.rs
index 9855e803ccb..01d672c9b26 100644
--- a/src/libstd/flatpipes.rs
+++ b/src/libstd/flatpipes.rs
@@ -254,7 +254,7 @@ pub trait ByteChan {
     fn send(&self, val: ~[u8]);
 }
 
-const CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
+static CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
 
 impl<T,U:Unflattener<T>,P:BytePort> GenericPort<T> for FlatPort<T, U, P> {
     fn recv(&self) -> T {
@@ -921,7 +921,7 @@ mod test {
         }
 
         fn test_try_recv_none3<P:BytePort>(loader: PortLoader<P>) {
-            const CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
+            static CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
             // The control word is followed by garbage
             let bytes = CONTINUE.to_vec() + ~[0];
             let port = loader(bytes);
@@ -940,7 +940,7 @@ mod test {
 
         fn test_try_recv_none4<P:BytePort>(+loader: PortLoader<P>) {
             fail_unless!(do task::try || {
-                const CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
+                static CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
                 // The control word is followed by a valid length,
                 // then undeserializable garbage
                 let len_bytes = do io::u64_to_be_bytes(
diff --git a/src/libstd/oldmap.rs b/src/libstd/oldmap.rs
index 0b688f0c678..02c610e4854 100644
--- a/src/libstd/oldmap.rs
+++ b/src/libstd/oldmap.rs
@@ -51,7 +51,7 @@ pub mod chained {
     use core::uint;
     use core::vec;
 
-    const initial_capacity: uint = 32u; // 2^5
+    static initial_capacity: uint = 32u; // 2^5
 
     struct Entry<K, V> {
         hash: uint,
diff --git a/src/libstd/par.rs b/src/libstd/par.rs
index 17ae48e03b9..6f69ac4e1bd 100644
--- a/src/libstd/par.rs
+++ b/src/libstd/par.rs
@@ -22,10 +22,10 @@ use future_spawn = future::spawn;
  * The maximum number of tasks this module will spawn for a single
  * operation.
  */
-const max_tasks : uint = 32u;
+static max_tasks : uint = 32u;
 
 /// The minimum number of elements each task will process.
-const min_granularity : uint = 1024u;
+static min_granularity : uint = 1024u;
 
 /**
  * An internal helper to map a function over a large vector and
diff --git a/src/libstd/rope.rs b/src/libstd/rope.rs
index c9ad762880c..51cf08c8ca1 100644
--- a/src/libstd/rope.rs
+++ b/src/libstd/rope.rs
@@ -636,14 +636,14 @@ pub mod node {
      *
      * This is not a strict value
      */
-    pub const hint_max_leaf_char_len: uint = 256u;
+    pub static hint_max_leaf_char_len: uint = 256u;
 
     /**
      * The maximal height that _should_ be permitted in a tree.
      *
      * This is not a strict value
      */
-    pub const hint_max_node_height:   uint = 16u;
+    pub static hint_max_node_height:   uint = 16u;
 
     /**
      * Adopt a string as a node.
diff --git a/src/libstd/sha1.rs b/src/libstd/sha1.rs
index 077ab191e69..64399defd54 100644
--- a/src/libstd/sha1.rs
+++ b/src/libstd/sha1.rs
@@ -53,13 +53,13 @@ trait Sha1 {
 }
 
 // Some unexported constants
-const digest_buf_len: uint = 5u;
-const msg_block_len: uint = 64u;
-const work_buf_len: uint = 80u;
-const k0: u32 = 0x5A827999u32;
-const k1: u32 = 0x6ED9EBA1u32;
-const k2: u32 = 0x8F1BBCDCu32;
-const k3: u32 = 0xCA62C1D6u32;
+static digest_buf_len: uint = 5u;
+static msg_block_len: uint = 64u;
+static work_buf_len: uint = 80u;
+static k0: u32 = 0x5A827999u32;
+static k1: u32 = 0x6ED9EBA1u32;
+static k2: u32 = 0x8F1BBCDCu32;
+static k3: u32 = 0xCA62C1D6u32;
 
 
 /// Construct a `sha` object
diff --git a/src/libstd/sort.rs b/src/libstd/sort.rs
index 8ab2c40116a..33f585d32fc 100644
--- a/src/libstd/sort.rs
+++ b/src/libstd/sort.rs
@@ -177,9 +177,9 @@ impl<T:Copy + Ord + Eq> Sort for &'self mut [T] {
     fn qsort(self) { quick_sort3(self); }
 }
 
-const MIN_MERGE: uint = 64;
-const MIN_GALLOP: uint = 7;
-const INITIAL_TMP_STORAGE: uint = 128;
+static MIN_MERGE: uint = 64;
+static MIN_GALLOP: uint = 7;
+static INITIAL_TMP_STORAGE: uint = 128;
 
 pub fn tim_sort<T:Copy + Ord>(array: &mut [T]) {
     let size = array.len();
diff --git a/src/libstd/term.rs b/src/libstd/term.rs
index 2a8c8b3b06b..a6c8884e05d 100644
--- a/src/libstd/term.rs
+++ b/src/libstd/term.rs
@@ -17,24 +17,24 @@ use core::vec;
 
 // FIXME (#2807): Windows support.
 
-pub const color_black: u8 = 0u8;
-pub const color_red: u8 = 1u8;
-pub const color_green: u8 = 2u8;
-pub const color_yellow: u8 = 3u8;
-pub const color_blue: u8 = 4u8;
-pub const color_magenta: u8 = 5u8;
-pub const color_cyan: u8 = 6u8;
-pub const color_light_gray: u8 = 7u8;
-pub const color_light_grey: u8 = 7u8;
-pub const color_dark_gray: u8 = 8u8;
-pub const color_dark_grey: u8 = 8u8;
-pub const color_bright_red: u8 = 9u8;
-pub const color_bright_green: u8 = 10u8;
-pub const color_bright_yellow: u8 = 11u8;
-pub const color_bright_blue: u8 = 12u8;
-pub const color_bright_magenta: u8 = 13u8;
-pub const color_bright_cyan: u8 = 14u8;
-pub const color_bright_white: u8 = 15u8;
+pub static color_black: u8 = 0u8;
+pub static color_red: u8 = 1u8;
+pub static color_green: u8 = 2u8;
+pub static color_yellow: u8 = 3u8;
+pub static color_blue: u8 = 4u8;
+pub static color_magenta: u8 = 5u8;
+pub static color_cyan: u8 = 6u8;
+pub static color_light_gray: u8 = 7u8;
+pub static color_light_grey: u8 = 7u8;
+pub static color_dark_gray: u8 = 8u8;
+pub static color_dark_grey: u8 = 8u8;
+pub static color_bright_red: u8 = 9u8;
+pub static color_bright_green: u8 = 10u8;
+pub static color_bright_yellow: u8 = 11u8;
+pub static color_bright_blue: u8 = 12u8;
+pub static color_bright_magenta: u8 = 13u8;
+pub static color_bright_cyan: u8 = 14u8;
+pub static color_bright_white: u8 = 15u8;
 
 pub fn esc(writer: @io::Writer) { writer.write(~[0x1bu8, '[' as u8]); }
 
diff --git a/src/libstd/test.rs b/src/libstd/test.rs
index 7531992ae84..d039e8eef5a 100644
--- a/src/libstd/test.rs
+++ b/src/libstd/test.rs
@@ -477,10 +477,10 @@ fn run_tests(opts: &TestOpts,
 
 // Windows tends to dislike being overloaded with threads.
 #[cfg(windows)]
-const sched_overcommit : uint = 1;
+static sched_overcommit : uint = 1;
 
 #[cfg(unix)]
-const sched_overcommit : uint = 4u;
+static sched_overcommit : uint = 4u;
 
 fn get_concurrency() -> uint {
     unsafe {
diff --git a/src/libstd/time.rs b/src/libstd/time.rs
index b46d58f891b..ce153c1ac24 100644
--- a/src/libstd/time.rs
+++ b/src/libstd/time.rs
@@ -17,7 +17,7 @@ use core::prelude::*;
 use core::result::{Result, Ok, Err};
 use core::str;
 
-const NSEC_PER_SEC: i32 = 1_000_000_000_i32;
+static NSEC_PER_SEC: i32 = 1_000_000_000_i32;
 
 pub mod rustrt {
     use super::Tm;
@@ -900,8 +900,8 @@ mod tests {
     use core::vec;
 
     pub fn test_get_time() {
-        const some_recent_date: i64 = 1325376000i64; // 2012-01-01T00:00:00Z
-        const some_future_date: i64 = 1577836800i64; // 2020-01-01T00:00:00Z
+        static some_recent_date: i64 = 1325376000i64; // 2012-01-01T00:00:00Z
+        static some_future_date: i64 = 1577836800i64; // 2020-01-01T00:00:00Z
 
         let tv1 = get_time();
         debug!("tv1=%? sec + %? nsec", tv1.sec as uint, tv1.nsec as uint);
diff --git a/src/libstd/unicode.rs b/src/libstd/unicode.rs
index f22bdaff3a0..4fdd4e286da 100644
--- a/src/libstd/unicode.rs
+++ b/src/libstd/unicode.rs
@@ -15,147 +15,147 @@ pub mod icu {
     pub type UProperty = int;
     pub type UChar32 = char;
 
-    pub const TRUE : u8 = 1u8;
-    pub const FALSE : u8 = 1u8;
-
-    pub const UCHAR_ALPHABETIC : UProperty = 0;
-    pub const UCHAR_BINARY_START : UProperty = 0; // = UCHAR_ALPHABETIC
-    pub const UCHAR_ASCII_HEX_DIGIT : UProperty = 1;
-    pub const UCHAR_BIDI_CONTROL : UProperty = 2;
-
-    pub const UCHAR_BIDI_MIRRORED : UProperty = 3;
-    pub const UCHAR_DASH : UProperty = 4;
-    pub const UCHAR_DEFAULT_IGNORABLE_CODE_POINT : UProperty = 5;
-    pub const UCHAR_DEPRECATED : UProperty = 6;
-
-    pub const UCHAR_DIACRITIC : UProperty = 7;
-    pub const UCHAR_EXTENDER : UProperty = 8;
-    pub const UCHAR_FULL_COMPOSITION_EXCLUSION : UProperty = 9;
-    pub const UCHAR_GRAPHEME_BASE : UProperty = 10;
-
-    pub const UCHAR_GRAPHEME_EXTEND : UProperty = 11;
-    pub const UCHAR_GRAPHEME_LINK : UProperty = 12;
-    pub const UCHAR_HEX_DIGIT : UProperty = 13;
-    pub const UCHAR_HYPHEN : UProperty = 14;
-
-    pub const UCHAR_ID_CONTINUE : UProperty = 15;
-    pub const UCHAR_ID_START : UProperty = 16;
-    pub const UCHAR_IDEOGRAPHIC : UProperty = 17;
-    pub const UCHAR_IDS_BINARY_OPERATOR : UProperty = 18;
-
-    pub const UCHAR_IDS_TRINARY_OPERATOR : UProperty = 19;
-    pub const UCHAR_JOIN_CONTROL : UProperty = 20;
-    pub const UCHAR_LOGICAL_ORDER_EXCEPTION : UProperty = 21;
-    pub const UCHAR_LOWERCASE : UProperty = 22;
-
-    pub const UCHAR_MATH : UProperty = 23;
-    pub const UCHAR_NONCHARACTER_CODE_POINT : UProperty = 24;
-    pub const UCHAR_QUOTATION_MARK : UProperty = 25;
-    pub const UCHAR_RADICAL : UProperty = 26;
-
-    pub const UCHAR_SOFT_DOTTED : UProperty = 27;
-    pub const UCHAR_TERMINAL_PUNCTUATION : UProperty = 28;
-    pub const UCHAR_UNIFIED_IDEOGRAPH : UProperty = 29;
-    pub const UCHAR_UPPERCASE : UProperty = 30;
-
-    pub const UCHAR_WHITE_SPACE : UProperty = 31;
-    pub const UCHAR_XID_CONTINUE : UProperty = 32;
-    pub const UCHAR_XID_START : UProperty = 33;
-    pub const UCHAR_CASE_SENSITIVE : UProperty = 34;
-
-    pub const UCHAR_S_TERM : UProperty = 35;
-    pub const UCHAR_VARIATION_SELECTOR : UProperty = 36;
-    pub const UCHAR_NFD_INERT : UProperty = 37;
-    pub const UCHAR_NFKD_INERT : UProperty = 38;
-
-    pub const UCHAR_NFC_INERT : UProperty = 39;
-    pub const UCHAR_NFKC_INERT : UProperty = 40;
-    pub const UCHAR_SEGMENT_STARTER : UProperty = 41;
-    pub const UCHAR_PATTERN_SYNTAX : UProperty = 42;
-
-    pub const UCHAR_PATTERN_WHITE_SPACE : UProperty = 43;
-    pub const UCHAR_POSIX_ALNUM : UProperty = 44;
-    pub const UCHAR_POSIX_BLANK : UProperty = 45;
-    pub const UCHAR_POSIX_GRAPH : UProperty = 46;
-
-    pub const UCHAR_POSIX_PRINT : UProperty = 47;
-    pub const UCHAR_POSIX_XDIGIT : UProperty = 48;
-    pub const UCHAR_CASED : UProperty = 49;
-    pub const UCHAR_CASE_IGNORABLE : UProperty = 50;
-
-    pub const UCHAR_CHANGES_WHEN_LOWERCASED : UProperty = 51;
-    pub const UCHAR_CHANGES_WHEN_UPPERCASED : UProperty = 52;
-    pub const UCHAR_CHANGES_WHEN_TITLECASED : UProperty = 53;
-    pub const UCHAR_CHANGES_WHEN_CASEFOLDED : UProperty = 54;
-
-    pub const UCHAR_CHANGES_WHEN_CASEMAPPED : UProperty = 55;
-    pub const UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED : UProperty = 56;
-    pub const UCHAR_BINARY_LIMIT : UProperty = 57;
-    pub const UCHAR_BIDI_CLASS : UProperty = 0x1000;
-
-    pub const UCHAR_INT_START : UProperty = 0x1000; // UCHAR_BIDI_CLASS
-    pub const UCHAR_BLOCK : UProperty = 0x1001;
-    pub const UCHAR_CANONICAL_COMBINING_CLASS : UProperty = 0x1002;
-    pub const UCHAR_DECOMPOSITION_TYPE : UProperty = 0x1003;
-
-    pub const UCHAR_EAST_ASIAN_WIDTH : UProperty = 0x1004;
-    pub const UCHAR_GENERAL_CATEGORY : UProperty = 0x1005;
-    pub const UCHAR_JOINING_GROUP : UProperty = 0x1006;
-    pub const UCHAR_JOINING_TYPE : UProperty = 0x1007;
-
-    pub const UCHAR_LINE_BREAK : UProperty = 0x1008;
-    pub const UCHAR_NUMERIC_TYPE : UProperty = 0x1009;
-    pub const UCHAR_SCRIPT : UProperty = 0x100A;
-    pub const UCHAR_HANGUL_SYLLABLE_TYPE : UProperty = 0x100B;
-
-    pub const UCHAR_NFD_QUICK_CHECK : UProperty = 0x100C;
-    pub const UCHAR_NFKD_QUICK_CHECK : UProperty = 0x100D;
-    pub const UCHAR_NFC_QUICK_CHECK : UProperty = 0x100E;
-    pub const UCHAR_NFKC_QUICK_CHECK : UProperty = 0x100F;
-
-    pub const UCHAR_LEAD_CANONICAL_COMBINING_CLASS : UProperty = 0x1010;
-    pub const UCHAR_TRAIL_CANONICAL_COMBINING_CLASS : UProperty = 0x1011;
-    pub const UCHAR_GRAPHEME_CLUSTER_BREAK : UProperty = 0x1012;
-    pub const UCHAR_SENTENCE_BREAK : UProperty = 0x1013;
-
-    pub const UCHAR_WORD_BREAK : UProperty = 0x1014;
-    pub const UCHAR_INT_LIMIT : UProperty = 0x1015;
-
-    pub const UCHAR_GENERAL_CATEGORY_MASK : UProperty = 0x2000;
-    pub const UCHAR_MASK_START : UProperty = 0x2000;
+    pub static TRUE : u8 = 1u8;
+    pub static FALSE : u8 = 1u8;
+
+    pub static UCHAR_ALPHABETIC : UProperty = 0;
+    pub static UCHAR_BINARY_START : UProperty = 0; // = UCHAR_ALPHABETIC
+    pub static UCHAR_ASCII_HEX_DIGIT : UProperty = 1;
+    pub static UCHAR_BIDI_CONTROL : UProperty = 2;
+
+    pub static UCHAR_BIDI_MIRRORED : UProperty = 3;
+    pub static UCHAR_DASH : UProperty = 4;
+    pub static UCHAR_DEFAULT_IGNORABLE_CODE_POINT : UProperty = 5;
+    pub static UCHAR_DEPRECATED : UProperty = 6;
+
+    pub static UCHAR_DIACRITIC : UProperty = 7;
+    pub static UCHAR_EXTENDER : UProperty = 8;
+    pub static UCHAR_FULL_COMPOSITION_EXCLUSION : UProperty = 9;
+    pub static UCHAR_GRAPHEME_BASE : UProperty = 10;
+
+    pub static UCHAR_GRAPHEME_EXTEND : UProperty = 11;
+    pub static UCHAR_GRAPHEME_LINK : UProperty = 12;
+    pub static UCHAR_HEX_DIGIT : UProperty = 13;
+    pub static UCHAR_HYPHEN : UProperty = 14;
+
+    pub static UCHAR_ID_CONTINUE : UProperty = 15;
+    pub static UCHAR_ID_START : UProperty = 16;
+    pub static UCHAR_IDEOGRAPHIC : UProperty = 17;
+    pub static UCHAR_IDS_BINARY_OPERATOR : UProperty = 18;
+
+    pub static UCHAR_IDS_TRINARY_OPERATOR : UProperty = 19;
+    pub static UCHAR_JOIN_CONTROL : UProperty = 20;
+    pub static UCHAR_LOGICAL_ORDER_EXCEPTION : UProperty = 21;
+    pub static UCHAR_LOWERCASE : UProperty = 22;
+
+    pub static UCHAR_MATH : UProperty = 23;
+    pub static UCHAR_NONCHARACTER_CODE_POINT : UProperty = 24;
+    pub static UCHAR_QUOTATION_MARK : UProperty = 25;
+    pub static UCHAR_RADICAL : UProperty = 26;
+
+    pub static UCHAR_SOFT_DOTTED : UProperty = 27;
+    pub static UCHAR_TERMINAL_PUNCTUATION : UProperty = 28;
+    pub static UCHAR_UNIFIED_IDEOGRAPH : UProperty = 29;
+    pub static UCHAR_UPPERCASE : UProperty = 30;
+
+    pub static UCHAR_WHITE_SPACE : UProperty = 31;
+    pub static UCHAR_XID_CONTINUE : UProperty = 32;
+    pub static UCHAR_XID_START : UProperty = 33;
+    pub static UCHAR_CASE_SENSITIVE : UProperty = 34;
+
+    pub static UCHAR_S_TERM : UProperty = 35;
+    pub static UCHAR_VARIATION_SELECTOR : UProperty = 36;
+    pub static UCHAR_NFD_INERT : UProperty = 37;
+    pub static UCHAR_NFKD_INERT : UProperty = 38;
+
+    pub static UCHAR_NFC_INERT : UProperty = 39;
+    pub static UCHAR_NFKC_INERT : UProperty = 40;
+    pub static UCHAR_SEGMENT_STARTER : UProperty = 41;
+    pub static UCHAR_PATTERN_SYNTAX : UProperty = 42;
+
+    pub static UCHAR_PATTERN_WHITE_SPACE : UProperty = 43;
+    pub static UCHAR_POSIX_ALNUM : UProperty = 44;
+    pub static UCHAR_POSIX_BLANK : UProperty = 45;
+    pub static UCHAR_POSIX_GRAPH : UProperty = 46;
+
+    pub static UCHAR_POSIX_PRINT : UProperty = 47;
+    pub static UCHAR_POSIX_XDIGIT : UProperty = 48;
+    pub static UCHAR_CASED : UProperty = 49;
+    pub static UCHAR_CASE_IGNORABLE : UProperty = 50;
+
+    pub static UCHAR_CHANGES_WHEN_LOWERCASED : UProperty = 51;
+    pub static UCHAR_CHANGES_WHEN_UPPERCASED : UProperty = 52;
+    pub static UCHAR_CHANGES_WHEN_TITLECASED : UProperty = 53;
+    pub static UCHAR_CHANGES_WHEN_CASEFOLDED : UProperty = 54;
+
+    pub static UCHAR_CHANGES_WHEN_CASEMAPPED : UProperty = 55;
+    pub static UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED : UProperty = 56;
+    pub static UCHAR_BINARY_LIMIT : UProperty = 57;
+    pub static UCHAR_BIDI_CLASS : UProperty = 0x1000;
+
+    pub static UCHAR_INT_START : UProperty = 0x1000; // UCHAR_BIDI_CLASS
+    pub static UCHAR_BLOCK : UProperty = 0x1001;
+    pub static UCHAR_CANONICAL_COMBINING_CLASS : UProperty = 0x1002;
+    pub static UCHAR_DECOMPOSITION_TYPE : UProperty = 0x1003;
+
+    pub static UCHAR_EAST_ASIAN_WIDTH : UProperty = 0x1004;
+    pub static UCHAR_GENERAL_CATEGORY : UProperty = 0x1005;
+    pub static UCHAR_JOINING_GROUP : UProperty = 0x1006;
+    pub static UCHAR_JOINING_TYPE : UProperty = 0x1007;
+
+    pub static UCHAR_LINE_BREAK : UProperty = 0x1008;
+    pub static UCHAR_NUMERIC_TYPE : UProperty = 0x1009;
+    pub static UCHAR_SCRIPT : UProperty = 0x100A;
+    pub static UCHAR_HANGUL_SYLLABLE_TYPE : UProperty = 0x100B;
+
+    pub static UCHAR_NFD_QUICK_CHECK : UProperty = 0x100C;
+    pub static UCHAR_NFKD_QUICK_CHECK : UProperty = 0x100D;
+    pub static UCHAR_NFC_QUICK_CHECK : UProperty = 0x100E;
+    pub static UCHAR_NFKC_QUICK_CHECK : UProperty = 0x100F;
+
+    pub static UCHAR_LEAD_CANONICAL_COMBINING_CLASS : UProperty = 0x1010;
+    pub static UCHAR_TRAIL_CANONICAL_COMBINING_CLASS : UProperty = 0x1011;
+    pub static UCHAR_GRAPHEME_CLUSTER_BREAK : UProperty = 0x1012;
+    pub static UCHAR_SENTENCE_BREAK : UProperty = 0x1013;
+
+    pub static UCHAR_WORD_BREAK : UProperty = 0x1014;
+    pub static UCHAR_INT_LIMIT : UProperty = 0x1015;
+
+    pub static UCHAR_GENERAL_CATEGORY_MASK : UProperty = 0x2000;
+    pub static UCHAR_MASK_START : UProperty = 0x2000;
     // = UCHAR_GENERAL_CATEGORY_MASK
-    pub const UCHAR_MASK_LIMIT : UProperty = 0x2001;
+    pub static UCHAR_MASK_LIMIT : UProperty = 0x2001;
 
-    pub const UCHAR_NUMERIC_VALUE : UProperty = 0x3000;
-    pub const UCHAR_DOUBLE_START : UProperty = 0x3000;
+    pub static UCHAR_NUMERIC_VALUE : UProperty = 0x3000;
+    pub static UCHAR_DOUBLE_START : UProperty = 0x3000;
     // = UCHAR_NUMERIC_VALUE
-    pub const UCHAR_DOUBLE_LIMIT : UProperty = 0x3001;
+    pub static UCHAR_DOUBLE_LIMIT : UProperty = 0x3001;
 
-    pub const UCHAR_AGE : UProperty = 0x4000;
-    pub const UCHAR_STRING_START : UProperty = 0x4000; // = UCHAR_AGE
-    pub const UCHAR_BIDI_MIRRORING_GLYPH : UProperty = 0x4001;
-    pub const UCHAR_CASE_FOLDING : UProperty = 0x4002;
+    pub static UCHAR_AGE : UProperty = 0x4000;
+    pub static UCHAR_STRING_START : UProperty = 0x4000; // = UCHAR_AGE
+    pub static UCHAR_BIDI_MIRRORING_GLYPH : UProperty = 0x4001;
+    pub static UCHAR_CASE_FOLDING : UProperty = 0x4002;
 
-    pub const UCHAR_ISO_COMMENT : UProperty = 0x4003;
-    pub const UCHAR_LOWERCASE_MAPPING : UProperty = 0x4004;
-    pub const UCHAR_NAME : UProperty = 0x4005;
-    pub const UCHAR_SIMPLE_CASE_FOLDING : UProperty = 0x4006;
+    pub static UCHAR_ISO_COMMENT : UProperty = 0x4003;
+    pub static UCHAR_LOWERCASE_MAPPING : UProperty = 0x4004;
+    pub static UCHAR_NAME : UProperty = 0x4005;
+    pub static UCHAR_SIMPLE_CASE_FOLDING : UProperty = 0x4006;
 
-    pub const UCHAR_SIMPLE_LOWERCASE_MAPPING : UProperty = 0x4007;
-    pub const UCHAR_SIMPLE_TITLECASE_MAPPING : UProperty = 0x4008;
-    pub const UCHAR_SIMPLE_UPPERCASE_MAPPING : UProperty = 0x4009;
-    pub const UCHAR_TITLECASE_MAPPING : UProperty = 0x400A;
+    pub static UCHAR_SIMPLE_LOWERCASE_MAPPING : UProperty = 0x4007;
+    pub static UCHAR_SIMPLE_TITLECASE_MAPPING : UProperty = 0x4008;
+    pub static UCHAR_SIMPLE_UPPERCASE_MAPPING : UProperty = 0x4009;
+    pub static UCHAR_TITLECASE_MAPPING : UProperty = 0x400A;
 
-    pub const UCHAR_UNICODE_1_NAME : UProperty = 0x400B;
-    pub const UCHAR_UPPERCASE_MAPPING : UProperty = 0x400C;
-    pub const UCHAR_STRING_LIMIT : UProperty = 0x400D;
+    pub static UCHAR_UNICODE_1_NAME : UProperty = 0x400B;
+    pub static UCHAR_UPPERCASE_MAPPING : UProperty = 0x400C;
+    pub static UCHAR_STRING_LIMIT : UProperty = 0x400D;
 
-    pub const UCHAR_SCRIPT_EXTENSIONS : UProperty = 0x7000;
-    pub const UCHAR_OTHER_PROPERTY_START : UProperty = 0x7000;
+    pub static UCHAR_SCRIPT_EXTENSIONS : UProperty = 0x7000;
+    pub static UCHAR_OTHER_PROPERTY_START : UProperty = 0x7000;
     // = UCHAR_SCRIPT_EXTENSIONS;
-    pub const UCHAR_OTHER_PROPERTY_LIMIT : UProperty = 0x7001;
+    pub static UCHAR_OTHER_PROPERTY_LIMIT : UProperty = 0x7001;
 
-    pub const UCHAR_INVALID_CODE : UProperty = -1;
+    pub static UCHAR_INVALID_CODE : UProperty = -1;
 
     pub mod libicu {
         #[link_name = "icuuc"]