forked from premiere/premiere-libtorrent
clean up TORRENT_FINAL and TORRENT_OVERRIDE in documentation
This commit is contained in:
parent
c919c63ca3
commit
5d7fbd42c7
|
@ -149,6 +149,7 @@ def is_visible(desc):
|
|||
return True
|
||||
|
||||
def highlight_signature(s):
|
||||
s = s.replace('TORRENT_OVERRIDE', 'override').replace('TORRENT_FINAL', 'final')
|
||||
name = s.split('(', 1)
|
||||
name2 = name[0].split(' ')
|
||||
if len(name2[-1]) == 0: return s
|
||||
|
@ -273,7 +274,8 @@ def parse_class(lno, lines, filename):
|
|||
state = 'private'
|
||||
class_type = 'class'
|
||||
|
||||
name = decl.split(':')[0].replace('class ', '').replace('struct ', '').replace('TORRENT_FINAL', '').strip()
|
||||
decl = decl.replace('TORRENT_FINAL', 'final')
|
||||
name = decl.split(':')[0].replace('class ', '').replace('struct ', '').replace('final', '').strip()
|
||||
|
||||
|
||||
while lno < len(lines):
|
||||
|
|
Loading…
Reference in New Issue