Function: semantic-java-dim
semantic-java-dim is a byte-compiled function defined in java.el.gz.
Signature
(semantic-java-dim ID)
Documentation
Split ID string into a pair (NAME . DIM).
NAME is ID without trailing brackets: "[]". DIM is the dimension of NAME deduced from the number of trailing brackets, or 0 if there is no trailing brackets.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/java.el.gz
;;; Parsing
;;
(defsubst semantic-java-dim (id)
"Split ID string into a pair (NAME . DIM).
NAME is ID without trailing brackets: \"[]\".
DIM is the dimension of NAME deduced from the number of trailing
brackets, or 0 if there is no trailing brackets."
(let ((dim (string-match "\\(\\[]\\)+\\'" id)))
(if dim
(cons (substring id 0 dim)
(/ (length (match-string 0 id)) 2))
(cons id 0))))