You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
295 B
15 lines
295 B
3 days ago
|
#include "StrUtil.h"
|
||
|
|
||
|
QString StrUtil::camelToUri(const QString &camel)
|
||
|
{
|
||
|
QString uri("");
|
||
|
for (const auto &item : camel) {
|
||
|
if (item.isUpper()) {
|
||
|
uri.append("/").append(item);
|
||
|
} else {
|
||
|
uri.append(item);
|
||
|
}
|
||
|
}
|
||
|
return uri.toLower();
|
||
|
}
|