Bugs item #1386725, was opened at 2005-12-21 04:20 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1386725&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: 0.85 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Mitch Wheat (mitchwheat) >Assigned to: Gert Driesen (drieseng) Summary: Example for last-indexof is wrong Initial Comment: page: http://nant.sourceforge.net/release/latest/help/functio ns/string.last-index-of.html Examples string::last-index-of('testing string', 'test') ==> 0 string::last-index-of('testing string', '') ==> 0 string::last-index-of('testing string', 'Test') ==> -1 string::last-index-of('testing string', 'ing') ==> 4 That last example should say 11 not 4! ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2006-03-04 21:09 Message: Logged In: YES user_id=707851 The second example is now also fixed. Thanks for the report ! ---------------------------------------------------------------------- Comment By: Christian Birkl (wingmansf) Date: 2006-02-24 13:18 Message: Logged In: YES user_id=934713 Bugfix (as of 25 Aug 2005 http://sourceforge.net/mailarchive/message.php? msg_id=12741545) tested and works. Side note: The second example is still wrong ('LastIndexOf' of an empty string will not return 0 but length - 1, in this case 13). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1386725&group_id=31650 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers