- weak string href = parse_tag_attribute ("a", "href").offset (13); // "/movies?near=" ->"berlin&date=1"
- // TODO - extract location and cache it
+ string href = parse_tag_attribute ("a", "href");
+ char* p = (char*) href.offset (13); // skip "/movies?near="
+ int j = -1;
+
+ while (p[++j] != '&' && p[j] != 0);
+ p[0] = p[0].toupper ();
+ location = ((string) p).ndup (j);