mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Fixed not parsing function names containing numbers
This commit is contained in:
parent
a80ee82e53
commit
b2cfbe23c5
@ -35,7 +35,7 @@ public void ProcessClass( string fulldef, string classname, string inner )
|
||||
|
||||
var lines = inner.Split( new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries );
|
||||
|
||||
var func = new Regex( @"virtual (.+[\t |\*])([a-zA-Z]+?)\((.+?)?\) = 0 ?;" );
|
||||
var func = new Regex( @"virtual (.+[\t |\*])([a-z0-9A-Z]+?)\((.+?)?\) = 0 ?;$" );
|
||||
|
||||
var c = new Class();
|
||||
c.Name = classname;
|
||||
@ -54,7 +54,11 @@ public void ProcessClass( string fulldef, string classname, string inner )
|
||||
|
||||
foreach ( var linestr in lines )
|
||||
{
|
||||
var line = linestr;
|
||||
var line = linestr.Trim();
|
||||
|
||||
var commentPos = line.IndexOf( "//" );
|
||||
if ( commentPos > 0 )
|
||||
line = line.Substring( 0, commentPos-1 ).Trim();
|
||||
|
||||
if ( line.Trim().Length < 4 ) continue;
|
||||
if ( line.Trim().StartsWith( "public:" ) ) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user