I think I need a reverse strtok version, for example:
char* p = rstrtok(str, delimeters);
For example, enter the position '-'
, '_'
and '+'
in the line "hello + stack_over-flow" using the set of divisors "+ _-"
I only care about the metrics and their position (and not about the content between them), so I think boost::split_iterator
is not suitable here.
Is there any existing utility function that I can use? or any solution to solve this situation?
Also, since I am doing C ++, is there a convenient approach to avoid this old C way?
(I searched for “reverse strtok”, but just “stream down” to “flow through the stack”) ...
source share