3 #ifndef INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ 4 #define INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ 14 typedef std::pair<const char*, const char*>
KeyValue;
25 char (&buf)[N])
const NLIB_NOEXCEPT {
26 return this->ComposeString(buf, N);
35 bool AddQuery(
const char* key,
const char* value)
NLIB_NOEXCEPT;
43 const char* GetQueryValue(
const char* key)
const NLIB_NOEXCEPT;
45 const KeyValue* GetQueryKeyValue(
size_t i)
const NLIB_NOEXCEPT;
52 struct HttpStyleUriPrivate;
53 mutable HttpStyleUriPrivate* prv_;
57 #endif // INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ http/httpsスキームを用いたURIをパースしたりURI文字列を構築したりするためのクラスです。 ...
std::pair< const char *, const char * > KeyValue
クエリのキーと値を格納する型です。
bool ComposeString(char(&buf)[N]) const noexcept
ComposeString(buf, N) を呼び出します。
HttpStyleUri() noexcept
デフォルトコンストラクタです。オブジェクトを初期化します。
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
一般的なURIをパースしたり構築したりするためのクラスです。
#define NLIB_FINAL
利用可能であればfinalが定義されます。そうでない場合は空文字列です。