16 #ifndef INCLUDE_NN_NLIB_FILESTYLEURI_H_ 17 #define INCLUDE_NN_NLIB_FILESTYLEURI_H_ 21 #include "nn/nlib/Swap.h" 36 bool Parse(
const char* first,
const char* last) NLIB_NOEXCEPT
NLIB_NONNULL;
37 bool Parse(
const char* str) NLIB_NOEXCEPT {
45 char (&buf)[N])
const NLIB_NOEXCEPT {
46 return this->ComposeString(buf, N);
57 struct FileStyleUriPrivate;
58 mutable FileStyleUriPrivate* prv_;
63 #ifndef __cpp_rvalue_references 66 #endif // INCLUDE_NN_NLIB_FILESTYLEURI_H_ #define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
TypeName で指定されたクラスのコピーコンストラクタと代入演算子を禁止します。
fileスキームを用いたURIをパースしたりURI文字列を構築したりするためのクラスです。
bool Parse(const char *str) noexcept
Parse(str, str + nlib_strlen(str))を返します。
bool ComposeString(char(&buf)[N]) const noexcept
URI文字列を書き出します。
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
#define NLIB_CEXPR
利用可能であればconstexprが定義されます。そうでない場合は空文字列です。
一般的なURIをパースしたり構築したりするためのクラスです。
#define NLIB_FINAL
利用可能であればfinalが定義されます。そうでない場合は空文字列です。
constexpr FileStyleUri() noexcept
デフォルトコンストラクタです。オブジェクトを初期化します。