All Questions
4
questions
1
vote
4
answers
1k
views
Should I always use iterators when working with strings?
Here is the known old way to iterate over the string:
for (int i = 0; i < str.length(); i++) {
char c = str[i];
}
However recently I have also seen in multiple places the usage of ...
1
vote
1
answer
220
views
How much an iterator should do
I am working on creating iterators, for strings, lists, trees, graphs, and potentially other things.
First a side note.
I have a string data type in my engine. The string is implemented as a bunch ...
-2
votes
2
answers
621
views
Find index of string in an array of strings where overlap could occur
I am having some trouble writing a variant of sub-string search. Essentially the goal is to write a method that can perform sub-string search except that the source data is in an array of Strings ...
0
votes
1
answer
104
views
Code execution within delimiters [closed]
Is there any way I can execute a block of code in a loop, like so:
[ some code goes here ]
Where the delimiters are "[" and "]", and also allowing for nested blocks, i.e.:
[the user can create ...