File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -194,12 +194,9 @@ pub enum Repeater {
194
194
/// sequence of non-overlapping ranges. This makes it possible to test whether
195
195
/// a character is matched by a class with a binary search.
196
196
///
197
- /// Additionally, a character class may be marked *case insensitive*. If it's
198
- /// case insensitive, then:
199
- ///
200
- /// 1. Simple case folding has been applied to all ranges.
201
- /// 2. Simple case folding must be applied to a character before testing
202
- /// whether it matches the character class.
197
+ /// If the case insensitive flag was set when parsing a character class, then
198
+ /// simple case folding is done automatically. For example, `(?i)[a-c]` is
199
+ /// automatically translated to `[a-cA-C]`.
203
200
#[ derive( Clone , Debug , PartialEq , Eq ) ]
204
201
pub struct CharClass {
205
202
ranges : Vec < ClassRange > ,
@@ -375,8 +372,6 @@ impl CharClass {
375
372
}
376
373
377
374
/// Create a new empty class from this one.
378
- ///
379
- /// Namely, its capacity and case insensitive setting will be the same.
380
375
fn to_empty ( & self ) -> CharClass {
381
376
CharClass { ranges : Vec :: with_capacity ( self . len ( ) ) }
382
377
}
You can’t perform that action at this time.
0 commit comments