diff options
Diffstat (limited to 'src/auxiliary/functions.cc')
-rw-r--r-- | src/auxiliary/functions.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/auxiliary/functions.cc b/src/auxiliary/functions.cc index 860524a..8cefbc5 100644 --- a/src/auxiliary/functions.cc +++ b/src/auxiliary/functions.cc @@ -165,4 +165,13 @@ void to_label(std::string &text) } } +void strip_quotes(std::string &text) +{ + for (size_t pos = 0; pos < text.size(); pos++) { + if (text[pos] == '"') { + text[pos] = '\''; + } + } +} + } |