public static AttributeName nameByString(String qname){
  int hash=AttributeName.stringToHash(qname);
  int index=Arrays.binarySearch(AttributeName.ATTRIBUTE_HASHES,hash);
  if (index < 0) {
    return AttributeName.createAttributeName(qname.intern(),false);
  }
 else {
    AttributeName rv=AttributeName.ATTRIBUTE_NAMES[index];
    @Local String name=rv.getLocal(AttributeName.HTML);
    if (!name.equals(qname)) {
      return AttributeName.createAttributeName(qname.intern(),false);
    }
    return rv;
  }
}

public static AttributeName nameByString ( String qname ) { int hash = AttributeName . stringToHash ( qname ) ; int index = Arrays . binarySearch ( AttributeName . ATTRIBUTE_HASHES , hash ) ; if ( index < 0 ) { return AttributeName . createAttributeName ( qname . intern ( ) , false ) ; } else { AttributeName rv = AttributeName . ATTRIBUTE_NAMES [ index ] ; @ Local String name = rv . getLocal ( AttributeName . HTML ) ; if ( ! name . equals ( qname ) ) { return AttributeName . createAttributeName ( qname . intern ( ) , false ) ; } return rv ; } }
returns an attribute name by buffer . < p > c + + ownership : the return value is either released by the caller if the attribute is a duplicate or the ownership is transferred to htmlattributes and released upon clearing or destroying that object .
