[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    [Gambas-devel] pcre component does something now :)
From:       Rob <sourceforge-raindog2 () kudla ! org>
Date:       2004-09-29 22:33:06
Message-ID: 200409291833.06173.sourceforge-raindog2 () kudla ! org
[Download RAW message or body]

I added two properties to my pcre component's one class, Regex: 
Offset and Match.

Offset works.... after you NEW the class (thereby executing the 
regex) it will either hold the offset of your match, or -1 if it 
failed.  So you can already use it as a sort of PCRE-enhanced 
"Instr", if you feel like living dangerously.

Match, however, which is supposed to return that part of the 
string that matched the expression, will cause gbx to segfault. 
:P

Nonetheless I figured I should post about it.  Oh yeah, and 
whenever I open a project in gambas after installing this 
component, I get this error dialog:

CClassInfo._new:25

Not an object

[OK]

Things continue normally after that.  Has anyone else with 
component writing experience run into this?  I can't find 
anything I'm doing wrong.  Anyway, here's a link to the tarball:

http://www.kudla.org/rpm/pcre-200409291821.tar.gz

Build from src/lib in the gambas 0.99 tree.

Rob





-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic