Talk:Multisplit: Difference between revisions
Content added Content deleted
(The algorithm) |
|||
Line 236: | Line 236: | ||
:Yes, you would get three empty strings matching "abb" against the list "b","ab". Anyways, it's basically: |
:Yes, you would get three empty strings matching "abb" against the list "b","ab". Anyways, it's basically: |
||
<lang pseudocode> |
:<lang pseudocode> |
||
for (i= 0; i < inputString.stringLength; i++) { |
for (i= 0; i < inputString.stringLength; i++) { |
||
for (j= 0; j < separators.arrayLength; j++) { |
for (j= 0; j < separators.arrayLength; j++) { |
||
Line 246: | Line 246: | ||
} |
} |
||
whatever remains of inputString after the last separator gets included in the result |
whatever remains of inputString after the last separator gets included in the result |
||
</lang> --[[User:Rdm|Rdm]] 19:57, 21 April 2011 (UTC) |
|||
</lang> |