51{
52 if (genre == nullptr)
53 return {};
54
55
56 if (genre[0] != '(')
57
59
60 auto it = genre;
61 auto end = it + std::strlen(it);
62
63 while (*it == '(')
64 {
65 int tagValue;
67
68
69 if (result.ec != std::errc {})
70 break;
71
72 const auto parsedGenre = tags.
GetGenre(tagValue);
73
74 if (!parsedGenre.empty())
75 return parsedGenre;
76
77 it = result.ptr;
78
79
81 break;
82
83
84 if (*it != ')')
85 break;
86
87 ++it;
88 }
89
92
94}
FromCharsResult FromChars(const char *buffer, const char *last, float &value) noexcept
Parse a string into a single precision floating point value, always uses the dot as decimal.
wxString ToWXString(const std::string &str)
const char * end(const char *str) noexcept