Fix formatting
This commit is contained in:
parent
0021ccef59
commit
91e9623b31
@ -57,7 +57,8 @@ class BaseAPI
|
|||||||
{
|
{
|
||||||
// TODO: check forward/reverse
|
// TODO: check forward/reverse
|
||||||
const auto toName = [this](const auto &phantom) {
|
const auto toName = [this](const auto &phantom) {
|
||||||
return std::string(facade.GetNameForID(facade.GetNameIndex(phantom.forward_segment_id.id)));
|
return std::string(
|
||||||
|
facade.GetNameForID(facade.GetNameIndex(phantom.forward_segment_id.id)));
|
||||||
};
|
};
|
||||||
const auto noEmpty = [](const auto &name) { return !name.empty(); };
|
const auto noEmpty = [](const auto &name) { return !name.empty(); };
|
||||||
|
|
||||||
@ -127,7 +128,8 @@ class BaseAPI
|
|||||||
static_cast<float>(static_cast<double>(util::toFloating(snapped_location.lat))));
|
static_cast<float>(static_cast<double>(util::toFloating(snapped_location.lat))));
|
||||||
|
|
||||||
const auto toName = [this](const auto &phantom) {
|
const auto toName = [this](const auto &phantom) {
|
||||||
return std::string(facade.GetNameForID(facade.GetNameIndex(phantom.forward_segment_id.id)));
|
return std::string(
|
||||||
|
facade.GetNameForID(facade.GetNameIndex(phantom.forward_segment_id.id)));
|
||||||
};
|
};
|
||||||
const auto noEmpty = [](const auto &name) { return !name.empty(); };
|
const auto noEmpty = [](const auto &name) { return !name.empty(); };
|
||||||
|
|
||||||
|
@ -71,8 +71,10 @@ template <typename StringView> inline auto decompose(const StringView &lhs, cons
|
|||||||
// we compare suffixes based on this value, it might break UTF chars, but as long as we are
|
// we compare suffixes based on this value, it might break UTF chars, but as long as we are
|
||||||
// consistent in handling, we do not create bad results
|
// consistent in handling, we do not create bad results
|
||||||
std::string str(view);
|
std::string str(view);
|
||||||
std::transform(str.begin(), str.end(), str.begin(),
|
std::transform(str.begin(),
|
||||||
[](unsigned char c){ return std::tolower(c); } // correct
|
str.end(),
|
||||||
|
str.begin(),
|
||||||
|
[](unsigned char c) { return std::tolower(c); }
|
||||||
);
|
);
|
||||||
auto front = str.find_first_not_of(' ');
|
auto front = str.find_first_not_of(' ');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user