Lines Matching defs:matches
36 [D0-D3][80-BF] # matches codepoints 0400-04FF
37 [D4][80-AF] # matches codepoints 0500-052F
181 /// Returns true if and only if a prefix of `bytes` matches this sequence
183 pub fn matches(&self, bytes: &[u8]) -> bool {
188 if !r.matches(b) {
234 pub fn matches(&self, b: u8) -> bool {
255 /// if and only if it completely matches exactly one of the sequences of byte
258 /// Each sequence of byte ranges matches a unique set of bytes. That is, no two
269 /// fn matches(seqs: &[Utf8Sequence], bytes: &[u8]) -> bool {
271 /// if range.matches(bytes) {
282 /// assert!(matches(&seqs, &[0x61]));
284 /// assert!(matches(&seqs, &[0xE2, 0x98, 0x83]));
286 /// assert!(!matches(&seqs, &[0xF0, 0x90, 0x8D, 0x88]));
290 /// assert!(!matches(&seqs, &[0xED, 0xA0, 0x80]));
292 /// assert!(!matches(&seqs, &[0xFF, 0xFF]));
470 if r.matches(&buf) {
473 which matches surrogate code point {:X} \