Electroneum
Classes | Namespaces | Macros | Functions
query_string.h File Reference
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#include <iostream>
Include dependency graph for query_string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  crow::query_string
 

Namespaces

 crow
 

Macros

#define CROW_QS_ISHEX(x)   ((((x)>='0'&&(x)<='9') || ((x)>='A'&&(x)<='F') || ((x)>='a'&&(x)<='f')) ? 1 : 0)
 
#define CROW_QS_HEX2DEC(x)   (((x)>='0'&&(x)<='9') ? (x)-48 : ((x)>='A'&&(x)<='F') ? (x)-55 : ((x)>='a'&&(x)<='f') ? (x)-87 : 0)
 
#define CROW_QS_ISQSCHR(x)   ((((x)=='=')||((x)=='#')||((x)=='&')||((x)=='\0')) ? 0 : 1)
 

Functions

int qs_strncmp (const char *s, const char *qs, size_t n)
 
int qs_parse (char *qs, char *qs_kv[], int qs_kv_size)
 
int qs_decode (char *qs)
 
char * qs_k2v (const char *key, char *const *qs_kv, int qs_kv_size, int nth)
 
char * qs_scanvalue (const char *key, const char *qs, char *val, size_t val_len)
 

Macro Definition Documentation

◆ CROW_QS_HEX2DEC

#define CROW_QS_HEX2DEC (   x)    (((x)>='0'&&(x)<='9') ? (x)-48 : ((x)>='A'&&(x)<='F') ? (x)-55 : ((x)>='a'&&(x)<='f') ? (x)-87 : 0)

◆ CROW_QS_ISHEX

#define CROW_QS_ISHEX (   x)    ((((x)>='0'&&(x)<='9') || ((x)>='A'&&(x)<='F') || ((x)>='a'&&(x)<='f')) ? 1 : 0)

◆ CROW_QS_ISQSCHR

#define CROW_QS_ISQSCHR (   x)    ((((x)=='=')||((x)=='#')||((x)=='&')||((x)=='\0')) ? 0 : 1)

Function Documentation

◆ qs_decode()

int qs_decode ( char *  qs)
inline

◆ qs_k2v()

char * qs_k2v ( const char *  key,
char *const *  qs_kv,
int  qs_kv_size,
int  nth = 0 
)
inline

◆ qs_parse()

int qs_parse ( char *  qs,
char *  qs_kv[],
int  qs_kv_size 
)
inline

◆ qs_scanvalue()

char * qs_scanvalue ( const char *  key,
const char *  qs,
char *  val,
size_t  val_len 
)
inline

◆ qs_strncmp()

int qs_strncmp ( const char *  s,
const char *  qs,
size_t  n 
)
inline