( self, type )
| 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) |
no test coverage detected