Guitar
Functions
htmlencode.cpp File Reference
#include "htmlencode.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <cctype>
Include dependency graph for htmlencode.cpp:

Functions

static void html_encode_ (char const *ptr, char const *end, bool utf8through, std::vector< char > *vec)
 html_encode_ More...
 
static void html_decode_ (char const *ptr, char const *end, std::vector< char > *vec)
 
std::string html_encode (char const *ptr, char const *end, bool utf8through)
 
std::string html_decode (char const *ptr, char const *end)
 
std::string html_encode (char const *ptr, size_t len, bool utf8through)
 
std::string html_decode (char const *ptr, size_t len)
 
std::string html_encode (char const *ptr, bool utf8through)
 
std::string html_decode (char const *ptr)
 
std::string html_encode (std::string_view const &str, bool utf8through)
 
std::string html_decode (std::string_view const &str)
 

Function Documentation

◆ html_decode() [1/4]

std::string html_decode ( char const *  ptr)
Here is the call graph for this function:

◆ html_decode() [2/4]

std::string html_decode ( char const *  ptr,
char const *  end 
)
Here is the call graph for this function:

◆ html_decode() [3/4]

std::string html_decode ( char const *  ptr,
size_t  len 
)
Here is the call graph for this function:

◆ html_decode() [4/4]

std::string html_decode ( std::string_view const &  str)
Here is the call graph for this function:

◆ html_decode_()

static void html_decode_ ( char const *  ptr,
char const *  end,
std::vector< char > *  vec 
)
static
Here is the call graph for this function:

◆ html_encode() [1/4]

std::string html_encode ( char const *  ptr,
bool  utf8through 
)
Here is the call graph for this function:

◆ html_encode() [2/4]

std::string html_encode ( char const *  ptr,
char const *  end,
bool  utf8through 
)
Here is the call graph for this function:

◆ html_encode() [3/4]

std::string html_encode ( char const *  ptr,
size_t  len,
bool  utf8through 
)
Here is the call graph for this function:

◆ html_encode() [4/4]

std::string html_encode ( std::string_view const &  str,
bool  utf8through 
)
Here is the call graph for this function:

◆ html_encode_()

static void html_encode_ ( char const *  ptr,
char const *  end,
bool  utf8through,
std::vector< char > *  vec 
)
static

html_encode_

Parameters
ptr
end
utf8through非ASCII文字を &# エンコードするなら false 、そのまま出力するなら true
vec
Here is the call graph for this function: