/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * e-url.c * * Copyright (C) 2001 Ximian, Inc. * * Developed by Jon Trowbridge */ /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. */ #include #include #include "e-url.h" char * e_url_shroud (const char *url) { const char *first_colon = NULL; const char *last_at = NULL; const char *p; char *shrouded; if (url == NULL) return NULL; /* Skip past the moniker */ for (p = url; *p && *p != ':'; ++p); if (*p) ++p; while (*p) { if (first_colon == NULL && *p == ':') first_colon = p; if (*p == '@') last_at = p; ++p; } if (first_colon && last_at && first_colon < last_at) { shrouded = g_strdup_printf ("%.*s%s", first_colon - url, url, last_at); } else { shrouded = g_strdup (url); } return shrouded; } gboolean e_url_equal (const char *url1, const char *url2) { char *shroud1 = e_url_shroud (url1); char *shroud2 = e_url_shroud (url2); gint len1, len2; gboolean rv; if (shroud1 == NULL || shroud2 == NULL) { rv = (shroud1 == shroud2); } else { len1 = strlen (shroud1); len2 = strlen (shroud2); rv = !strncmp (shroud1, shroud2, MIN (len1, len2)); } g_free (shroud1); g_free (shroud2); return rv; } e='dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
f='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/multimedia/x264?id=d87e1066b8ae654fa6955193803d4d4b9c28eda9'>multimedia/x264: chase X264_COMMIT location
Commit message (Expand)AuthorAgeFilesLines
* Remove devel/libexecinfo.mat2017-09-226-116/+0
* - Add LICENSEamdmi32017-07-053-13/+14
jbeich2019-03-191-1/+1
* multimedia/x264: update to 0.157.2945jbeich2019-03-192-8/+8
* Make PORTREVISION bump-able for Tools/scripts/bump-revision.sh by usinggerald2018-12-151-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-12-121-1/+1
* multimedia/ffmpeg: update to 4.1jbeich2018-11-061-1/+1
* multimedia/x264: update to 0.155.2917jbeich2018-08-103-8/+8
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-07-301-1/+1
* multimedia/ffmpeg: update to 4.0jbeich2018-05-021-1/+1
* Switch some MASTER_SITES from http/ftp to https.mat2018-02-271-2/+2
* multimedia/l-smash: update to 2.14.5jbeich2018-02-111-1/+1
* multimedia/{lib,}x264: update to 0.152.2854jbeich2017-12-293-20/+20
* multimedia/ffmpeg: update to 3.4jbeich2017-10-211-1/+1
* multimedia/x264: r445837 forgot to move option helpersjbeich2017-07-151-2/+0
* multimedia/x264: enable FFMS, LAVF, SWSCALE by defaultjbeich2017-07-151-2/+2
* multimedia/x264: yasm is only used by libx264, so move ASM option therejbeich2017-07-152-4/+12
* multimedia/{lib,}x264: update to 0.148.2795jbeich2017-07-154-63/+28
* multimedia/x264: update to 0.148.2768jbeich2017-06-262-7/+7
* Bump PORTREVISIONs for ports depending on the canonical version of GCC andgerald2017-04-01