File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
ksmt-core/src/main/kotlin/io/ksmt Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2013,6 +2013,11 @@ open class KContext(
2013
2013
KSuffixOfExpr (this , arg0, arg1)
2014
2014
}
2015
2015
2016
+ /* *
2017
+ * Check if first string is a suffix of second.
2018
+ * */
2019
+ infix fun KExpr<KStringSort>.isSuffixOf (other : KExpr <KStringSort >) = mkSuffixOf(this , other)
2020
+
2016
2021
private val prefixOfExprCache = mkAstInterner<KPrefixOfExpr >()
2017
2022
2018
2023
/* *
@@ -2030,6 +2035,11 @@ open class KContext(
2030
2035
KPrefixOfExpr (this , arg0, arg1)
2031
2036
}
2032
2037
2038
+ /* *
2039
+ * Check if first string is a prefix of second.
2040
+ * */
2041
+ infix fun KExpr<KStringSort>.isPrefixOf (other : KExpr <KStringSort >) = mkPrefixOf(this , other)
2042
+
2033
2043
private val stringLtCache = mkAstInterner<KStringLtExpr >()
2034
2044
2035
2045
/* *
@@ -2139,6 +2149,11 @@ open class KContext(
2139
2149
KStringContainsExpr (this , lhs, rhs)
2140
2150
}
2141
2151
2152
+ /* *
2153
+ * Check if first string contains second one.
2154
+ * */
2155
+ infix fun KExpr<KStringSort>.contains (other : KExpr <KStringSort >) = mkStringContains(this , other)
2156
+
2142
2157
private val stringToRegexExprCache = mkAstInterner<KStringToRegexExpr >()
2143
2158
2144
2159
/* *
You can’t perform that action at this time.
0 commit comments