@@ -1623,66 +1623,6 @@ pub fn char_at_reverse(s: &str, i: uint) -> char {
1623
1623
char_range_at_reverse ( s, i) . ch
1624
1624
}
1625
1625
1626
- /**
1627
- * Loop through a substring, char by char
1628
- *
1629
- * # Safety note
1630
- *
1631
- * * This function does not check whether the substring is valid.
1632
- * * This function fails if `start` or `end` do not
1633
- * represent valid positions inside `s`
1634
- *
1635
- * # Arguments
1636
- *
1637
- * * s - A string to traverse. It may be empty.
1638
- * * start - The byte offset at which to start in the string.
1639
- * * end - The end of the range to traverse
1640
- * * it - A block to execute with each consecutive character of `s`.
1641
- * Return `true` to continue, `false` to stop.
1642
- *
1643
- * # Return value
1644
- *
1645
- * `true` If execution proceeded correctly, `false` if it was interrupted,
1646
- * that is if `it` returned `false` at any point.
1647
- */
1648
- pub fn all_between ( s : & str , start : uint , end : uint ,
1649
- it : & fn ( char ) -> bool ) -> bool {
1650
- assert ! ( is_char_boundary( s, start) ) ;
1651
- let mut i = start;
1652
- while i < end {
1653
- let CharRange { ch, next} = char_range_at ( s, i) ;
1654
- if !it ( ch) { return false ; }
1655
- i = next;
1656
- }
1657
- return true ;
1658
- }
1659
-
1660
- /**
1661
- * Loop through a substring, char by char
1662
- *
1663
- * # Safety note
1664
- *
1665
- * * This function does not check whether the substring is valid.
1666
- * * This function fails if `start` or `end` do not
1667
- * represent valid positions inside `s`
1668
- *
1669
- * # Arguments
1670
- *
1671
- * * s - A string to traverse. It may be empty.
1672
- * * start - The byte offset at which to start in the string.
1673
- * * end - The end of the range to traverse
1674
- * * it - A block to execute with each consecutive character of `s`.
1675
- * Return `true` to continue, `false` to stop.
1676
- *
1677
- * # Return value
1678
- *
1679
- * `true` if `it` returns `true` for any character
1680
- */
1681
- pub fn any_between ( s : & str , start : uint , end : uint ,
1682
- it : & fn ( char ) -> bool ) -> bool {
1683
- !all_between ( s, start, end, |c| !it ( c) )
1684
- }
1685
-
1686
1626
// UTF-8 tags and ranges
1687
1627
static tag_cont_u8: u8 = 128u8 ;
1688
1628
static tag_cont: uint = 128 u;
0 commit comments