Lines Matching refs:range
30 /// span in an error is a valid range into this string.
858 /// Add a new range to this set.
859 pub fn push(&mut self, range: ClassUnicodeRange) {
860 self.set.push(range);
877 /// this class consists of the range `a-z`, then applying case folding will
896 /// this class consists of the range `a-z`, then applying case folding will
968 /// A single range of characters represented by Unicode scalar values.
970 /// The range is closed. That is, the start and end of the range are included
971 /// in the range.
1018 /// Apply simple case folding to this Unicode scalar value range.
1052 /// Create a new Unicode scalar value range for a character class.
1054 /// The returned range is always in a canonical form. That is, the range
1060 /// Return the start of this range.
1062 /// The start of a range is always less than or equal to the end of the
1063 /// range.
1068 /// Return the end of this range.
1070 /// The end of a range is always greater than or equal to the start of the
1071 /// range.
1101 /// Add a new range to this set.
1102 pub fn push(&mut self, range: ClassBytesRange) {
1103 self.set.push(range);
1119 /// characters. For example, if this class consists of the range `a-z`,
1185 /// A single range of characters represented by arbitrary bytes.
1187 /// The range is closed. That is, the start and end of the range are included
1188 /// in the range.
1215 /// Apply simple case folding to this byte range. Only ASCII case mappings
1239 /// Create a new byte range for a character class.
1241 /// The returned range is always in a canonical form. That is, the range
1247 /// Return the start of this range.
1249 /// The start of a range is always less than or equal to the end of the
1250 /// range.
1255 /// Return the end of this range.
1257 /// The end of a range is always greater than or equal to the start of the
1258 /// range.
1417 /// Matches a sub-expression within a bounded range of times.
1628 let range = ClassUnicodeRange::new('\u{00FF}', '\0');
1629 assert_eq!('\0', range.start());
1630 assert_eq!('\u{00FF}', range.end());
1635 let range = ClassBytesRange::new(b'\xFF', b'\0');
1636 assert_eq!(b'\0', range.start());
1637 assert_eq!(b'\xFF', range.end());