[EMAIL PROTECTED] writes:

> bayard      02/02/13 21:03:31
>
>   Modified:    util/src/java/org/apache/commons/util StringUtils.java
>   Log:
>   Made StringUtils.substring far more lenient than java.lang.String.substring.
>   It won't complain if too high an end value is used and it allows negative
>   values to be used. Negative meaning distance from the end of the string.
>   It also won't complain if too low a negative value is used.
>   One question standing is what to do if the start index is higher than the end 
>index.
>   Should it reverse the text when it returns it, return a wrap around,
>   complain, or silently flip the two numbers.

I would immediately return the String argument to substring() if the
parameters are bogus.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to