summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util.cc6
-rw-r--r--src/lib/util.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 61c9dac06..6f366257c 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -636,3 +636,9 @@ relaxed_string_to_float (string s)
return lexical_cast<float> (s);
}
}
+
+bool
+string_not_empty (string s)
+{
+ return !s.empty ();
+}
diff --git a/src/lib/util.h b/src/lib/util.h
index 640933f00..142b21e96 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -75,5 +75,6 @@ extern std::map<std::string, std::string> split_get_request (std::string url);
extern std::string video_asset_filename (boost::shared_ptr<dcp::PictureAsset> asset);
extern std::string audio_asset_filename (boost::shared_ptr<dcp::SoundAsset> asset);
extern float relaxed_string_to_float (std::string);
+extern bool string_not_empty (std::string);
#endif