Timeline for Why are the arguments for substring functions mismatched?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 27, 2012 at 2:02 | vote | accept | ankit | ||
Jul 23, 2012 at 23:34 | answer | added | supercat | timeline score: 1 | |
Jul 23, 2012 at 22:56 | answer | added | comingstorm | timeline score: 2 | |
Jul 19, 2012 at 10:23 | comment | added | CodesInChaos |
This isn't really language agnostic. In many languages the second parameter is length and not endIndex .
|
|
Jul 19, 2012 at 9:09 | comment | added | vaughandroid |
Also, to get the tail end of a string: tail = str.substring(startIndex, str.length)
|
|
Jul 19, 2012 at 7:04 | answer | added | Kilian Foth | timeline score: 7 | |
Jul 19, 2012 at 6:05 | comment | added | Giorgio | length = endIndex - startIndex | |
Jul 19, 2012 at 5:59 | history | asked | ankit | CC BY-SA 3.0 |