]> sigrok.org Git - pulseview.git/blobdiff - pv/util.hpp
DecodeSignal: Re-set decoder metadata after stack termination
[pulseview.git] / pv / util.hpp
index bc71624bf3109fc2cb498778e943ac7acb3480f0..274839f8b7fd5cbd898bb451f032969a20669120 100644 (file)
@@ -21,6 +21,8 @@
 #define PULSEVIEW_UTIL_HPP
 
 #include <cmath>
+#include <string>
+#include <vector>
 
 #ifndef Q_MOC_RUN
 #include <boost/multiprecision/cpp_dec_float.hpp>
@@ -29,6 +31,9 @@
 #include <QMetaType>
 #include <QString>
 
+using std::string;
+using std::vector;
+
 namespace pv {
 namespace util {
 
@@ -112,6 +117,8 @@ QString format_time_si_adjusted(const Timestamp& t, SIPrefix prefix,
 QString format_time_minutes(const Timestamp& t, signed precision = 0,
        bool sign = true);
 
+vector<string> split_string(string text, string separator);
+
 } // namespace util
 } // namespace pv