Returns the column number of an element (SAX flavor)

@param attrs
the element's attributes that hold the location information
@return the element's column number or <code>-1</code> if
<code>attrs</code> has no location information.
541710
public static int getColumn(Attributes attrs) {
		String col = attrs.getValue(URI, COL_ATTR);
		return col != null ? Integer.parseInt(col) : -1;
	}
767638
def ColumnAttr(name='', attr=None, **kwargs):
    ''
    return Column(name,
                  expr=attr if attr is not None else name,
                  getter=lambda col,row: getattrdeep(row, col.expr),
                  setter=lambda col,row,val: setattrdeep(row, col.expr, val),
                  **kwargs)
1200655
private int getColumn(String str)
    {
        int ret = 0;

        // Find the end of the column characters
        int len = 0;
        for(int i = 0; 
            i < str.length() && str.charAt(i) >= 'A' && str.charAt(i) <= 'Z'; 
            i++, len++);

        // Calculate the column number
        int pos = 0;
        for(int i = len-1; i >= 0; i--, pos++)
        {
            char c = str.charAt(i);
            int col = (int)(c - '@');
            if(pos > 0)
                col *= 26*pos;
            ret += col;
        }

        return ret;
    }
1242472
public Integer getInt(String attr) {
		Number n = (Number)attrs.get(attr);
		return n != null ? n.intValue() : null;
	}
553133
public static int findRowIdColumnIndex(String[] columnNames) {
        int length = columnNames.length;
        for (int i = 0; i < length; i++) {
            if (columnNames[i].equals("_id")) {
                return i;
            }
        }
        return -1;
    }
755732
public Object getAttrVal(String attr) throws NamingException {
    if (attr.equalsIgnoreCase("dn")) {
      return getDn();
    }

    Attribute a = findAttr(attr);

    if (a == null) {
      return null;
    }

    return a.get();
  }
469246
public static String getAttributeValue(final Node elementNode, final String attrName, final String defValue)
    {
        final Node attrNode = elementNode.getAttributes().getNamedItemNS(null, attrName);

        if (attrNode == null)
        {
            return defValue;
        }

        return attrNode.getNodeValue();
    }
849911
protected function getMethodFromAttributes($attrs)
    {
        if (!is_array($attrs) || !isset($attrs['method'])) {
            return $this->getEventFromAttributes($attrs);
        }

        return $attrs['method'];
    }
106144
public int getNumberOfColumns() {
        List<WebElement> cells;
        String xPath = getXPathBase() + "tr";

        List<WebElement> elements = HtmlElementUtils.locateElements(xPath);

        if (elements.size() > 0 && getDataStartIndex() - 1 < elements.size()) {
            cells = elements.get(getDataStartIndex() - 1).findElements(By.xpath("td"));
            return cells.size();
        }

        return 0;
    }
1199926
public static int getLine(Attributes attrs) {
		String line = attrs.getValue(URI, LINE_ATTR);
		return line != null ? Integer.parseInt(line) : -1;
	}
388058
public static int getColumn(Element elem) {
		Attr attr = elem.getAttributeNodeNS(URI, COL_ATTR);
		return attr != null ? Integer.parseInt(attr.getValue()) : -1;
	}
1132234
private Attr[] sortAttributes(NamedNodeMap attrs) {

        int len = (attrs != null) ? attrs.getLength() : 0;
        Attr[] array = new Attr[len];
        for (int i = 0; i < len; i++) {
            array[i] = (Attr) attrs.item(i);
        }
        for (int i = 0; i < len - 1; i++) {
            String name = array[i].getNodeName();
            int index = i;
            for (int j = i + 1; j < len; j++) {
                String curName = array[j].getNodeName();
                if (curName.compareTo(name) < 0) {
                    name = curName;
                    index = j;
                }
            }
            if (index != i) {
                Attr temp = array[i];
                array[i] = array[index];
                array[index] = temp;
            }
        }
        return (array);
    }
880746
function(attr) {
      var startIndex, endIndex,
        i = 0,
        hasEndBracket = true,
        indices = [];
      startIndex = attr.indexOf('[', i);
      while (startIndex > 0 && hasEndBracket) {
         endIndex = attr.indexOf(']', i);
         indices.push(parseInt(attr.substring(startIndex + 1, endIndex), 10));
         i = endIndex + 1;
         hasEndBracket = i > 0;
         startIndex = attr.indexOf('[', i);
      }
      return indices;
    }
729753
public static String getAttributeValueOrNull(final Node elementNode, final String attrName)
    {
        if (null == elementNode || null == elementNode.getAttributes())
        {
            return null;
        }

        final Node attrNode = elementNode.getAttributes().getNamedItemNS(null, attrName);
        if (null == attrNode)
        {
            return null;
        }

        return attrNode.getNodeValue();
    }
1361059
public static function newRow(array $attrs = array()) {
        if (!empty(self::$row_data))
            self::$rows[count(self::$rows) - 1][] = self::$row_data;
        self::$row_data = array();
        self::$rows[][] = $attrs;
        return count(self::$rows);
    }
1072523
function get(attr) {
        if (!~attr.indexOf('.')) return this.attributes[attr];

        var result = attr
          , structure = this.attributes;

        for (var paths = attr.split('.'), i = 0, length = paths.length; i < length && structure; i++) {
          result = structure[+paths[i] || paths[i]];
          structure = result;
        }

        return result || this.attributes[attr];
      }
5764
protected final String getDate(final Attribute attr) {
        final GetDateVisitor visitor = new GetDateVisitor();
        attr.accept(visitor);
        return visitor.getDate();
    }