[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    DO NOT REPLY [Bug 25058]  -
From:       bugzilla () apache ! org
Date:       2003-11-30 16:19:22
[Download RAW message or body]

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25058>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25058

Bug in StringUtils.chomp

lionel.pieniazek@miradores.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From lionel.pieniazek@miradores.com  2003-11-30 16:19 -------
Sorry for the short comments, 

I have this example to show why it doesn īt work.



import org.apache.commons.lang.StringUtils;

public class p {
  public static void main(String[] args) {
    String loc = "es_AR";
    System.out.println(StringUtils.chomp(loc, "_"));
    System.out.println(StringUtils.prechomp(loc, "_"));
  }
}

The result of that is:
es_AR
AR

when should be:
es
AR

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic