Files
rr3-apk/smali/androidx/emoji2/text/EmojiProcessor$CodepointIndexFinder.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

234 lines
3.4 KiB
Smali

.class final Landroidx/emoji2/text/EmojiProcessor$CodepointIndexFinder;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x13
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/emoji2/text/EmojiProcessor;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "CodepointIndexFinder"
.end annotation
# static fields
.field private static final INVALID_INDEX:I = -0x1
# direct methods
.method private constructor <init>()V
.locals 0
.line 789
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static findIndexBackward(Ljava/lang/CharSequence;II)I
.locals 5
.line 806
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, -0x1
if-ltz p1, :cond_9
if-ge v0, p1, :cond_0
goto :goto_2
:cond_0
if-gez p2, :cond_1
return v1
:cond_1
const/4 v0, 0x0
:goto_0
move v2, v0
:goto_1
if-nez p2, :cond_2
return p1
:cond_2
add-int/lit8 p1, p1, -0x1
if-gez p1, :cond_4
if-eqz v2, :cond_3
return v1
:cond_3
return v0
.line 827
:cond_4
invoke-interface {p0, p1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
if-eqz v2, :cond_6
.line 829
invoke-static {v3}, Ljava/lang/Character;->isHighSurrogate(C)Z
move-result v2
if-nez v2, :cond_5
return v1
:cond_5
add-int/lit8 p2, p2, -0x1
goto :goto_0
.line 836
:cond_6
invoke-static {v3}, Ljava/lang/Character;->isSurrogate(C)Z
move-result v4
if-nez v4, :cond_7
add-int/lit8 p2, p2, -0x1
goto :goto_1
.line 840
:cond_7
invoke-static {v3}, Ljava/lang/Character;->isHighSurrogate(C)Z
move-result v2
if-eqz v2, :cond_8
return v1
:cond_8
const/4 v2, 0x1
goto :goto_1
:cond_9
:goto_2
return v1
.end method
.method public static findIndexForward(Ljava/lang/CharSequence;II)I
.locals 6
.line 862
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, -0x1
if-ltz p1, :cond_9
if-ge v0, p1, :cond_0
goto :goto_2
:cond_0
if-gez p2, :cond_1
return v1
:cond_1
const/4 v2, 0x0
:goto_0
move v3, v2
:goto_1
if-nez p2, :cond_2
return p1
:cond_2
if-lt p1, v0, :cond_4
if-eqz v3, :cond_3
return v1
:cond_3
return v0
.line 883
:cond_4
invoke-interface {p0, p1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v4
if-eqz v3, :cond_6
.line 885
invoke-static {v4}, Ljava/lang/Character;->isLowSurrogate(C)Z
move-result v3
if-nez v3, :cond_5
return v1
:cond_5
add-int/lit8 p2, p2, -0x1
add-int/lit8 p1, p1, 0x1
goto :goto_0
.line 893
:cond_6
invoke-static {v4}, Ljava/lang/Character;->isSurrogate(C)Z
move-result v5
if-nez v5, :cond_7
add-int/lit8 p2, p2, -0x1
add-int/lit8 p1, p1, 0x1
goto :goto_1
.line 898
:cond_7
invoke-static {v4}, Ljava/lang/Character;->isLowSurrogate(C)Z
move-result v3
if-eqz v3, :cond_8
return v1
:cond_8
add-int/lit8 p1, p1, 0x1
const/4 v3, 0x1
goto :goto_1
:cond_9
:goto_2
return v1
.end method