From: Han-Wen Nienhuys Date: Wed, 21 Dec 2005 00:40:00 +0000 (+0000) Subject: (is_absolute): new method. X-Git-Tag: release/2.7.25~16 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=bb23ced4f1cc6627d21aa29691976d0e560411e0;p=lilypond.git (is_absolute): new method. --- diff --git a/flower/file-name.cc b/flower/file-name.cc index 7eb7267d55..3f5318678f 100644 --- a/flower/file-name.cc +++ b/flower/file-name.cc @@ -116,3 +116,9 @@ File_name::File_name (String file_name) else base_ = file_name; } + +bool +File_name::is_absolute () const +{ + return (dir_[0] == DIRSEP); +} diff --git a/flower/include/file-name.hh b/flower/include/file-name.hh index 68ba6d8f46..748ff52737 100644 --- a/flower/include/file-name.hh +++ b/flower/include/file-name.hh @@ -22,6 +22,7 @@ public: File_name (String); + bool is_absolute () const; String to_string () const; };