After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791198 - Use g_str_match_string() instead of custom matching code
Use g_str_match_string() instead of custom matching code
Status: RESOLVED OBSOLETE
Product: libgweather
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
Depends on:
Blocks:
 
 
Reported: 2017-12-04 10:23 UTC by Bastien Nocera
Modified: 2021-06-09 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2017-12-04 10:23:15 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=791066#c15

This would require somebody understanding that code first though.
Comment 1 Giovanni Campagna 2017-12-05 17:51:40 UTC
The current code does, or wants to do:

(name is the name of the location, key is what the user typed)
- split name on ","
- split key on spaces
- for each split in name:
  - split on spaces
  - match each word of key with a word of name (skipping some words of name if needed)
  - the last word of the match can be a prefix instead of a full match

Essentially this boils down to search by state, country (after the ",") or city name, but you cannot straddle across "," or flip words.
Comment 2 GNOME Infrastructure Team 2021-06-09 21:08:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgweather/-/issues/140.