It's been mentioned in the past many times before, and Tom and Lummox have shown some form of interest in getting proper Regex support in DM beyond Lummox's library.
I wanted to re-open this issue because I've used PCRE quite a bit and find its license suitable for usage in an application like BYOND. The BSD license permits redistribution in binary or source code form either modified or unmodified as long as the copyright notice remains intact and the license remains intact. That doesn't seem like too much of a stretch.
| |||||||
#1 May 28 2012, 5:09 pm
|
|
I'm going to bump this because this would be nice to have.
| |
#2 Aug 9 2012, 9:50 pm
|
|
Lummox JR is always talking about how every feature relating to inputs or whatever would require Regex support. Well, here it is. SSX supports.
| |
#3 Aug 9 2012, 11:36 pm
|
|
C++11 comes with built-in regex in the library, there's no need to use anything external.
| |
#4 Aug 9 2012, 11:37 pm (Edited on Aug 9 2012, 11:42 pm)
|
|
BYOND uses like, C++1. (or 98, probably.)
| |
#5 Aug 10 2012, 12:16 am
|
|
BYOND will never use a newer C++ standard because it is compiled with an older, unsupported compiler. They accept this.
| |
#6 Aug 10 2012, 12:21 am
|
|
If it's compiled with VC6++ (or whatever it's name) then there could be problems, but anything later than that shouldn't cause any problems. If they use gcc there should be even less problems.
| |
#7 Aug 10 2012, 2:39 am
|
|
It's compiled with exactly that, Visual C++ 6.0.
| |
#8 Aug 10 2012, 2:56 am
|
|
Ouch...
I haven't used VC++6, but I can't imagine it causing a lot problems. I've tried compiling some old sources and only for() loops needed fixing. | |
#9 Aug 10 2012, 8:06 am
|
|
Either way, that's slightly irrelevant. PCRE is a solution that should work perfectly fine even with their compiler choice and it has a compatible license.
| |
If PCRE doesn't have VC++6 source there's chance it won't work either.
VC++6 isn't really C++ as it doesn't follow C++ standard. | |
#11 Aug 10 2012, 8:46 am
|
|
It doesn't need to have "VC++6 source." MSVC++ 6 is legitimate C++. No compiler strictly follows any of the standards, they're all flawed in some way. Generally, you assess a compiler by just how compliant it actually is. In light of this, it's true that back in its day MSVC++ 6 was pretty low-ranking as far as standards compliance, but mostly as far as templates (and thus, the STL) were concerned.
| |
#12 Aug 10 2012, 9:16 am (Edited on Aug 10 2012, 9:24 am)
|
|
This is an old thread, but chances are nothing has changed - it doesn't compile:
http://www.mail-archive.com/pcre-dev@exim.org/msg01371.html Edit: What's wrong with using external .dll? It would be almost trivial to make few functions to utilize regex library. So far I cannot see anyone mentioning this solution, not sure about disadvantages. | |
#13 Aug 11 2012, 10:46 am
|
|
An external DLL works fine. In our case we use a modified version of Kuraudo's libregex library. Modified because AFAIK his original library had some a buggy Linux version of his DLL. I fixed that by manually recompiling it.
| |