MCPcopy Create free account
hub / github.com/douchuan/algorithm / parse_list_str

Function parse_list_str

src/graph/util/parser.rs:110–112  ·  view source on GitHub ↗

用sep分割的字符串

(i: &'a str, sep: &str)

Source from the content-addressed store, hash-verified

108
109/// 用sep分割的字符串
110pub 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
115pub fn parse_list_rates(i: &str) -> IResult<&str, (&str, Vec<f32>)> {

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected