用sep分割的字符串
(i: &'a str, sep: &str)
| 108 | |
| 109 | /// 用sep分割的字符串 |
| 110 | pub fn parse_list_str<'a>(i: &'a str, sep: &str) -> IResult<&'a str, Vec<&'a str>> { |
| 111 | separated_list1(tag(sep), is_not(sep))(i) |
| 112 | } |
| 113 | |
| 114 | // USD 1 0.741 0.657 1.061 1.005 |
| 115 | pub fn parse_list_rates(i: &str) -> IResult<&str, (&str, Vec<f32>)> { |