From be20a78ab01b924fc1261ff3c71361feb440e592 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 3 Oct 2021 09:01:14 +0200 Subject: xv: fix missing search results, incorrect title to thumbnail matches --- include/StringUtils.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/StringUtils.hpp b/include/StringUtils.hpp index 6554ea7..29befc7 100644 --- a/include/StringUtils.hpp +++ b/include/StringUtils.hpp @@ -22,6 +22,9 @@ namespace QuickMedia { char to_upper(char c); bool strncase_equals(const char *str1, const char *str2, size_t length); bool strcase_equals(const char *str1, const char *str2); + // Note: does not check for overflow bool to_num(const char *str, size_t size, int &num); + // Note: does not check for overflow + bool to_num_hex(const char *str, size_t size, int &num); std::string seconds_to_relative_time_str(time_t seconds); } \ No newline at end of file -- cgit v1.2.3