Giter Club home page Giter Club logo

uri-parser's Introduction

What is it?

a little C++ library that parses URLs into bite-sized pieces.

Why another uri parsing library?

Every other url-parsing library I could find was part of a ginormous library which I invariably couldn't build in one or two of my environments. I got tired of that, so I wrote this.

But, you're using Standard strings! isn't that super slow?!

When I ran the example on my machine, it parsed something like 700,000 urls in a second. That was fast enough for me. If it's not enough for you, fork away.

Okay... so how do I use this one?

Take a look at single-example.cpp It should be pretty straightforward if you're into c++. You can also call the extraction methods in your own driver code. But...why would you do that?

So, you were lazy and didn't hide the extractors in a class. tsk tsk.

Yes, well, I figure you're probably smart enough to know which functions you want. The whole bit is namespaced, so you won't accidentally run the extractors even if you happen to be writing code that defines an ExtractProtocol function. I have no love of class-locked methods when functions will do.

btw...

and incidentally, this is based on the url spec defined in RFC 1738, which in case anyone else cares, is decidedly more up to date than the draft-version on w3.org... not that I'm bitter over that hour of wasted whiteboarding or anything.

License

This code is licensed under the MIT License. See LICENSE.txt.

uri-parser's People

Contributors

3noch avatar dodikk avatar joechrysler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.