parameters: (filename)
return_statement: return is_dylib.groupdict()
docstring: A dylib name can take one of the following four forms:
          Location/Name.SomeVersion_Suffix.dylib
          Location/Name.SomeVersion.dylib
          Location/Name_Suffix.dylib
          Location/Name.dylib
  
      returns None if not found or a mapping equivalent to:
          dict(
              location='Location',
              name='Name.SomeVersion_Suffix.dylib',
              shortname='Name',
              version='SomeVersion',
              suffix='Suffix',
          )
  
      Note that SomeVersion and Suffix are optional and may be None
      if not present.
docstring_summary: A dylib name can take one of the following four forms:
          Location/Name.SomeVersion_Suffix.dylib
          Location/Name.SomeVersion.dylib
          Location/Name_Suffix.dylib
          Location/Name.dylib
docstring_tokens: A dylib name can take one of the following four forms : Location / Name . SomeVersion_Suffix . dylib Location / Name . SomeVersion . dylib Location / Name_Suffix . dylib Location / Name . dylib
function: def dylib_info(filename):
      """
      A dylib name can take one of the following four forms:
          Location/Name.SomeVersion_Suffix.dylib
          Location/Name.SomeVersion.dylib
          Location/Name_Suffix.dylib
          Location/Name.dylib
  
      returns None if not found or a mapping equivalent to:
          dict(
              location='Location',
              name='Name.SomeVersion_Suffix.dylib',
              shortname='Name',
              version='SomeVersion',
              suffix='Suffix',
          )
  
      Note that SomeVersion and Suffix are optional and may be None
      if not present.
      """
      is_dylib = DYLIB_RE.match(filename)
      if not is_dylib:
          return None
      return is_dylib.groupdict()
function_tokens: def dylib_info ( filename ) : is_dylib = DYLIB_RE . match ( filename ) if not is_dylib : return None return is_dylib . groupdict ( )