[haiku-bugs] Re: [Haiku] #13002: Parse URLs Without Requiring Group-Capable Regex

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Sun, 16 Oct 2016 09:26:42 -0000

#13002: Parse URLs Without Requiring Group-Capable Regex
----------------------------------+--------------------------------
   Reporter:  apl-haiku           |      Owner:  nobody
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  Network & Internet  |    Version:  R1/Development
 Resolution:                      |   Keywords:  URL BUrl regex Mac
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+--------------------------------

Comment (by pulkomandy):

 I'm not sure we want to go this way, for several reasons.

 1) Parsing URL is very tricky. The regexp as given by the RFC is the
 reference and we should try to stick with it.
 2) I don't think it is a good idea to work around problems in other
 operating systems. This code is first meant to be used by our native
 system (Haiku), and if there are problems with other OSes, these should be
 fixed in the build-compatibility headers, not by rewriting code all over
 the place to fit the limitations.
 3) It leads to a lot more code to test and debug.
 4) There was code similar to this before I implemented the regexp parsing,
 and it was broken.
 5) What is the impact on performance? Is it faster or slower than the
 regexp way?

--
Ticket URL: <https://dev.haiku-os.org/ticket/13002#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: