move lowercased function to RTC_ENABLE_MEDIA

This commit is contained in:
Filip Klembara
2021-05-31 15:24:22 +02:00
parent a2b019465c
commit a9057a02e5

View File

@ -279,10 +279,13 @@ int copyAndReturn(std::vector<T> b, T *buffer, int size) {
return int(b.size());
}
#if RTC_ENABLE_MEDIA
// function is used in RTC_ENABLE_MEDIA only
string lowercased(string str) {
std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c) { return std::tolower(c); });
return str;
}
#endif // RTC_ENABLE_MEDIA
} // namespace
void rtcInitLogger(rtcLogLevel level, rtcLogCallbackFunc cb) {