Bug 32857

Summary: Documentation is wrong about getChomp and getPrechomp
Product: Taglibs Reporter: Eric Lewis <eric.lewis>
Component: String TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 1.1   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://jakarta.apache.org/taglibs/doc/string-doc/index.html

Description Eric Lewis 2004-12-28 11:35:29 UTC
getChomp: "Get everything after a specified delimiter. Returns the
delimiter as well."  If this were the case, <str:getChomp
delimiter="T">TestTeee</str:getChomp> would return 'Teee', but it returns

getPrechomp: "Get everything up until a specific delimiter. Returns the
delimiter as well."  Same here, for <str:getPrechomp
delimiter="t">TestTeee</str:getPrechomp> according to the documentation
'Test' would be returned, but in fact 'Tes' is returned.
Comment 1 Henri Yandell 2009-07-11 08:31:29 UTC
svn ci -m "Fixing javadoc per Bugzilla #32857" src/main/java/org/apache/taglibs/string/*Tag.java
Sending        src/main/java/org/apache/taglibs/string/GetChompTag.java
Sending        src/main/java/org/apache/taglibs/string/GetPrechompTag.java
Transmitting file data ..
Committed revision 793183.