RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details C++ Function Parser
Expression
(?<expo>public\:|protected\:|private\:) (?<ret>(const )*(void|int|unsigned int|long|unsigned long|float|double|(class .*)|(enum .*))) (?<decl>__thiscall|__cdecl|__stdcall|__fastcall|__clrcall) (?<ns>.*)\:\:(?<class>(.*)((<.*>)*))\:\:(?<method>(.*)((<.*>)*))\((?<params>((.*(<.*>)?)(,)?)*)\)
Description
Parses a C++ function, including return type, declaration type, namespace, class, method, exposure (public, private, protected) and params.
Matches
public: void __thiscall myClass::method(int, class myOtherClass * ) | public: void __thiscall myNamespace::myClass::method(void) | protected: class std::string __cdecl Library::Class::Method(class Param *, enum Type & const)
Non-Matches
myfunc(3) | object::myFunc(9, 4) | object->method(var)
Author Rating: The rating for this expression. Sean Sube
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials