public boolean endsWith(java.lang.String suffix){
  if (suffix.length() > length()) {
    return false;
  }
  int offset=suffix.length() - 1;
  for (int iter=length() - 1; offset >= 0; iter--) {
    if (value[this.offset + iter] != suffix.value[suffix.offset + offset]) {
      return false;
    }
    offset--;
  }
  return true;
}

public boolean endsWith ( java . lang . String suffix ) { if ( suffix . length ( ) > length ( ) ) { return false ; } int offset = suffix . length ( ) - 1 ; for ( int iter = length ( ) - 1 ; offset >= 0 ; iter -- ) { if ( value [ this . offset + iter ] != suffix . value [ suffix . offset + offset ] ) { return false ; } offset -- ; } return true ; }
tests if this string ends with the specified suffix .
