digitalmars.D - tango.text.util delimit
- seany (12/12) Jun 13 2013 The delimit function in tango, called by auto w =
- Jacob Carlborg (5/17) Jun 13 2013 Is tango.text.Util.split what you are looking for?
- seany (2/4) Jun 13 2013 thanks, my day is made, packaged, and delivered :)
The delimit function in tango, called by auto w = delimit(complex_str, del_chars), uses each char in the string del_chars as a delimiting character to split complex_str. however, i need to parse a bit of latex, and would love to know, if it is possbile to parse a string, whose "components" are delimited by another string. eg: a && b && c && d\\ e && f && f && g\\ this string has the components ... a ...g and they are delimited by \\ or && (two char long strings) does tango provide a function for that? sorry if i missed the answer where i should have looked
Jun 13 2013
On 2013-06-13 15:46, seany wrote:The delimit function in tango, called by auto w = delimit(complex_str, del_chars), uses each char in the string del_chars as a delimiting character to split complex_str. however, i need to parse a bit of latex, and would love to know, if it is possbile to parse a string, whose "components" are delimited by another string. eg: a && b && c && d\\ e && f && f && g\\ this string has the components ... a ...g and they are delimited by \\ or && (two char long strings) does tango provide a function for that? sorry if i missed the answer where i should have lookedIs tango.text.Util.split what you are looking for? http://www.dsource.org/projects/tango/docs/current/tango.text.Util.html#split -- /Jacob Carlborg
Jun 13 2013