aboutsummaryrefslogtreecommitdiff
path: root/src/util/smallcharset.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-04-08 10:25:09 +0200
committerMartin Fischer <martin@push-f.com>2021-04-08 15:40:48 +0200
commit8bb20dcdeec57b2109b05351663ec1dba9c65f84 (patch)
tree3ddf7196d2fe66d92e4819c362e248cb96be3c0b /src/util/smallcharset.rs
parentfc9d3132f390b038544e45048b4fe345a3d47793 (diff)
drop markup5ever dependency
Diffstat (limited to 'src/util/smallcharset.rs')
-rw-r--r--src/util/smallcharset.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util/smallcharset.rs b/src/util/smallcharset.rs
index 957dad7..aeeb189 100644
--- a/src/util/smallcharset.rs
+++ b/src/util/smallcharset.rs
@@ -41,20 +41,6 @@ impl SmallCharSet {
/// Count the number of bytes of characters at the beginning of `buf` which are not in the set.
///
/// This functionality is used in [`BufferQueue::pop_except_from`].
- ///
- /// # Examples
- ///
- /// ```
- /// # #[macro_use] extern crate markup5ever;
- /// # fn main() {
- /// let set = small_char_set!(48 49 50); // '0' '1' '2'
- /// // `test` is 4 chars, ๐Ÿ˜ is 4 chars, then we meet a character in the set
- /// let test_str = "test๐Ÿ˜01232afd";
- /// assert_eq!(set.nonmember_prefix_len(test_str), 8);
- /// # }
- /// ```
- ///
- /// [`BufferQueue::pop_except_from`]: buffer_queue/struct.BufferQueue.html#method.pop_except_from
pub fn nonmember_prefix_len(&self, buf: &str) -> u32 {
let mut n = 0;
for b in buf.bytes() {