System.AnsiStrings.ExtractRelativePath

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function ExtractRelativePath(const BaseName, DestName: AnsiString): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall ExtractRelativePath(const System::AnsiString BaseName, const System::AnsiString DestName)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

説明

ファイル パス名をベース名からの相対パスで返します。

ExtractRelativePath は、DestName で指定されたファイル パス名を、指定された BaseName からの相対パスで返します。共通のパス ディレクトリを取り除き、BaseName パスから 1 レベル上がるごとに、Windows では '..\' を、Linux では '../' を、それぞれ追加します。

関連項目