Skip to content

Commit

Permalink
Update old documentation for #172.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Feb 21, 2016
1 parent 4466bb7 commit 640bfa7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions regex-syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,9 @@ pub enum Repeater {
/// sequence of non-overlapping ranges. This makes it possible to test whether
/// a character is matched by a class with a binary search.
///
/// Additionally, a character class may be marked *case insensitive*. If it's
/// case insensitive, then:
///
/// 1. Simple case folding has been applied to all ranges.
/// 2. Simple case folding must be applied to a character before testing
/// whether it matches the character class.
/// If the case insensitive flag was set when parsing a character class, then
/// simple case folding is done automatically. For example, `(?i)[a-c]` is
/// automatically translated to `[a-cA-C]`.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CharClass {
ranges: Vec<ClassRange>,
Expand Down Expand Up @@ -375,8 +372,6 @@ impl CharClass {
}

/// Create a new empty class from this one.
///
/// Namely, its capacity and case insensitive setting will be the same.
fn to_empty(&self) -> CharClass {
CharClass { ranges: Vec::with_capacity(self.len()) }
}
Expand Down

0 comments on commit 640bfa7

Please sign in to comment.