diff options
| author | Andrew Gallant <jamslam@gmail.com> | 2014-06-03 23:45:54 -0400 | 
|---|---|---|
| committer | Andrew Gallant <jamslam@gmail.com> | 2014-06-03 23:45:54 -0400 | 
| commit | 179fc6dbfd97eb59e92df84e80fa9354ce5eeea0 (patch) | |
| tree | ebcdaed53e28e8af215b1a1c2c35a38ca7385320 /src/libregex/lib.rs | |
| parent | f5ead0dd66ab7c3aaaaabcc34e1726a4acd74b07 (diff) | |
| download | rust-179fc6dbfd97eb59e92df84e80fa9354ce5eeea0.tar.gz rust-179fc6dbfd97eb59e92df84e80fa9354ce5eeea0.zip | |
Some minor documentation touchups for libregex. Fixes #13800.
Diffstat (limited to 'src/libregex/lib.rs')
| -rw-r--r-- | src/libregex/lib.rs | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/src/libregex/lib.rs b/src/libregex/lib.rs index 3e100b7889c..4b9d76a9e5d 100644 --- a/src/libregex/lib.rs +++ b/src/libregex/lib.rs @@ -155,15 +155,16 @@ //! # Unicode //! //! This implementation executes regular expressions **only** on sequences of -//! UTF8 codepoints while exposing match locations as byte indices. +//! Unicode code points while exposing match locations as byte indices into the +//! search string. //! //! Currently, only naive case folding is supported. Namely, when matching //! case insensitively, the characters are first converted to their uppercase //! forms and then compared. //! //! Regular expressions themselves are also **only** interpreted as a sequence -//! of UTF8 codepoints. This means you can embed Unicode characters directly -//! into your expression: +//! of Unicode code points. This means you can use Unicode characters +//! directly in your expression: //! //! ```rust //! # #![feature(phase)] @@ -229,10 +230,10 @@ //! x*? zero or more of x (ungreedy) //! x+? one or more of x (ungreedy) //! x?? zero or one of x (ungreedy) -//! x{n,m} at least n and at most x (greedy) +//! x{n,m} at least n x and at most m x (greedy) //! x{n,} at least n x (greedy) //! x{n} exactly n x -//! x{n,m}? at least n and at most x (ungreedy) +//! x{n,m}? at least n x and at most m x (ungreedy) //! x{n,}? at least n x (ungreedy) //! x{n}? exactly n x //! </pre> @@ -300,7 +301,7 @@ //! \v vertical tab (\x0B) //! \123 octal character code (up to three digits) //! \x7F hex character code (exactly two digits) -//! \x{10FFFF} any hex character code corresponding to a valid UTF8 codepoint +//! \x{10FFFF} any hex character code corresponding to a Unicode code point //! </pre> //! //! ## Perl character classes (Unicode friendly) @@ -390,7 +391,7 @@ mod vm; #[cfg(test, not(windows))] mod test; -/// The `program` module exists to support the `regex!` macro. Do not use. +/// The `native` module exists to support the `regex!` macro. Do not use. #[doc(hidden)] pub mod native { // Exporting this stuff is bad form, but it's necessary for two reasons. | 
