Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » regex (assembly) from boost
regex (assembly) from boost [message #723] Sat, 28 January 2006 10:22 Go to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
I am really missing the regular expression support I had in Qt. I am trying to use the boost regexp library in one of my u++ projects. I suppose that the clearest solution would be to create an assembly for boost, and packages for each module of it, with dependencies, etc. Is there anybody who already did this?

[Updated on: Tue, 02 May 2006 17:07] by Moderator

Report message to a moderator

Re: assembly for boost [message #725 is a reply to message #723] Sat, 28 January 2006 11:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Like this?

http://www.handhelds.org/~zecke/apidocs/qt/qregexp.html

Should I put that on ToDo list?

I think that regular expressions should definitely be part of Core, but so far I am not quite sure what syntax to choose.

Mirek
Re: assembly for boost [message #726 is a reply to message #725] Sat, 28 January 2006 11:16 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
luzr wrote on Sat, 28 January 2006 05:09

Like this?
http://www.handhelds.org/~zecke/apidocs/qt/qregexp.html


Yeah, like this. Plus look at the find, findRev & replace methods of QString. Having both substring search&replace and regexp search&replace on overloaded methods of QString produces very clear and intuitive client code.
Quote:

Should I put that on ToDo list?
Yes please.
Quote:

I think that regular expressions should definitely be part of Core, but so far I am not quite sure what syntax to choose.
You mean the Regexp flavour, or the API syntax?

Re: assembly for boost [message #728 is a reply to message #725] Sat, 28 January 2006 17:07 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I think for u++ the best solution is to use PCRE:
http://www.pcre.org/
It has BSD license. I was playing a bit with it. It compiles and run without any problems. It provides Perl syntax for regular expressions (the best IMO). The library is widely known and used.
Re: assembly for boost [message #729 is a reply to message #728] Sat, 28 January 2006 21:09 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member


Performance comparison of PCRE with the two boost regexp libraries. Don't know what to make of this - xpressive seems to lose.
http://article.gmane.org/gmane.comp.lib.boost.devel/131338/m atch=pcre


Comments from John Maddock on xpressive
http://article.gmane.org/gmane.comp.lib.boost.devel/131762/m atch=pcre

Comments from A Alexandrescu in 2002 on boost::regex code size - 500KB compiled
http://article.gmane.org/gmane.comp.lib.boost.devel/75813/ma tch=pcre
(dunno if it's still a problem)


Graeme
Re: assembly for boost [message #730 is a reply to message #723] Sun, 29 January 2006 14:08 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Even though regexps are interesting, boost also provides several other libraries. I would like to go back my initial question: how to integrate the boost libraries into an u++ application? It seems strange that nobody did this before because boost has a simillar concept of providing rich functionality with "agressive" use of c++ features, like u++. I suppose that anybody who finds u++ appealing would logicaly like boost too.

[Updated on: Sun, 29 January 2006 14:09]

Report message to a moderator

Re: assembly for boost [message #731 is a reply to message #730] Sun, 29 January 2006 15:19 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
First - to integrate boots, the best way IMHO would be to create a "boost" package. Just put boost into the directory and add all .cpp files to package...

Now for boost and aggresive use of C++ - in fact, boost follows quite different direction as it based on the premise that standard library / STL is the right way to go (actually, that is quite understandable).

U++ has taken quite different path, as we have found several problems in STL/standard library, that to us seems to severly influence both application development effectiveness AND runtime perfomance.

Means, U++ is compatible (why not Smile, but follows own way in many things (and yes, for many people this is quite a problem, the only apology is that Qt seems to do the same Smile
Previous Topic: int <-> String conversions
Next Topic: multithread access to the same control
Goto Forum:
  


Current Time: Fri Apr 19 01:48:10 CEST 2024

Total time taken to generate the page: 0.04652 seconds