1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
//! Utility functions and properties. /// A property that contains the library <a href="http://semver.org/">semantic version number</a>. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::VERSION; /// // => "1.5.0" /// ``` pub const VERSION: &str = "1.5.0"; /// The concatenation of the `ascii_lowercase` and `ascii_uppercase` constants described below. This value is not locale-dependent. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::ASCII_LETTERS; /// // => "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" /// ``` // TODO: make a combination of ASCII_LOWERCASE, ASCII_UPPERCASE #5 pub const ASCII_LETTERS: &str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; /// The lowercase letters `"abcdefghijklmnopqrstuvwxyz"`. This value is not locale-dependent and will not change. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::ASCII_LOWERCASE; /// // => "abcdefghijklmnopqrstuvwxyz" /// ``` pub const ASCII_LOWERCASE: &str = "abcdefghijklmnopqrstuvwxyz"; /// The uppercase letters `"ABCDEFGHIJKLMNOPQRSTUVWXYZ"`. This value is not locale-dependent and will not change. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::ASCII_UPPERCASE; /// // => "ABCDEFGHIJKLMNOPQRSTUVWXYZ" /// ``` // TODO: make a variation of ASCII_LOWERCASE #6 pub const ASCII_UPPERCASE: &str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; /// The string "0123456789". /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::DIGITS; /// // => "0123456789" /// ``` pub const DIGITS: &str = "0123456789"; /// The string `"0123456789abcdefABCDEF"`. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::HEXDIGITS; /// // => "0123456789abcdefABCDEF" /// ``` // TODO: make a combination of slices of DIGITS, ASCII_LOWERCASE, ASCII_UPPERCASE #7 pub const HEXDIGITS: &str = "0123456789abcdefABCDEF"; /// The string `"01234567"`. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::OCTDIGITS; /// // => "01234567" /// ``` // TODO: make a slice of DIGITS #8 pub const OCTDIGITS: &str = "01234567"; /// The string `!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~`. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::PUNCTUATION; /// // => !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ /// ``` pub const PUNCTUATION: &str = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"; /// String of ASCII characters which are considered printable. This is a combination of `digits`, `ascii_letters`, `punctuation`, and `whitespace`. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::PRINTABLE; /// // => 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r /// ``` // TODO: make a combination of DIGITS, ASCII_LETTERS, PUNCTUATION, WHITESPACE #9 pub const PRINTABLE: &str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r"; /// The string `" \t\n\r"`. /// /// # Example /// /// ``` /// use voca_rs::*; /// utils::WHITESPACE; /// // => " \t\n\r" /// ``` pub const WHITESPACE: &str = " \t\n\r";