52{
53 if (genre == nullptr)
54 return {};
55
56
57 if (genre[0] != '(')
58
60
61 auto it = genre;
62 auto end = it + std::strlen(it);
63
64 while (*it == '(')
65 {
66 int tagValue;
68
69
70 if (result.ec != std::errc {})
71 break;
72
73 const auto parsedGenre = tags.
GetGenre(tagValue);
74
75 if (!parsedGenre.empty())
76 return parsedGenre;
77
78 it = result.ptr;
79
80
82 break;
83
84
85 if (*it != ')')
86 break;
87
88 ++it;
89 }
90
93
95}
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.
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
wxString ToWXString(const std::string &str)