[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] C# regex (Was: [TSVN] Autocompletion list in the commit dialog)

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-02-21 18:53:37 CET

Peter Mounce wrote:

> Mark II:
>
> .cs =
> (?:public\s+|protected\s+|private\s+)(?:(?:\w+[\.]+)*\w+\s+)+(\w+)
>
> It matches property indexers, for example:
>
> public HandsetRow this[int index] {
> get {
> return ((HandsetRow)(this.Rows[index]));
> }
> }
>
> will match "this".
>
> On an auto-generated dataset C# file of about 80Kb, the benchmark returned
> 39seconds. On a C# windows form, 40Kb, it took 6seconds.

Thanks for that. This works much better than the last one (tested with
the Ankh source).

Committed in revision 2719.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Feb 21 18:54:13 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.