C++ library for urlencode.

Related tags

cpp cpp-library urlencode
Overview

liburlencode

C library for urlencode.

Inspired from https://github.com/dnmfarrell/URI-Encode-C.

Preparation

Build

Static Library

$ make
$ make BUILDTYPE=Debug

The static library will be at out/$(BUILDTYPE)/libencode.a.

Example

$ make example
$ make BUILDTYPE=Debug example

The example executable binary will be at out/$(BUILDTYPE)/example.

Usage

size_t Encode(const char* src, const size_t len, char* dst, bool space_to_plus);
size_t Decode(const char* src, const size_t len, char* dst);

If you're encoding, make sure that the dst's total length be 3 times as src's. You may refers to example/main.cc.

Owner
Khaidi Chu
A lagging people @alibaba. Loving @Amunu.
Khaidi Chu
A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.

webargs Homepage: https://webargs.readthedocs.io/ webargs is a Python library for parsing and validating HTTP request objects, with built-in support f

marshmallow-code 1.2k Oct 19, 2021
:electric_plug: Generating short urls with python has never been easier

pyshorteners A simple URL shortening API wrapper Python library. Installing pip install pyshorteners Documentation https://pyshorteners.readthedocs.i

Ellison 316 Oct 25, 2021