apidoc::length_exp (private)

 apidoc::length_exp data

Defined in packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl

Parameters:
data
Returns:
length of a generic subexpression.

Partial Call Graph (max 5 caller/called nodes):
%3 apidoc::length_regexp apidoc::length_regexp (private) apidoc::length_exp apidoc::length_exp apidoc::length_regexp->apidoc::length_exp apidoc::length_braces apidoc::length_braces (private) apidoc::length_exp->apidoc::length_braces apidoc::length_spaces apidoc::length_spaces (private) apidoc::length_exp->apidoc::length_spaces apidoc::length_string apidoc::length_string (private) apidoc::length_exp->apidoc::length_string

Testcases:
No testcase defined.
Source code:
        if {[string index $data 0] eq "\""} {
            return [length_string $data]
        } elseif {[string index $data 0] eq "\{"} {
            return [length_braces $data]
        } elseif {[string index $data 0] eq " "} {
            return [length_spaces $data]
        }
        if { [regexp -indices { } $data match] } {
            return [lindex $match 1]
        }
        return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: