projects
/
lilypond.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bce46a
)
(is_absolute): new method.
author
hanwen
<hanwen>
Wed, 21 Dec 2005 00:40:00 +0000
(
00:40
+0000)
committer
hanwen
<hanwen>
Wed, 21 Dec 2005 00:40:00 +0000
(
00:40
+0000)
flower/file-name.cc
patch
|
blob
|
history
flower/include/file-name.hh
patch
|
blob
|
history
diff --git
a/flower/file-name.cc
b/flower/file-name.cc
index 7eb7267d55d7f43bebf13e83e95c9eab6488f987..3f5318678f0ecd7c730773901cd87fb2cc70b957 100644
(file)
--- 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 68ba6d8f4626e2913d60aa706c6d908e0605672d..748ff527374982e0850ce1f3b43baf4a77a505f2 100644
(file)
--- 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;
};