diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-08-24 14:09:59 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-08-24 14:09:59 +0200 |
commit | 691708e7fd4929e5d0835978e9a652e118c641f1 (patch) | |
tree | 47aac8621b0475a69080fa53f3c07132998db23f /src/utils.cpp | |
parent | 210336e55efa9ccc6295f8767935570532e80a41 (diff) | |
download | dabmux-691708e7fd4929e5d0835978e9a652e118c641f1.tar.gz dabmux-691708e7fd4929e5d0835978e9a652e118c641f1.tar.bz2 dabmux-691708e7fd4929e5d0835978e9a652e118c641f1.zip |
Support reading mux config in JSON
Diffstat (limited to 'src/utils.cpp')
-rw-r--r-- | src/utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index 71e2b5c..c9a2714 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -599,3 +599,8 @@ long hexparse(const std::string& input) return value; } +bool stringEndsWith(const std::string& fullString, const std::string& ending) +{ + return fullString.length() >= ending.length() and + fullString.compare(fullString.length() - ending.length(), ending.length(), ending) == 0; +} |