/* -*- 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; } pm_and_yarn/devel/electron4/files/ini-1.3.7'>dependabot/npm_and_yarn/devel/electron4/files/ini-1.3.7 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/arabic
Commit message (Expand)AuthorAgeFilesLines
* KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-252-9/+13
* - upgrade to 3.5.2bapt2012-04-234-0/+19
* The KDE/FreeBSD team is pleased to announce KDE SC 4.7.4, whichavilla2012-01-251-2/+2
* - Fix WWW addressnivit2011-12-141-1/+1
* - Pass maintainership to office@FreeBSD.orgsunpoet2011-11-291-1/+1
* The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-141-2/+2
* The KDE/FreeBSD team is pleased to announce KDE Software Compilationavilla2011-10-172-7/+4
* Change maintainer address to my FreeBSD addresscs2011-09-151-1/+1
* Reset maintainership de jure. In fact KDE 3 has not been maintained by our teammakc2011-07-082-2/+2
* Update KDE Software Compilation ports to 4.6.5makc2011-07-082-2/+34
* - kick MD5miwi2011-07-021-1/+0
* The FreeBSD KDE Team is pleased to announce KDE SC 4.6.4. Read fullavilla2011-06-141-2/+2
* Update KDE Software Compilation ports to 4.6.3makc2011-05-172-2/+19
* Bump PORTREVISION after open-mofit updatemakc2011-05-021-1/+1
* The FreeBSD KDE Team is pleased to announce April updates for KDEavilla2011-04-072-2/+19
* The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-252-16/+9
* - Get Rid MD5 supportmiwi2011-03-195-5/+0
* - Remove unnecessary PKGNAMEPREFIX declarationsunpoet2011-01-094-4/+0
* - The KDE FreeBSD team is proud to announce the release of KDE 4.5.5fluffy2011-01-081-2/+2
* KDE FreeBSD team presents KDE SC 4.5.4.makc2010-12-031-2/+2
* KDE FreeBSD team presents KDE SC 4.5.3.makc2010-11-041-3/+2
* KDE FreeBSD team presents KDE SC 4.5.2.makc2010-10-061-3/+3
* Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-162-4/+2
* KDE FreeBSD team presents KDE SC 4.5.1.makc2010-09-032-74/+34
* Present KDE SC 4.4.5 for FreeBSD.makc2010-06-301-3/+3
* - Update to 2.01.stefan2010-06-284-16/+21
* Present KDE SC 4.4.4 for FreeBSD.makc2010-06-021-3/+3
* Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-312-2/+2
* Convert LDCONFIG_DIRS to USE_LDCONFIG for unmaintained ports.makc2010-05-241-2/+1
* - The FreeBSD KDE team is pleased to announce KDE SC 4.4.3 for FreeBSDfluffy2010-05-113-28/+11
* - update to 1.4.1dinoex2010-03-284-3/+4
* Presenting KDE 4.3.5 for FreeBSD. The official release notes for thismiwi2010-02-072-4/+3
* - update to jpeg-8dinoex2010-02-054-3/+4
* - Update to 0.7.0wen2010-01-104-50/+6
* - Update to 1.6.2wen2010-01-103-8/+6
* - SUB_FILES += pkg-messagepgollucci2010-01-082-9/+9
* - SUB_FILES += pkg-messagepgollucci2010-01-083-18/+18
* - Use SUB_FILES for pkg-messagepgollucci2010-01-072-3/+3
* The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3
* The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-272-5/+5
* - Mark MAKE_JOBS_UNSAFEpav2009-11-201-0/+1
* The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-022-6/+6
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-224-7/+4
* Reset sbahra at his request due to lack of time to work on these ports.linimon2009-08-209-18/+6
* clean upmakc2009-08-081-4/+1
* The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-053-17/+93
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-314-2/+4
* The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-031-3/+3
* Update KDE ports to 4.2.3makc2009-05-101-3/+3
* The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-022-7/+3
* Update KDE to 4.2.1.makc2009-03-09