| 181 | } |
| 182 | |
| 183 | string const GetReadableAddress(string const & address) |
| 184 | { |
| 185 | // Instead of housenumber range strings like 123:456, hyphenate like 123 - 456 |
| 186 | string out = address; |
| 187 | size_t pos = 0; |
| 188 | while ((pos = out.find(":", pos)) != string::npos) |
| 189 | { |
| 190 | out.replace(pos, 1, "\u2009\u2013\u2009"); // thin space + en-dash + thin space |
| 191 | break; |
| 192 | } |
| 193 | return out; |
| 194 | } |
| 195 | |
| 196 | /* |
| 197 | int8_t GetNameForSearchOnBooking(RegionData const & regionData, StringUtf8Multilang const & src, string & name) |
no test coverage detected