io.qt.core.QStringMatcher Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Holds a sequence of characters that can be quickly matched in a Unicode string
* Java wrapper for Qt class QStringMatcher
*/
public class QStringMatcher extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QStringMatcher:: QStringMatcher()
*/
public QStringMatcher(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStringMatcher instance);
/**
* See QStringMatcher:: QStringMatcher(QString, Qt::CaseSensitivity)
*/
public QStringMatcher(java.lang.@NonNull String pattern, io.qt.core.Qt.@NonNull CaseSensitivity cs){
super((QPrivateConstructor)null);
initialize_native(this, pattern, cs);
}
private native static void initialize_native(QStringMatcher instance, java.lang.String pattern, io.qt.core.Qt.CaseSensitivity cs);
/**
* See QStringMatcher:: QStringMatcher(QStringMatcher)
*/
public QStringMatcher(io.qt.core.@NonNull QStringMatcher other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStringMatcher instance, io.qt.core.QStringMatcher other);
/**
* See QStringMatcher:: caseSensitivity()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull CaseSensitivity caseSensitivity(){
return io.qt.core.Qt.CaseSensitivity.resolve(caseSensitivity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int caseSensitivity_native_constfct(long __this__nativeId);
/**
* See QStringMatcher:: indexIn(QString, qsizetype)const
*/
@QtUninvokable
public final long indexIn(java.lang.@NonNull String str, long from){
return indexIn_native_cref_QString_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), str, from);
}
@QtUninvokable
private native long indexIn_native_cref_QString_qsizetype_constfct(long __this__nativeId, java.lang.String str, long from);
/**
* See QStringMatcher:: pattern()const
*/
@QtUninvokable
public final java.lang.@NonNull String pattern(){
return pattern_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String pattern_native_constfct(long __this__nativeId);
/**
* See QStringMatcher:: patternView()const
*/
@QtUninvokable
public final java.lang.@NonNull String patternView(){
return patternView_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String patternView_native_constfct(long __this__nativeId);
/**
* See QStringMatcher:: setCaseSensitivity(Qt::CaseSensitivity)
*/
@QtUninvokable
public final void setCaseSensitivity(io.qt.core.Qt.@NonNull CaseSensitivity cs){
setCaseSensitivity_native_Qt_CaseSensitivity(QtJambi_LibraryUtilities.internal.nativeId(this), cs.value());
}
@QtUninvokable
private native void setCaseSensitivity_native_Qt_CaseSensitivity(long __this__nativeId, int cs);
/**
* See QStringMatcher:: setPattern(QString)
*/
@QtUninvokable
public final void setPattern(java.lang.@NonNull String pattern){
setPattern_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), pattern);
}
@QtUninvokable
private native void setPattern_native_cref_QString(long __this__nativeId, java.lang.String pattern);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStringMatcher(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QStringMatcher:: QStringMatcher(QStringMatcher)
*/
@QtUninvokable
@Override
public QStringMatcher clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QStringMatcher clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QStringMatcher(java.lang.String, io.qt.core.Qt.CaseSensitivity)}
* with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
.
*/
public QStringMatcher(java.lang.@NonNull String pattern) {
this(pattern, io.qt.core.Qt.CaseSensitivity.CaseSensitive);
}
/**
* Overloaded function for {@link #indexIn(java.lang.String, long)}
* with from = 0
.
*/
@QtUninvokable
public final long indexIn(java.lang.@NonNull String str) {
return indexIn(str, (long)0);
}
}