MCPcopy Create free account
hub / github.com/boostorg/build / _cppName

Method _cppName

v2/tools/doxproc.py:791–808  ·  view source on GitHub ↗
( self, type )

Source from the content-addressed store, hash-verified

789 return ''
790
791 def _cppName( self, type ):
792 parts = re.search('^([^<]+)[<]?(.*)[>]?$',type.strip().strip(':'))
793 result = {
794 'compoundname' : parts.group(1),
795 'namespace' : parts.group(1).split('::')[0:-1],
796 'name' : parts.group(1).split('::')[-1],
797 'specialization' : parts.group(2)
798 }
799 if result['namespace'] and len(result['namespace']) > 0:
800 namespace = '::'.join(result['namespace'])
801 while (
802 len(result['namespace']) > 0 and (
803 not self.symbols.has_key(namespace) or
804 self.symbols[namespace]['kind'] != 'namespace')
805 ):
806 result['name'] = result['namespace'].pop()+'::'+result['name']
807 namespace = '::'.join(result['namespace'])
808 return result
809
810 def _createNode( self, tag, **kwargs ):
811 result = self.boostbook.createElement(tag)

Callers 2

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected