mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 03:35:35 +08:00
Ref T265, Ref T430, Ref T473 improved validator for parts
This commit is contained in:
committed by
Mat Sutcliffe
parent
d89b217e9b
commit
6bd3a50ed8
@@ -44,6 +44,18 @@ namespace BlackMisc
|
||||
return result;
|
||||
}
|
||||
|
||||
//! Remove if in string
|
||||
inline QString removeIfInString(const QString &string, const QString &inString)
|
||||
{
|
||||
return removeChars(string.simplified(), [&](QChar c) { return inString.contains(c); });
|
||||
}
|
||||
|
||||
//! Remove if NOT in string
|
||||
inline QString removeIfNotInString(const QString &string, const QString &inString)
|
||||
{
|
||||
return removeChars(string.simplified(), [&](QChar c) { return !inString.contains(c); });
|
||||
}
|
||||
|
||||
//! Remove line breaks and tabs
|
||||
inline QString removeLineBreakAndTab(const QString &s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user