14 return std::lexicographical_compare(a1->begin(), a1->end(), a2->begin(), a2->end());
22 const size_t s1 = w1.size ();
23 const size_t s2 = w2.size ();
24 return (s1 == s2 && std::lexicographical_compare(w1.begin(), w1.end(), w2.begin(), w2.end(),
cmp_way_arcs))
31 const size_t len = w.size ();
32 for (
size_t i = 0 ; i < len; ++i)
40 fprintf (stderr,
"(nil)");
52 const size_t ranges = arc.size ();
53 if (ranges == 1 && arc[0].first == arc[0].second)
55 fprintf (f,
"\\x%X", arc[0].first);
60 for (
size_t i = 0; i < ranges; ++i)
62 const uint32_t l = arc[i].first;
63 const uint32_t u = arc[i].second;
64 fprintf (f,
"\\x%X", l);
67 fprintf (f,
"-\\x%X", u);
static bool cmp_way_arcs(const way_arc_t *a1, const way_arc_t *a2)
static void fprint_way_arc(FILE *f, const way_arc_t &arc)
std::vector< const way_arc_t * > way_t
void fprint_way(FILE *f, const way_t &w)
std::vector< std::pair< uint32_t, uint32_t > > way_arc_t
bool cmp_ways(const way_t &w1, const way_t &w2)