#include <pathname.hpp>
langedge::PathNameに対する継承グラフ


Public 型 | |
| enum | { PATHNAME_MAXLEN = _MAX_PATH } |
| パス長の最大値 [詳細] | |
Public メソッド | |
| PathName () | |
| デフォルトコンストラクタ | |
| PathName (const PathCharType *path) | |
| パス名(Char*)で初期化されるコンストラクタ. | |
| PathName (const PathStringType &path) | |
| パス名(String)で初期化されるコンストラクタ. | |
| PathName (const PathName &path) | |
| コピーコンストラクタ | |
| const PathName & | operator= (const PathCharType *path) |
| パス名(Char*)の代入 | |
| const PathName & | operator= (const PathStringType &path) |
| パス名(String)の代入 | |
| const PathName & | operator= (const PathName &path) |
| パス名(PathName)の代入 | |
| PathName & | operator+= (const PathCharType *path) |
| パス名(Char*)を付加するオペレータ. | |
| PathName & | operator+= (const PathStringType &path) |
| パス名(String)を付加するオペレータ. | |
| PathName & | operator+= (const PathName &path) |
| パス名(PathName)を付加するオペレータ. | |
| PathName | operator+ (const PathCharType *path) const |
| 与えられたパス名(Char*)を付加した結果のパス名を返す. | |
| PathName | operator+ (const PathStringType &path) const |
| 与えられたパス名(String)を付加した結果のパス名を返す. | |
| PathName | operator+ (const PathName &path) const |
| 与えられたパス名(PathName)を付加した結果のパス名を返す. | |
| bool | operator== (const PathCharType *path) const |
| 等値比較 | |
| bool | operator== (const PathStringType &path) const |
| 等値比較 | |
| bool | operator== (const PathName &path) const |
| 等値比較 | |
| bool | operator!= (const PathCharType *path) const |
| 不等比較 | |
| bool | operator!= (const PathStringType &path) const |
| 不等比較 | |
| bool | operator!= (const PathName &path) const |
| 不等比較 | |
| bool | empty () const |
| 空パスか | |
| size_t | length () const |
| 長さを得る | |
| const PathCharType * | c_str () const |
| パス名を C-like な文字列で得る | |
| const PathStringType & | toString () const |
| パス名を保持する String メンバへの参照を得る | |
| PathCharType | getCharAt (size_t n) const |
| パス名のn要素目を得る | |
| bool | isDosRootDirectory () const |
| パスは、DOS形式のルートディレクトリか. | |
| bool | isRootDirectory () const |
| 自パスは、ルートディレクトリか. | |
| bool | isAbsolutePath () const |
| 与えられたパスは、絶対パス形式か. | |
| bool | isTailCharPathDelimiter () const |
| パス名の末尾がパス区切り文字か. | |
| PathName | appendPathDelimiter () const |
| 自パス名の末尾にパス区切り文字を付加したパスを返す. | |
| PathName | chopPathDelimiter () const |
| 自パス名の末尾のパス区切りを削除したパスを返す. | |
| PathName | appendExtension (const PathName &extension) const |
| 自パスに、拡張子を付加したパスを返す. | |
| PathName | appendSuffixAsExtension (const PathName &suffix) const |
| 自パスに、サフィックスを付加したパスを返す. | |
| PathName | removeExtension () const |
| 自パスから、拡張子を削除したパスを返す. | |
| PathName | extractFileName () const |
| 自パスから、ディレクトリ部を削除して、末尾のファイル名部分のパスを返す. | |
| PathName | superDirectory (int level=1) const |
| 自パスから、下位ディレクトリ部を削除して、上位ディレクトリ部のパスを返す. | |
| PathName | parentDirectory () const |
| 自パスの、親ディレクトリのパスを返す. | |
| PathName | canonicalizePath () const |
| 自パスをフルパス (正規化されたパス) に変換したパスを返す. | |
| PathName | fullPath () const |
| 自パスをフルパス (正規化されたパス) に変換したパスを返す. | |
Static Public メソッド | |
| static PathCharType | delimChar () |
| パス区切り文字を返す. | |
| static const PathStringType & | delimStr () |
| パス区切り文字列を返す. | |
| static bool | isDosRootDirectory (const PathStringType &path) |
| 与えられたパスは、DOS形式のルートディレクトリか. | |
| static bool | isRootDirectory (const PathStringType &path) |
| 与えられたパスは、ルートディレクトリか. | |
| static bool | isAbsolutePath (const PathStringType &path) |
| 与えられたパスは、絶対パス形式か. | |
| static bool | isTailCharPathDelimiter (const PathStringType &path) |
| 与えられたパス名の末尾がパス区切り文字か. | |
| static PathName | appendPathDelimiter (const PathStringType &path) |
| 与えられたパス名の末尾にパス区切り文字を付加したパスを返す. | |
| static PathName | chopPathDelimiter (const PathStringType &path) |
| 与えられたパス名の末尾のパス区切りを削除したパスを返す. | |
| static PathName | appendExtension (const PathStringType &path, const PathStringType &extension) |
| 与えられたパスに、拡張子を付加したパスを返す. | |
| static PathName | appendSuffixAsExtension (const PathStringType &path, const PathStringType &suffix) |
| 与えられたパスに、サフィックスを付加したパスを返す. | |
| static PathName | removeExtension (const PathStringType &path) |
| 与えられたパスから、拡張子を削除したパスを返す. | |
| static PathName | extractFileName (const PathStringType &path) |
| 与えられたパスから、ディレクトリ部を削除して、末尾のファイル名部分のパスを返す. | |
| static PathName | joinPathName (const PathStringType &path1, const PathStringType &path2, const PathStringType &path3="", const PathStringType &path4="", const PathStringType &path5="") |
| 与えられたパス名を結合する. | |
| static PathName | superDirectory (const PathStringType &path, int level=1) |
| 与えられたパスから、下位ディレクトリ部を削除して、上位ディレクトリ部のパスを返す. | |
| static PathName | parentDirectory (const PathStringType &path) |
| 与えられたパスの、親ディレクトリのパスを返す. | |
| static PathName | canonicalizePath (const PathStringType &path) |
| 与えられたパスをフルパス (正規化されたパス) に変換したパスを返す. | |
| static PathName | fullPath (const PathStringType &path) |
| 与えられたパスをフルパス (正規化されたパス) に変換したパスを返す. | |
構成 | |
| class | BufferType |
パス名に対して、結合や、親ディレクトリ取得などの操作を行う。
ShiftJIS環境でパス名を構成する2バイト文字の一部として 0x5C ('\') が使われていても、それをパス区切りとは見なさない。
|
|
パス長の最大値
|
|
|
デフォルトコンストラクタ
|
|
|
パス名(Char*)で初期化されるコンストラクタ.
|
|
|
パス名(String)で初期化されるコンストラクタ.
|
|
|
コピーコンストラクタ
|
|
|
パス区切り文字を返す. Windows環境なら '\' を返し、それ以外では '/' を返す |
|
|
パス区切り文字列を返す. Windows環境なら "\" を返し、それ以外では "/" を返す |
|
|
パス名(Char*)の代入
|
|
|
パス名(String)の代入
|
|
|
パス名(PathName)の代入
|
|
|
パス名(Char*)を付加するオペレータ. 必要なら、間にパスデリミタを挿入する。
|
|
|
パス名(String)を付加するオペレータ. 必要なら、間にパスデリミタを挿入する。
|
|
|
パス名(PathName)を付加するオペレータ. 必要なら、間にパスデリミタを挿入する。
|
|
|
与えられたパス名(Char*)を付加した結果のパス名を返す. 自身は変化しない。
|
|
|
与えられたパス名(String)を付加した結果のパス名を返す. 自身は変化しない。
|
|
|
与えられたパス名(PathName)を付加した結果のパス名を返す. 自身は変化しない。
|
|
|
等値比較
|
|
|
等値比較
|
|
|
等値比較
|
|
|
不等比較
|
|
|
不等比較
|
|
|
不等比較
|
|
|
空パスか
|
|
|
長さを得る
|
|
|
パス名を C-like な文字列で得る
|
|
|
パス名を保持する String メンバへの参照を得る
|
|
|
パス名のn要素目を得る
|
|
|
与えられたパスは、DOS形式のルートディレクトリか. DOS形式: ドライブ文字:\
|
|
|
パスは、DOS形式のルートディレクトリか. DOS形式: ドライブ文字:\
|
|
|
与えられたパスは、ルートディレクトリか. DOS形式(C:\ など)も含む。
|
|
|
自パスは、ルートディレクトリか. DOS形式(C:\ など)も含む。
|
|
|
与えられたパスは、絶対パス形式か. 先頭がパスデリミタで始まるか。(DOS形式(C:\ など)も含む)
|
|
|
与えられたパスは、絶対パス形式か. 先頭がパスデリミタで始まるか。(DOS形式(C:\ など)も含む)
|
|
|
与えられたパス名の末尾がパス区切り文字か.
|
|
|
パス名の末尾がパス区切り文字か.
|
|
|
与えられたパス名の末尾にパス区切り文字を付加したパスを返す. すでに末尾にパス区切り文字が付加されてあれば何もしない
|
|
|
自パス名の末尾にパス区切り文字を付加したパスを返す. すでに末尾にパス区切り文字が付加されてあれば何もしない
|
|
|
与えられたパス名の末尾のパス区切りを削除したパスを返す. ルートディレクトリ以外のパスで、末尾にパス区切りが付加されていた場合、 その文字を削除する。
|
|
|
自パス名の末尾のパス区切りを削除したパスを返す. ルートディレクトリ以外のパスで、末尾にパス区切りが付加されていた場合、 その文字を削除する。
|
|
||||||||||||
|
与えられたパスに、拡張子を付加したパスを返す.
付加する拡張子の先頭がピリオドでなければ、自動的にピリオドを挿入する。
|
|
|
自パスに、拡張子を付加したパスを返す.
付加する拡張子の先頭がピリオドでなければ、自動的にピリオドを挿入する。
|
|
||||||||||||
|
与えられたパスに、サフィックスを付加したパスを返す.
付加するサフィックスにピリオドが含まれていなければ、 そのサフィックスを拡張子とみなして、自動的にピリオドを挿入する。
|
|
|
自パスに、サフィックスを付加したパスを返す.
付加するサフィックスにピリオドが含まれていなければ、 そのサフィックスを拡張子とみなして、自動的にピリオドを挿入する。
|
|
|
与えられたパスから、拡張子を削除したパスを返す.
例1: foo.c ⇒ foo
|
|
|
自パスから、拡張子を削除したパスを返す.
例1: foo.c ⇒ foo
|
|
|
与えられたパスから、ディレクトリ部を削除して、末尾のファイル名部分のパスを返す. 例: /foo/bar/hoge.c ⇒ hoge.c を残す。
|
|
|
自パスから、ディレクトリ部を削除して、末尾のファイル名部分のパスを返す. 例: /foo/bar/hoge.c ⇒ hoge.c を残す。
|
|
||||||||||||||||||||||||
|
与えられたパス名を結合する.
必要なら、間にパスデリミタを挿入する。 逆に、各パスの末尾にパスデリミタが付加されていてもよい。
|
|
||||||||||||
|
与えられたパスから、下位ディレクトリ部を削除して、上位ディレクトリ部のパスを返す.
指定されたレベルだけ、下位ディレクトリ部を削除する。
|
|
|
自パスから、下位ディレクトリ部を削除して、上位ディレクトリ部のパスを返す.
指定されたレベルだけ、下位ディレクトリ部を削除する。
|
|
|
与えられたパスの、親ディレクトリのパスを返す. 自身を親ディレクトリに変更する。
|
|
|
自パスの、親ディレクトリのパスを返す. 自身を親ディレクトリに変更する。
|
|
|
与えられたパスをフルパス (正規化されたパス) に変換したパスを返す. 正規化に失敗した場合は、空のパスを返す。
|
|
|
与えられたパスをフルパス (正規化されたパス) に変換したパスを返す. 正規化に失敗した場合は、空のパスを返す。 canonicalizePath() と同じ。
|
|
|
自パスをフルパス (正規化されたパス) に変換したパスを返す. 正規化に失敗した場合は、空のパスを返す。
|
|
|
自パスをフルパス (正規化されたパス) に変換したパスを返す. 正規化に失敗した場合は、空のパスを返す。 canonicalizePath() と同じ。
|
1.4.2