tango.text.util delimit

Jacob Carlborg doob at me.com
Thu Jun 13 06:53:32 PDT 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 looked

Is tango.text.Util.split what you are looking for?

http://www.dsource.org/projects/tango/docs/current/tango.text.Util.html#split

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list