return false;
}
+ const String upperKey = String(key).upper();
for(size_t i = 0; invalidKeys[i] != 0; ++i) {
- if(String(key).upper() == invalidKeys[i])
+ if(upperKey == invalidKeys[i])
return false;
}
{
PropertyMap map;
String key = description().upper();
- if(key.isEmpty() || key.upper() == "LYRICS")
+ if(key.isEmpty() || key == "LYRICS")
map.insert("LYRICS", text());
else
map.insert("LYRICS:" + key, text());
{
PropertyMap map;
String key = description().upper();
- if(key.isEmpty() || key.upper() == "URL")
+ if(key.isEmpty() || key == "URL")
map.insert("URL", url());
else
map.insert("URL:" + key, url());
String String::upper() const
{
String s;
-
- static int shift = 'A' - 'a';
+ s.d->data.reserve(size());
for(ConstIterator it = begin(); it != end(); ++it) {
if(*it >= 'a' && *it <= 'z')
- s.d->data.push_back(*it + shift);
+ s.d->data.push_back(*it + 'A' - 'a');
else
s.d->data.push_back(*it);
}