X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Futil.h;h=b7219169ebd97a0918405be5e25277d54df78213;hb=534f170271bf6e3749a1c10ca6518eb7746e71f0;hp=514c564f4381a93f14f9ff3fc3e06f94efe0168e;hpb=41a136e99bffde8e203fb1abff7c9affbbb16a8b;p=quassel.git diff --git a/src/common/util.h b/src/common/util.h index 514c564f..b7219169 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -80,28 +80,6 @@ QByteArray prettyDigest(const QByteArray &digest); */ QString formatCurrentDateTimeInString(const QString &formatStr); -/** Check if a scope rule matches a string - * - * When isRegEx is false: - * Checks that the string does NOT match ANY inverted rules (prefixed by '!'), then checks that - * it matches AT LEAST one normal (non-inverted) rule. - * - * If only inverted rules are specified, it'll match so long as the string does not match any - * inverted rules (implicit wildcard). - * - * When isRegEx is true: - * Checks that the string matches the entire scopeRule as a regular expression. If scopeRule starts - * with a '!', check that the string does NOT match the regular expression. - * - * @param string String to test, e.g. network/channel name - * @param scopeRule ';'-separated list of wildcard expressions, prefix of '!' inverts subrule - * @param isRegEx If true, treat entire scope rule as regular expression, not wildcards - * @param isCaseSensitive If true, treat as case-sensitive, else case-insensitive - * @return True if matches, otherwise false - */ -bool scopeMatch(const QString &string, const QString &scopeRule, - const bool &isRegEx = false, const bool &isCaseSensitive = false); - /** * Try to localize a given date/time in seconds from Unix epoch, pass through string if invalid *