tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/buf MessageBytes.java
Date Sat, 26 May 2001 18:18:38 GMT
costin      01/05/26 11:18:38

  Modified:    src/share/org/apache/tomcat/util/buf MessageBytes.java
  Log:
  Added missing method. Efficient implementation later :-)
  
  Revision  Changes    Path
  1.3       +6 -0      jakarta-tomcat/src/share/org/apache/tomcat/util/buf/MessageBytes.java
  
  Index: MessageBytes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/buf/MessageBytes.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageBytes.java	2001/05/26 17:19:58	1.2
  +++ MessageBytes.java	2001/05/26 18:18:38	1.3
  @@ -418,6 +418,12 @@
   	return strValue.indexOf( s, starting );
       }
       
  +    // Inefficient initial implementation. Will be replaced on the next
  +    // round of tune-up
  +    public int indexOf(String s) {
  +	return indexOf( s, 0 );
  +    }
  +    
       public int indexOfIgnoreCase(String s, int starting) {
   	toString();
   	String upper=strValue.toUpperCase();
  
  
  

Mime
View raw message