apkfuckery/com.discord/smali_classes2/kotlin/text/Regex.smali

306 lines
8.2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lkotlin/text/Regex;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Regex.kt"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/text/Regex$b;,
Lkotlin/text/Regex$a;
}
.end annotation
# static fields
2019-05-08 22:54:48 +00:00
.field public static final bgR:Lkotlin/text/Regex$a;
2019-02-04 20:08:30 +00:00
# instance fields
.field private _options:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"+",
"Lkotlin/text/k;",
">;"
}
.end annotation
.end field
.field public final nativePattern:Ljava/util/regex/Pattern;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lkotlin/text/Regex$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lkotlin/text/Regex$a;-><init>(B)V
2019-05-08 22:54:48 +00:00
sput-object v0, Lkotlin/text/Regex;->bgR:Lkotlin/text/Regex$a;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const-string v0, "pattern"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object p1
const-string v0, "Pattern.compile(pattern)"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1}, Lkotlin/text/Regex;-><init>(Ljava/util/regex/Pattern;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Lkotlin/text/k;)V
.locals 1
const-string v0, "pattern"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "option"
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget p2, p2, Lkotlin/text/k;->value:I
and-int/lit8 v0, p2, 0x2
if-eqz v0, :cond_0
or-int/lit8 p2, p2, 0x40
:cond_0
invoke-static {p1, p2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
move-result-object p1
const-string p2, "Pattern.compile(pattern,\u2026nicodeCase(option.value))"
invoke-static {p1, p2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1}, Lkotlin/text/Regex;-><init>(Ljava/util/regex/Pattern;)V
return-void
.end method
.method public constructor <init>(Ljava/util/regex/Pattern;)V
.locals 1
const-string v0, "nativePattern"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
return-void
.end method
.method public static synthetic a(Lkotlin/text/Regex;Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
.locals 1
const/4 v0, 0x0
invoke-virtual {p0, p1, v0}, Lkotlin/text/Regex;->a(Ljava/lang/CharSequence;I)Lkotlin/text/MatchResult;
move-result-object p0
return-object p0
.end method
.method private final writeReplace()Ljava/lang/Object;
.locals 3
new-instance v0, Lkotlin/text/Regex$b;
iget-object v1, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v1}, Ljava/util/regex/Pattern;->pattern()Ljava/lang/String;
move-result-object v1
const-string v2, "nativePattern.pattern()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v2, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v2}, Ljava/util/regex/Pattern;->flags()I
move-result v2
invoke-direct {v0, v1, v2}, Lkotlin/text/Regex$b;-><init>(Ljava/lang/String;I)V
return-object v0
.end method
# virtual methods
2019-02-21 02:16:48 +00:00
.method public final a(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;
.locals 1
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "replacement"
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/util/regex/Matcher;->replaceAll(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string p2, "nativePattern.matcher(in\u2026).replaceAll(replacement)"
invoke-static {p1, p2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
return-object p1
.end method
2019-02-04 20:08:30 +00:00
.method public final a(Ljava/lang/CharSequence;I)Lkotlin/text/MatchResult;
.locals 2
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v0
const-string v1, "nativePattern.matcher(input)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0, p2, p1}, Lkotlin/text/j;->a(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Lkotlin/text/MatchResult;
move-result-object p1
return-object p1
.end method
.method public final g(Ljava/lang/CharSequence;)Z
.locals 1
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object p1
invoke-virtual {p1}, Ljava/util/regex/Matcher;->matches()Z
move-result p1
return p1
.end method
.method public final h(Ljava/lang/CharSequence;)Lkotlin/sequences/Sequence;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/CharSequence;",
")",
"Lkotlin/sequences/Sequence<",
"Lkotlin/text/MatchResult;",
">;"
}
.end annotation
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lkotlin/text/Regex$c;
const/4 v1, 0x0
invoke-direct {v0, p0, p1, v1}, Lkotlin/text/Regex$c;-><init>(Lkotlin/text/Regex;Ljava/lang/CharSequence;I)V
check-cast v0, Lkotlin/jvm/functions/Function0;
2019-05-08 22:54:48 +00:00
sget-object p1, Lkotlin/text/Regex$d;->bgT:Lkotlin/text/Regex$d;
2019-02-04 20:08:30 +00:00
check-cast p1, Lkotlin/jvm/functions/Function1;
invoke-static {v0, p1}, Lkotlin/sequences/i;->a(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
move-result-object p1
return-object p1
.end method
.method public final i(Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
.locals 2
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v0
const-string v1, "nativePattern.matcher(input)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0, p1}, Lkotlin/text/j;->a(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
move-result-object p1
return-object p1
.end method
.method public final toString()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lkotlin/text/Regex;->nativePattern:Ljava/util/regex/Pattern;
invoke-virtual {v0}, Ljava/util/regex/Pattern;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "nativePattern.toString()"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method