| 260 | } |
| 261 | |
| 262 | std::string MetadataTagProcessorImpl::ValidateAndFormat_building_levels(std::string v) |
| 263 | { |
| 264 | // Some mappers use full width unicode digits. We can handle that. |
| 265 | strings::NormalizeDigits(v); |
| 266 | // value of building_levels is only one number |
| 267 | double levels; |
| 268 | if (Prefix2Double(v, levels) && levels >= 0 && levels <= kMaxBuildingLevelsInTheWorld) |
| 269 | return strings::to_string_dac(levels, 1); |
| 270 | |
| 271 | return {}; |
| 272 | } |
| 273 | |
| 274 | std::string MetadataTagProcessorImpl::ValidateAndFormat_level(std::string v) |
| 275 | { |