lib/types.js
function parseStructName (struct) {
  var s = struct.substring(1, struct.length-1)
    , equalIndex = s.indexOf('=')
  if (~equalIndex)
    s = s.substring(0, equalIndex)
  return s
}
function parseStructName (struct) {
  var s = struct.substring(1, struct.length-1)
    , equalIndex = s.indexOf('=')
  if (~equalIndex)
    s = s.substring(0, equalIndex)
  return s
}
function parseStructName ( struct ) { var s = struct . substring ( 1 , struct . length - 1 ) , equalIndex = s . indexOf ( '=' ) if ( ~ equalIndex ) s = s . substring ( 0 , equalIndex ) return s }
Extracts only the name of the given struct type encoding string.

@api private
Extracts only the name of the given struct type encoding string .