io.qt.core.QRegularExpression Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Pattern matching using regular expressions
* Java wrapper for Qt class QRegularExpression
*/
public class QRegularExpression extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QRegularExpression::MatchOption
*
* @see MatchOptions
*/
@QtRejectedEntries({"AnchoredMatchOption"})
public enum MatchOption implements QtFlagEnumerator {
/**
* Representing QRegularExpression:: NoMatchOption
*/
NoMatchOption(0),
/**
* Representing QRegularExpression:: AnchorAtOffsetMatchOption
*/
AnchorAtOffsetMatchOption(1),
@Deprecated
/**
* Representing QRegularExpression:: AnchoredMatchOption
* @deprecated Use AnchorAtOffsetMatchOption instead
*/
AnchoredMatchOption(1),
/**
* Representing QRegularExpression:: DontCheckSubjectStringMatchOption
*/
DontCheckSubjectStringMatchOption(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private MatchOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull MatchOptions asFlags() {
return new MatchOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull MatchOptions combined(@NonNull MatchOption e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull MatchOptions cleared(@NonNull MatchOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link MatchOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull MatchOptions flags(@Nullable MatchOption @NonNull... values) {
return new MatchOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MatchOption resolve(int value) {
switch (value) {
case 0: return NoMatchOption;
case 1: return AnchorAtOffsetMatchOption;
case 2: return DontCheckSubjectStringMatchOption;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link MatchOption}
*/
public static final class MatchOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0x24d749afec53d7dbL;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new MatchOptions where the flags in args
are set.
* @param args enum entries
*/
public MatchOptions(@Nullable MatchOption @NonNull... args){
super(args);
}
/**
* Creates a new MatchOptions with given value
.
* @param value
*/
public MatchOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new MatchOptions
*/
@Override
public final @NonNull MatchOptions combined(@StrictNonNull MatchOption e){
return new MatchOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull MatchOptions setFlag(@Nullable MatchOption e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull MatchOptions setFlag(@Nullable MatchOption e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this MatchOptions.
* @return array of enum entries
*/
@Override
public final @NonNull MatchOption @NonNull[] flags(){
return super.flags(MatchOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull MatchOptions clone(){
return new MatchOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull MatchOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QRegularExpression::MatchType
*/
public enum MatchType implements QtEnumerator {
/**
* Representing QRegularExpression:: NormalMatch
*/
NormalMatch(0),
/**
* Representing QRegularExpression:: PartialPreferCompleteMatch
*/
PartialPreferCompleteMatch(1),
/**
* Representing QRegularExpression:: PartialPreferFirstMatch
*/
PartialPreferFirstMatch(2),
/**
* Representing QRegularExpression:: NoMatch
*/
NoMatch(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private MatchType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MatchType resolve(int value) {
switch (value) {
case 0: return NormalMatch;
case 1: return PartialPreferCompleteMatch;
case 2: return PartialPreferFirstMatch;
case 3: return NoMatch;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QRegularExpression::PatternOption
*
* @see PatternOptions
*/
public enum PatternOption implements QtFlagEnumerator {
/**
* Representing QRegularExpression:: NoPatternOption
*/
NoPatternOption(0),
/**
* Representing QRegularExpression:: CaseInsensitiveOption
*/
CaseInsensitiveOption(1),
/**
* Representing QRegularExpression:: DotMatchesEverythingOption
*/
DotMatchesEverythingOption(2),
/**
* Representing QRegularExpression:: MultilineOption
*/
MultilineOption(4),
/**
* Representing QRegularExpression:: ExtendedPatternSyntaxOption
*/
ExtendedPatternSyntaxOption(8),
/**
* Representing QRegularExpression:: InvertedGreedinessOption
*/
InvertedGreedinessOption(16),
/**
* Representing QRegularExpression:: DontCaptureOption
*/
DontCaptureOption(32),
/**
* Representing QRegularExpression:: UseUnicodePropertiesOption
*/
UseUnicodePropertiesOption(64);
static {
QtJambi_LibraryUtilities.initialize();
}
private PatternOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull PatternOptions asFlags() {
return new PatternOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull PatternOptions combined(@NonNull PatternOption e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull PatternOptions cleared(@NonNull PatternOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link PatternOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull PatternOptions flags(@Nullable PatternOption @NonNull... values) {
return new PatternOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull PatternOption resolve(int value) {
switch (value) {
case 0: return NoPatternOption;
case 1: return CaseInsensitiveOption;
case 2: return DotMatchesEverythingOption;
case 4: return MultilineOption;
case 8: return ExtendedPatternSyntaxOption;
case 16: return InvertedGreedinessOption;
case 32: return DontCaptureOption;
case 64: return UseUnicodePropertiesOption;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link PatternOption}
*/
public static final class PatternOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0x43743393605c3bc2L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new PatternOptions where the flags in args
are set.
* @param args enum entries
*/
public PatternOptions(@Nullable PatternOption @NonNull... args){
super(args);
}
/**
* Creates a new PatternOptions with given value
.
* @param value
*/
public PatternOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new PatternOptions
*/
@Override
public final @NonNull PatternOptions combined(@StrictNonNull PatternOption e){
return new PatternOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull PatternOptions setFlag(@Nullable PatternOption e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull PatternOptions setFlag(@Nullable PatternOption e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this PatternOptions.
* @return array of enum entries
*/
@Override
public final @NonNull PatternOption @NonNull[] flags(){
return super.flags(PatternOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull PatternOptions clone(){
return new PatternOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull PatternOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QRegularExpression::WildcardConversionOption
*
* @see WildcardConversionOptions
*/
public enum WildcardConversionOption implements QtFlagEnumerator {
/**
* Representing QRegularExpression:: DefaultWildcardConversion
*/
DefaultWildcardConversion(0),
/**
* Representing QRegularExpression:: UnanchoredWildcardConversion
*/
UnanchoredWildcardConversion(1),
/**
* Representing QRegularExpression:: NonPathWildcardConversion
*/
NonPathWildcardConversion(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private WildcardConversionOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull WildcardConversionOptions asFlags() {
return new WildcardConversionOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull WildcardConversionOptions combined(@NonNull WildcardConversionOption e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull WildcardConversionOptions cleared(@NonNull WildcardConversionOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link WildcardConversionOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull WildcardConversionOptions flags(@Nullable WildcardConversionOption @NonNull... values) {
return new WildcardConversionOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull WildcardConversionOption resolve(int value) {
switch (value) {
case 0: return DefaultWildcardConversion;
case 1: return UnanchoredWildcardConversion;
case 2: return NonPathWildcardConversion;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link WildcardConversionOption}
*/
public static final class WildcardConversionOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0xf31b375a810337dbL;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new WildcardConversionOptions where the flags in args
are set.
* @param args enum entries
*/
public WildcardConversionOptions(@Nullable WildcardConversionOption @NonNull... args){
super(args);
}
/**
* Creates a new WildcardConversionOptions with given value
.
* @param value
*/
public WildcardConversionOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new WildcardConversionOptions
*/
@Override
public final @NonNull WildcardConversionOptions combined(@StrictNonNull WildcardConversionOption e){
return new WildcardConversionOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull WildcardConversionOptions setFlag(@Nullable WildcardConversionOption e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull WildcardConversionOptions setFlag(@Nullable WildcardConversionOption e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this WildcardConversionOptions.
* @return array of enum entries
*/
@Override
public final @NonNull WildcardConversionOption @NonNull[] flags(){
return super.flags(WildcardConversionOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull WildcardConversionOptions clone(){
return new WildcardConversionOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull WildcardConversionOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* See QRegularExpression:: QRegularExpression()
*/
public QRegularExpression(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRegularExpression instance);
/**
* See QRegularExpression:: QRegularExpression(QRegularExpression)
*/
public QRegularExpression(io.qt.core.@NonNull QRegularExpression re){
super((QPrivateConstructor)null);
initialize_native(this, re);
}
private native static void initialize_native(QRegularExpression instance, io.qt.core.QRegularExpression re);
/**
* See QRegularExpression:: QRegularExpression(QString, QRegularExpression::PatternOptions)
*/
public QRegularExpression(java.lang.@NonNull String pattern, io.qt.core.QRegularExpression.@NonNull PatternOptions options){
super((QPrivateConstructor)null);
initialize_native(this, pattern, options);
}
private native static void initialize_native(QRegularExpression instance, java.lang.String pattern, io.qt.core.QRegularExpression.PatternOptions options);
/**
* See QRegularExpression:: captureCount()const
*/
@QtUninvokable
public final int captureCount(){
return captureCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int captureCount_native_constfct(long __this__nativeId);
/**
* See QRegularExpression:: errorString()const
*/
@QtUninvokable
public final java.lang.@NonNull String errorString(){
return errorString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String errorString_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatch(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOptions matchOptions){
return globalMatch_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subjectView, offset, matchType.value(), matchOptions.value());
}
@QtUninvokable
private native io.qt.core.QRegularExpressionMatchIterator globalMatch_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(long __this__nativeId, java.lang.String subjectView, long offset, int matchType, int matchOptions);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatchView(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOptions matchOptions){
return globalMatchView_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subjectView, offset, matchType.value(), matchOptions.value());
}
@QtUninvokable
private native io.qt.core.QRegularExpressionMatchIterator globalMatchView_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(long __this__nativeId, java.lang.String subjectView, long offset, int matchType, int matchOptions);
/**
* See QRegularExpression:: isValid()const
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch match(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOptions matchOptions){
return match_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subjectView, offset, matchType.value(), matchOptions.value());
}
@QtUninvokable
private native io.qt.core.QRegularExpressionMatch match_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(long __this__nativeId, java.lang.String subjectView, long offset, int matchType, int matchOptions);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch matchView(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOptions matchOptions){
return matchView_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subjectView, offset, matchType.value(), matchOptions.value());
}
@QtUninvokable
private native io.qt.core.QRegularExpressionMatch matchView_native_QStringView_qsizetype_QRegularExpression_MatchType_QRegularExpression_MatchOptions_constfct(long __this__nativeId, java.lang.String subjectView, long offset, int matchType, int matchOptions);
/**
* See QRegularExpression:: namedCaptureGroups()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList namedCaptureGroups(){
return namedCaptureGroups_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList namedCaptureGroups_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QRegularExpression)
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream out){
java.util.Objects.requireNonNull(out, "Argument 'out': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(out));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long out);
/**
* See QRegularExpression:: operator=(QRegularExpression)
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QRegularExpression re){
assign_native_cref_QRegularExpression(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(re));
}
@QtUninvokable
private native void assign_native_cref_QRegularExpression(long __this__nativeId, long re);
/**
* See QRegularExpression:: operator==(QRegularExpression)const
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QRegularExpression re){
return equals_native_cref_QRegularExpression_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(re));
}
@QtUninvokable
private native boolean equals_native_cref_QRegularExpression_constfct(long __this__nativeId, long re);
/**
* See operator>>(QDataStream&, QRegularExpression&)
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream in){
java.util.Objects.requireNonNull(in, "Argument 'in': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QRegularExpression:: optimize()const
*/
@QtUninvokable
public final void optimize(){
optimize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void optimize_native_constfct(long __this__nativeId);
/**
* See QRegularExpression:: 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 QRegularExpression:: patternErrorOffset()const
*/
@QtUninvokable
public final long patternErrorOffset(){
return patternErrorOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long patternErrorOffset_native_constfct(long __this__nativeId);
/**
* See QRegularExpression:: patternOptions()const
*/
@QtUninvokable
public final io.qt.core.QRegularExpression.@NonNull PatternOptions patternOptions(){
return new io.qt.core.QRegularExpression.PatternOptions(patternOptions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int patternOptions_native_constfct(long __this__nativeId);
/**
* See QRegularExpression:: 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);
/**
* See QRegularExpression:: setPatternOptions(QRegularExpression::PatternOptions)
*/
@QtUninvokable
public final void setPatternOptions(io.qt.core.QRegularExpression.@NonNull PatternOptions options){
setPatternOptions_native_QRegularExpression_PatternOptions(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@QtUninvokable
private native void setPatternOptions_native_QRegularExpression_PatternOptions(long __this__nativeId, int options);
/**
* See QRegularExpression:: swap(QRegularExpression&)
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QRegularExpression other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QRegularExpression(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QRegularExpression(long __this__nativeId, long other);
/**
* See QRegularExpression:: anchoredPattern(QString)
*/
public native static java.lang.@NonNull String anchoredPattern(java.lang.@NonNull String expression);
/**
* See QRegularExpression:: escape(QString)
*/
public native static java.lang.@NonNull String escape(java.lang.@NonNull String str);
/**
*
*/
public static io.qt.core.@NonNull QRegularExpression fromWildcard(java.lang.@NonNull String pattern, io.qt.core.Qt.@NonNull CaseSensitivity cs, io.qt.core.QRegularExpression.@NonNull WildcardConversionOptions options){
return fromWildcard_native_QStringView_Qt_CaseSensitivity_QRegularExpression_WildcardConversionOptions(pattern, cs.value(), options.value());
}
private native static io.qt.core.QRegularExpression fromWildcard_native_QStringView_Qt_CaseSensitivity_QRegularExpression_WildcardConversionOptions(java.lang.String pattern, int cs, int options);
/**
*
*/
public static java.lang.@NonNull String wildcardToRegularExpression(java.lang.@NonNull String str, io.qt.core.QRegularExpression.@NonNull WildcardConversionOptions options){
return wildcardToRegularExpression_native_cref_QString_QRegularExpression_WildcardConversionOptions(str, options.value());
}
private native static java.lang.String wildcardToRegularExpression_native_cref_QString_QRegularExpression_WildcardConversionOptions(java.lang.String str, int options);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRegularExpression(QPrivateConstructor p) { super(p); }
/**
* See QRegularExpression:: operator==(QRegularExpression)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QRegularExpression) {
return equals((io.qt.core.QRegularExpression) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QRegularExpression)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QRegularExpression)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QRegularExpression:: QRegularExpression(QRegularExpression)
*/
@QtUninvokable
@Override
public QRegularExpression clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRegularExpression clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)}
* with options = new io.qt.core.QRegularExpression.PatternOptions(0)
.
*/
public QRegularExpression(java.lang.@NonNull String pattern) {
this(pattern, new io.qt.core.QRegularExpression.PatternOptions(0));
}
/**
* Overloaded constructor for {@link #QRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)}.
*/
public QRegularExpression(java.lang.@NonNull String pattern, io.qt.core.QRegularExpression.@NonNull PatternOption @NonNull... options) {
this(pattern, new io.qt.core.QRegularExpression.PatternOptions(options));
}
/**
* Overloaded function for {@link #globalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatch(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType) {
return globalMatch(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #globalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatch(java.lang.@NonNull String subjectView, long offset) {
return globalMatch(subjectView, offset, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #globalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* offset = 0
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatch(java.lang.@NonNull String subjectView) {
return globalMatch(subjectView, (long)0, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #globalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatch(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOption @NonNull... matchOptions) {
return globalMatch(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(matchOptions));
}
/**
* Overloaded function for {@link #globalMatchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatchView(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType) {
return globalMatchView(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #globalMatchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatchView(java.lang.@NonNull String subjectView, long offset) {
return globalMatchView(subjectView, offset, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #globalMatchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* offset = 0
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatchView(java.lang.@NonNull String subjectView) {
return globalMatchView(subjectView, (long)0, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #globalMatchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatchIterator globalMatchView(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOption @NonNull... matchOptions) {
return globalMatchView(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(matchOptions));
}
/**
* Overloaded function for {@link #match(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch match(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType) {
return match(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #match(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch match(java.lang.@NonNull String subjectView, long offset) {
return match(subjectView, offset, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #match(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* offset = 0
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch match(java.lang.@NonNull String subjectView) {
return match(subjectView, (long)0, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #match(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch match(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOption @NonNull... matchOptions) {
return match(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(matchOptions));
}
/**
* Overloaded function for {@link #matchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch matchView(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType) {
return matchView(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #matchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch matchView(java.lang.@NonNull String subjectView, long offset) {
return matchView(subjectView, offset, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #matchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}
* with:
* offset = 0
* matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
* matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch matchView(java.lang.@NonNull String subjectView) {
return matchView(subjectView, (long)0, io.qt.core.QRegularExpression.MatchType.NormalMatch, new io.qt.core.QRegularExpression.MatchOptions(0));
}
/**
* Overloaded function for {@link #matchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpressionMatch matchView(java.lang.@NonNull String subjectView, long offset, io.qt.core.QRegularExpression.@NonNull MatchType matchType, io.qt.core.QRegularExpression.@NonNull MatchOption @NonNull... matchOptions) {
return matchView(subjectView, offset, matchType, new io.qt.core.QRegularExpression.MatchOptions(matchOptions));
}
/**
* Overloaded function for {@link #setPatternOptions(io.qt.core.QRegularExpression.PatternOptions)}.
*/
@QtUninvokable
public final void setPatternOptions(io.qt.core.QRegularExpression.@NonNull PatternOption @NonNull... options) {
setPatternOptions(new io.qt.core.QRegularExpression.PatternOptions(options));
}
/**
* Overloaded function for {@link #fromWildcard(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegularExpression.WildcardConversionOptions)}
* with options = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
.
*/
public static io.qt.core.@NonNull QRegularExpression fromWildcard(java.lang.@NonNull String pattern, io.qt.core.Qt.@NonNull CaseSensitivity cs) {
return fromWildcard(pattern, cs, new io.qt.core.QRegularExpression.WildcardConversionOptions(0));
}
/**
* Overloaded function for {@link #fromWildcard(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegularExpression.WildcardConversionOptions)}
* with:
* cs = io.qt.core.Qt.CaseSensitivity.CaseInsensitive
* options = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
*
*/
public static io.qt.core.@NonNull QRegularExpression fromWildcard(java.lang.@NonNull String pattern) {
return fromWildcard(pattern, io.qt.core.Qt.CaseSensitivity.CaseInsensitive, new io.qt.core.QRegularExpression.WildcardConversionOptions(0));
}
/**
* Overloaded function for {@link #fromWildcard(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegularExpression.WildcardConversionOptions)}.
*/
public static io.qt.core.@NonNull QRegularExpression fromWildcard(java.lang.@NonNull String pattern, io.qt.core.Qt.@NonNull CaseSensitivity cs, io.qt.core.QRegularExpression.@NonNull WildcardConversionOption @NonNull... options) {
return fromWildcard(pattern, cs, new io.qt.core.QRegularExpression.WildcardConversionOptions(options));
}
/**
* Overloaded function for {@link #wildcardToRegularExpression(java.lang.String, io.qt.core.QRegularExpression.WildcardConversionOptions)}
* with options = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
.
*/
public static java.lang.@NonNull String wildcardToRegularExpression(java.lang.@NonNull String str) {
return wildcardToRegularExpression(str, new io.qt.core.QRegularExpression.WildcardConversionOptions(0));
}
/**
* Overloaded function for {@link #wildcardToRegularExpression(java.lang.String, io.qt.core.QRegularExpression.WildcardConversionOptions)}.
*/
public static java.lang.@NonNull String wildcardToRegularExpression(java.lang.@NonNull String str, io.qt.core.QRegularExpression.@NonNull WildcardConversionOption @NonNull... options) {
return wildcardToRegularExpression(str, new io.qt.core.QRegularExpression.WildcardConversionOptions(options));
}
}