As far as I understood the request, PrenceOfDarkness wanted to have a new function
str_read which reads a string "step by step" by using a delimiter. Just as file_str_read, only the string is not read from a file but rather from another string.
I second this, but I think it would be better to simply have some regex operations available, such as
Code:
string some_string = "This is a test";
some_text_object.string = split_str( "/\s+/",some_string );
...and so on.
In the example, the function
split_str would use the regular expression provided (this one looks for Spaces in an unlimited number) to cut the string into several pieces and return the pieces as an array.
Such functions would make working with strings a pleasure, I think.