mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Take care about how wxString and wxArrayString are substituted in the docs. There are some cases where it is a substring and so should not be replaced.
This commit is contained in:
@@ -168,9 +168,14 @@ def buildEnumsAndMethods(sphinxDir):
|
|||||||
text = text.replace(item, '""')
|
text = text.replace(item, '""')
|
||||||
|
|
||||||
# Replace ArrayXXX stuff...
|
# Replace ArrayXXX stuff...
|
||||||
for cpp in ['ArrayString()', 'ArrayInt()', 'ArrayDouble()', 'ArrayString']:
|
for cpp in ['ArrayString()', 'ArrayInt()', 'ArrayDouble()']:
|
||||||
text = text.replace(cpp, '[]')
|
text = text.replace(cpp, '[]')
|
||||||
|
|
||||||
|
for cpp, py in [('`ArrayString`', 'list of strings'),
|
||||||
|
('`ArrayInt`', 'list of integers'),
|
||||||
|
('`ArrayDouble`', 'list of floats')]:
|
||||||
|
text = text.replace(cpp, py)
|
||||||
|
|
||||||
# Remove lines with "Event macros" in them...
|
# Remove lines with "Event macros" in them...
|
||||||
text = text.replace('Event macros:', '')
|
text = text.replace('Event macros:', '')
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ def replaceCppItems(line):
|
|||||||
if item in CPP_ITEMS:
|
if item in CPP_ITEMS:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if 'wxString' in item:
|
if 'wxString' == item:
|
||||||
item = 'string'
|
item = 'string'
|
||||||
elif 'wxCoord' == item:
|
elif 'wxCoord' == item:
|
||||||
item = 'int'
|
item = 'int'
|
||||||
|
|||||||
Reference in New Issue
Block a user