Package org.jostraca.comp.gnu.regexp

Examples of org.jostraca.comp.gnu.regexp.REMatch


  }


  public String match( String pSource ) throws RegExpException {
    String source = (String) Internal.null_arg( pSource );
    REMatch m = iRegExp.getMatch( source );
    if( null == m ) {
      return Standard.EMPTY;
    }
    else {
      return m.toString();
    }
  }
View Full Code Here




  public RegExpMatch matchFirst( String pSource ) throws RegExpException {
    String source = (String) Internal.null_arg( pSource );
    REMatch m = iRegExp.getMatch( source );
    if( null == m ) {
      return new GnuRegExpMatch();
    }
    else {
      return new GnuRegExpMatch( m );
View Full Code Here

      return new RegExpMatch[] {};
    }
    else {
      Vector mV = new Vector();
      while( me.hasMoreElements() ) {
        REMatch m = (REMatch) me.nextElement();
        mV.addElement( new GnuRegExpMatch( m ) );
      }
      RegExpMatch[] rem = new RegExpMatch[ mV.size() ];
      mV.copyInto( rem );
      return rem;
View Full Code Here

  // private methods

  private String matchImpl( String pSource, int pSubMatchIndex ) throws RegExpException {
    String  source = (String) Internal.null_arg( pSource );
    REMatch m      = iRegExp.getMatch( source );
    if( null == m ) {
      return Standard.EMPTY;
    }
    else {
      try {
        return m.toString( pSubMatchIndex );
      }
      catch( ArrayIndexOutOfBoundsException aioobe ) {
        return Standard.EMPTY;
      }
    }
View Full Code Here

TOP

Related Classes of org.jostraca.comp.gnu.regexp.REMatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.