SigUtil
0.95
Utility modules for modern C++
|
HTML風にタグをエンコード・デコードする More...
Public Member Functions | |
TagDealer (S tag_encloser_left, S tag_encloser_right) | |
S | encode (S const &src, S const &tag) const |
auto | decode (S const &src, S const &tag) -> Maybe< S > const |
template<template< class T_, class Allocator=std::allocator< T_ >> class Container> | |
S | encode (Container< S > const &src, Container< S > const &tag) const |
template<template< class T_, class Allocator=std::allocator< T_ >> class Container> | |
auto | decode (S const &src, Container< S > const &tag) -> Maybe< Container< S >> const |
HTML風にタグをエンコード・デコードする
例: <TAG>text<TAG>
S | 扱う文字列型 |
Definition at line 30 of file tag_dealer.hpp.
|
inline |
左右それぞれの囲み文字を指定(ex. left = "<", right= ">")
Definition at line 39 of file tag_dealer.hpp.
|
inline |
指定したタグを探してデコード
src | タグ付きの文字列 |
tag | 囲み文字の内側のタグ文字 |
Definition at line 60 of file tag_dealer.hpp.
auto sig::TagDealer< S >::decode | ( | S const & | src, |
Container< S > const & | tag | ||
) | -> Maybe<Container<S>> const |
Definition at line 85 of file tag_dealer.hpp.
|
inline |
タグ付きの文字列にエンコード
src | 本文 |
tag | 囲み文字の内側のタグ文字 |
Definition at line 48 of file tag_dealer.hpp.
S sig::TagDealer< S >::encode | ( | Container< S > const & | src, |
Container< S > const & | tag | ||
) | const |
Definition at line 77 of file tag_dealer.hpp.