From c6a9fc33c589a4c5a1a7c9183e90580d1e15ff67 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 18 Dec 2018 22:21:14 +0100 Subject: [PATCH] pictureviewer: more string replacements for eventlogo in GetLogoName() Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/74833dfa4726bb715e524a80f192c901ca66ec73 Author: vanhofen Date: 2018-12-18 (Tue, 18 Dec 2018) Origin message was: ------------------ - pictureviewer: more string replacements for eventlogo in GetLogoName() --- src/driver/pictureviewer/pictureviewer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 0d1f0ca63..100fb4f10 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -568,6 +568,15 @@ bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &C std::transform(EventName.begin(), EventName.end(), EventName.begin(), ::tolower); EventName = str_replace(" ", "-", EventName); + EventName = str_replace(",", "-", EventName); + EventName = str_replace(";", "-", EventName); + EventName = str_replace(":", "-", EventName); + EventName = str_replace("+", "-", EventName); + EventName = str_replace("&", "-", EventName); + EventName = str_replace("ä", "ae", EventName); + EventName = str_replace("ö", "oe", EventName); + EventName = str_replace("ü", "ue", EventName); + EventName = str_replace("ß", "ss", EventName); //printf("GetLogoName(): EventName \"%s\"\n", EventName.c_str()); for (size_t i = 0; i < (sizeof(fileType) / sizeof(fileType[0])); i++)