TextFormat.smali
.class public final Lcom/google/protobuf/TextFormat;
.super Ljava/lang/Object;
.source "TextFormat.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;,
Lcom/google/protobuf/TextFormat$Parser;,
Lcom/google/protobuf/TextFormat$UnknownFieldParseException;,
Lcom/google/protobuf/TextFormat$ParseException;,
Lcom/google/protobuf/TextFormat$Tokenizer;,
Lcom/google/protobuf/TextFormat$TextGenerator;,
Lcom/google/protobuf/TextFormat$Printer;
}
.end annotation
# static fields
.field private static final DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
.field private static final PARSER:Lcom/google/protobuf/TextFormat$Parser;
.field private static final SINGLE_LINE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
.field private static final UNICODE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
.field private static final logger:Ljava/util/logging/Logger;
# direct methods
.method static constructor <clinit>()V
.registers 3
.prologue
const/4 v2, 0x0
.line 59
const-class v0, Lcom/google/protobuf/TextFormat;
.line 60
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
move-result-object v0
sput-object v0, Lcom/google/protobuf/TextFormat;->logger:Ljava/util/logging/Logger;
.line 62
new-instance v0, Lcom/google/protobuf/TextFormat$Printer;
invoke-direct {v0, v2}, Lcom/google/protobuf/TextFormat$Printer;-><init>(Lcom/google/protobuf/TextFormat$1;)V
sput-object v0, Lcom/google/protobuf/TextFormat;->DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
.line 63
new-instance v0, Lcom/google/protobuf/TextFormat$Printer;
invoke-direct {v0, v2}, Lcom/google/protobuf/TextFormat$Printer;-><init>(Lcom/google/protobuf/TextFormat$1;)V
const/4 v1, 0x1
.line 64
# invokes: Lcom/google/protobuf/TextFormat$Printer;->setSingleLineMode(Z)Lcom/google/protobuf/TextFormat$Printer;
invoke-static {v0, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$100(Lcom/google/protobuf/TextFormat$Printer;Z)Lcom/google/protobuf/TextFormat$Printer;
move-result-object v0
sput-object v0, Lcom/google/protobuf/TextFormat;->SINGLE_LINE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
.line 65
new-instance v0, Lcom/google/protobuf/TextFormat$Printer;
invoke-direct {v0, v2}, Lcom/google/protobuf/TextFormat$Printer;-><init>(Lcom/google/protobuf/TextFormat$1;)V
const/4 v1, 0x0
.line 66
# invokes: Lcom/google/protobuf/TextFormat$Printer;->setEscapeNonAscii(Z)Lcom/google/protobuf/TextFormat$Printer;
invoke-static {v0, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$200(Lcom/google/protobuf/TextFormat$Printer;Z)Lcom/google/protobuf/TextFormat$Printer;
move-result-object v0
sput-object v0, Lcom/google/protobuf/TextFormat;->UNICODE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
.line 1194
invoke-static {}, Lcom/google/protobuf/TextFormat$Parser;->newBuilder()Lcom/google/protobuf/TextFormat$Parser$Builder;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/TextFormat$Parser$Builder;->build()Lcom/google/protobuf/TextFormat$Parser;
move-result-object v0
sput-object v0, Lcom/google/protobuf/TextFormat;->PARSER:Lcom/google/protobuf/TextFormat$Parser;
return-void
.end method
.method private constructor <init>()V
.registers 1
.prologue
.line 57
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic access$1000()Ljava/util/logging/Logger;
.registers 1
.prologue
.line 56
sget-object v0, Lcom/google/protobuf/TextFormat;->logger:Ljava/util/logging/Logger;
return-object v0
.end method
.method static synthetic access$800(ILjava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 56
invoke-static {p0, p1, p2}, Lcom/google/protobuf/TextFormat;->printUnknownFieldValue(ILjava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
return-void
.end method
.method private static digitValue(B)I
.registers 2
.prologue
.line 1974
const/16 v0, 0x30
if-gt v0, p0, :cond_b
const/16 v0, 0x39
if-gt p0, v0, :cond_b
.line 1975
add-int/lit8 v0, p0, -0x30
.line 1979
:goto_a
return v0
.line 1976
:cond_b
const/16 v0, 0x61
if-gt v0, p0, :cond_18
const/16 v0, 0x7a
if-gt p0, v0, :cond_18
.line 1977
add-int/lit8 v0, p0, -0x61
add-int/lit8 v0, v0, 0xa
goto :goto_a
.line 1979
:cond_18
add-int/lit8 v0, p0, -0x41
add-int/lit8 v0, v0, 0xa
goto :goto_a
.end method
.method public static escapeBytes(Lcom/google/protobuf/ByteString;)Ljava/lang/String;
.registers 2
.prologue
.line 1823
invoke-static {p0}, Lcom/google/protobuf/TextFormatEscaper;->escapeBytes(Lcom/google/protobuf/ByteString;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static escapeBytes([B)Ljava/lang/String;
.registers 2
.prologue
.line 1830
invoke-static {p0}, Lcom/google/protobuf/TextFormatEscaper;->escapeBytes([B)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static escapeDoubleQuotesAndBackslashes(Ljava/lang/String;)Ljava/lang/String;
.registers 2
.prologue
.line 1944
invoke-static {p0}, Lcom/google/protobuf/TextFormatEscaper;->escapeDoubleQuotesAndBackslashes(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method static escapeText(Ljava/lang/String;)Ljava/lang/String;
.registers 2
.prologue
.line 1937
invoke-static {p0}, Lcom/google/protobuf/ByteString;->copyFromUtf8(Ljava/lang/String;)Lcom/google/protobuf/ByteString;
move-result-object v0
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->escapeBytes(Lcom/google/protobuf/ByteString;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static getParser()Lcom/google/protobuf/TextFormat$Parser;
.registers 1
.prologue
.line 1201
sget-object v0, Lcom/google/protobuf/TextFormat;->PARSER:Lcom/google/protobuf/TextFormat$Parser;
return-object v0
.end method
.method private static isHex(B)Z
.registers 2
.prologue
.line 1963
const/16 v0, 0x30
if-gt v0, p0, :cond_8
const/16 v0, 0x39
if-le p0, v0, :cond_18
:cond_8
const/16 v0, 0x61
if-gt v0, p0, :cond_10
const/16 v0, 0x66
if-le p0, v0, :cond_18
:cond_10
const/16 v0, 0x41
if-gt v0, p0, :cond_1a
const/16 v0, 0x46
if-gt p0, v0, :cond_1a
:cond_18
const/4 v0, 0x1
:goto_19
return v0
:cond_1a
const/4 v0, 0x0
goto :goto_19
.end method
.method private static isOctal(B)Z
.registers 2
.prologue
.line 1958
const/16 v0, 0x30
if-gt v0, p0, :cond_a
const/16 v0, 0x37
if-gt p0, v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method public static merge(Ljava/lang/CharSequence;Lcom/google/protobuf/ExtensionRegistry;Lcom/google/protobuf/Message$Builder;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/TextFormat$ParseException;
}
.end annotation
.prologue
.line 1246
sget-object v0, Lcom/google/protobuf/TextFormat;->PARSER:Lcom/google/protobuf/TextFormat$Parser;
invoke-virtual {v0, p0, p1, p2}, Lcom/google/protobuf/TextFormat$Parser;->merge(Ljava/lang/CharSequence;Lcom/google/protobuf/ExtensionRegistry;Lcom/google/protobuf/Message$Builder;)V
.line 1247
return-void
.end method
.method public static merge(Ljava/lang/CharSequence;Lcom/google/protobuf/Message$Builder;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/TextFormat$ParseException;
}
.end annotation
.prologue
.line 1221
sget-object v0, Lcom/google/protobuf/TextFormat;->PARSER:Lcom/google/protobuf/TextFormat$Parser;
invoke-virtual {v0, p0, p1}, Lcom/google/protobuf/TextFormat$Parser;->merge(Ljava/lang/CharSequence;Lcom/google/protobuf/Message$Builder;)V
.line 1222
return-void
.end method
.method public static merge(Ljava/lang/Readable;Lcom/google/protobuf/ExtensionRegistry;Lcom/google/protobuf/Message$Builder;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 1233
sget-object v0, Lcom/google/protobuf/TextFormat;->PARSER:Lcom/google/protobuf/TextFormat$Parser;
invoke-virtual {v0, p0, p1, p2}, Lcom/google/protobuf/TextFormat$Parser;->merge(Ljava/lang/Readable;Lcom/google/protobuf/ExtensionRegistry;Lcom/google/protobuf/Message$Builder;)V
.line 1234
return-void
.end method
.method public static merge(Ljava/lang/Readable;Lcom/google/protobuf/Message$Builder;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 1211
sget-object v0, Lcom/google/protobuf/TextFormat;->PARSER:Lcom/google/protobuf/TextFormat$Parser;
invoke-virtual {v0, p0, p1}, Lcom/google/protobuf/TextFormat$Parser;->merge(Ljava/lang/Readable;Lcom/google/protobuf/Message$Builder;)V
.line 1212
return-void
.end method
.method static parseInt32(Ljava/lang/String;)I
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
.prologue
.line 1989
const/4 v0, 0x1
const/4 v1, 0x0
invoke-static {p0, v0, v1}, Lcom/google/protobuf/TextFormat;->parseInteger(Ljava/lang/String;ZZ)J
move-result-wide v0
long-to-int v0, v0
return v0
.end method
.method static parseInt64(Ljava/lang/String;)J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
.prologue
const/4 v0, 0x1
.line 2009
invoke-static {p0, v0, v0}, Lcom/google/protobuf/TextFormat;->parseInteger(Ljava/lang/String;ZZ)J
move-result-wide v0
return-wide v0
.end method
.method private static parseInteger(Ljava/lang/String;ZZ)J
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
.prologue
const/16 v2, 0x10
const/4 v0, 0x1
const/4 v1, 0x0
.line 2027
.line 2030
const-string v3, "-"
invoke-virtual {p0, v3, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;I)Z
move-result v3
if-eqz v3, :cond_14d
.line 2031
if-nez p1, :cond_27
.line 2032
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number must be positive: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
:cond_27
move v1, v0
.line 2038
:goto_28
const/16 v3, 0xa
.line 2039
const-string v4, "0x"
invoke-virtual {p0, v4, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;I)Z
move-result v4
if-eqz v4, :cond_72
.line 2040
add-int/lit8 v1, v1, 0x2
move v3, v1
move v1, v2
.line 2046
:goto_36
invoke-virtual {p0, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v3
.line 2049
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v4
if-ge v4, v2, :cond_a8
.line 2051
invoke-static {v3, v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;I)J
move-result-wide v2
.line 2052
if-eqz v0, :cond_145
.line 2053
neg-long v0, v2
.line 2059
:goto_47
if-nez p2, :cond_141
.line 2060
if-eqz p1, :cond_80
.line 2061
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_59
const-wide/32 v2, -0x80000000
cmp-long v2, v0, v2
if-gez v2, :cond_141
.line 2062
:cond_59
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number out of range for 32-bit signed integer: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.line 2042
:cond_72
const-string v4, "0"
invoke-virtual {p0, v4, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;I)Z
move-result v4
if-eqz v4, :cond_148
.line 2043
const/16 v3, 0x8
move v5, v3
move v3, v1
move v1, v5
goto :goto_36
.line 2066
:cond_80
const-wide v2, 0x100000000L
cmp-long v2, v0, v2
if-gez v2, :cond_8f
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_141
.line 2067
:cond_8f
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number out of range for 32-bit unsigned integer: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.line 2073
:cond_a8
new-instance v2, Ljava/math/BigInteger;
invoke-direct {v2, v3, v1}, Ljava/math/BigInteger;-><init>(Ljava/lang/String;I)V
.line 2074
if-eqz v0, :cond_142
.line 2075
invoke-virtual {v2}, Ljava/math/BigInteger;->negate()Ljava/math/BigInteger;
move-result-object v0
.line 2079
:goto_b3
if-nez p2, :cond_f9
.line 2080
if-eqz p1, :cond_d8
.line 2081
invoke-virtual {v0}, Ljava/math/BigInteger;->bitLength()I
move-result v1
const/16 v2, 0x1f
if-le v1, v2, :cond_13d
.line 2082
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number out of range for 32-bit signed integer: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.line 2086
:cond_d8
invoke-virtual {v0}, Ljava/math/BigInteger;->bitLength()I
move-result v1
const/16 v2, 0x20
if-le v1, v2, :cond_13d
.line 2087
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number out of range for 32-bit unsigned integer: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.line 2092
:cond_f9
if-eqz p1, :cond_11c
.line 2093
invoke-virtual {v0}, Ljava/math/BigInteger;->bitLength()I
move-result v1
const/16 v2, 0x3f
if-le v1, v2, :cond_13d
.line 2094
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number out of range for 64-bit signed integer: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.line 2098
:cond_11c
invoke-virtual {v0}, Ljava/math/BigInteger;->bitLength()I
move-result v1
const/16 v2, 0x40
if-le v1, v2, :cond_13d
.line 2099
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Number out of range for 64-bit unsigned integer: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.line 2105
:cond_13d
invoke-virtual {v0}, Ljava/math/BigInteger;->longValue()J
move-result-wide v0
.line 2108
:cond_141
return-wide v0
:cond_142
move-object v0, v2
goto/16 :goto_b3
:cond_145
move-wide v0, v2
goto/16 :goto_47
:cond_148
move v5, v3
move v3, v1
move v1, v5
goto/16 :goto_36
:cond_14d
move v0, v1
goto/16 :goto_28
.end method
.method static parseUInt32(Ljava/lang/String;)I
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
.prologue
const/4 v0, 0x0
.line 2000
invoke-static {p0, v0, v0}, Lcom/google/protobuf/TextFormat;->parseInteger(Ljava/lang/String;ZZ)J
move-result-wide v0
long-to-int v0, v0
return v0
.end method
.method static parseUInt64(Ljava/lang/String;)J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
.prologue
.line 2020
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p0, v0, v1}, Lcom/google/protobuf/TextFormat;->parseInteger(Ljava/lang/String;ZZ)J
move-result-wide v0
return-wide v0
.end method
.method public static print(Lcom/google/protobuf/MessageOrBuilder;Ljava/lang/Appendable;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 76
sget-object v0, Lcom/google/protobuf/TextFormat;->DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v1, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->print(Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p0, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$400(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 77
return-void
.end method
.method public static print(Lcom/google/protobuf/UnknownFieldSet;Ljava/lang/Appendable;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 83
sget-object v0, Lcom/google/protobuf/TextFormat;->DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v1, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printUnknownFields(Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p0, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$500(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 84
return-void
.end method
.method public static printField(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Ljava/lang/Appendable;)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 211
sget-object v0, Lcom/google/protobuf/TextFormat;->DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v1, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v2, 0x0
invoke-direct {v1, p2, v2}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printField(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p0, p1, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$600(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 212
return-void
.end method
.method public static printFieldToString(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;)Ljava/lang/String;
.registers 4
.prologue
.line 217
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 218
invoke-static {p0, p1, v0}, Lcom/google/protobuf/TextFormat;->printField(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Ljava/lang/Appendable;)V
.line 219
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_b
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_b} :catch_d
move-result-object v0
return-object v0
.line 220
:catch_d
move-exception v0
.line 221
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static printFieldValue(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Ljava/lang/Appendable;)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 239
sget-object v0, Lcom/google/protobuf/TextFormat;->DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v1, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v2, 0x0
invoke-direct {v1, p2, v2}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printFieldValue(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p0, p1, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$700(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 240
return-void
.end method
.method public static printToString(Lcom/google/protobuf/MessageOrBuilder;)Ljava/lang/String;
.registers 3
.prologue
.line 157
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 158
invoke-static {p0, v0}, Lcom/google/protobuf/TextFormat;->print(Lcom/google/protobuf/MessageOrBuilder;Ljava/lang/Appendable;)V
.line 159
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_b
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_b} :catch_d
move-result-object v0
return-object v0
.line 160
:catch_d
move-exception v0
.line 161
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static printToString(Lcom/google/protobuf/UnknownFieldSet;)Ljava/lang/String;
.registers 3
.prologue
.line 171
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 172
invoke-static {p0, v0}, Lcom/google/protobuf/TextFormat;->print(Lcom/google/protobuf/UnknownFieldSet;Ljava/lang/Appendable;)V
.line 173
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_b
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_b} :catch_d
move-result-object v0
return-object v0
.line 174
:catch_d
move-exception v0
.line 175
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static printToUnicodeString(Lcom/google/protobuf/MessageOrBuilder;)Ljava/lang/String;
.registers 5
.prologue
.line 185
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 186
sget-object v1, Lcom/google/protobuf/TextFormat;->UNICODE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v2, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v3, 0x0
invoke-direct {v2, v0, v3}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->print(Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v1, p0, v2}, Lcom/google/protobuf/TextFormat$Printer;->access$400(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 187
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_13
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_13} :catch_15
move-result-object v0
return-object v0
.line 188
:catch_15
move-exception v0
.line 189
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static printToUnicodeString(Lcom/google/protobuf/UnknownFieldSet;)Ljava/lang/String;
.registers 5
.prologue
.line 199
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 200
sget-object v1, Lcom/google/protobuf/TextFormat;->UNICODE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v2, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v3, 0x0
invoke-direct {v2, v0, v3}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printUnknownFields(Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v1, p0, v2}, Lcom/google/protobuf/TextFormat$Printer;->access$500(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 201
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_13
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_13} :catch_15
move-result-object v0
return-object v0
.line 202
:catch_15
move-exception v0
.line 203
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static printUnicode(Lcom/google/protobuf/MessageOrBuilder;Ljava/lang/Appendable;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 93
sget-object v0, Lcom/google/protobuf/TextFormat;->UNICODE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v1, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->print(Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p0, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$400(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 94
return-void
.end method
.method public static printUnicode(Lcom/google/protobuf/UnknownFieldSet;Ljava/lang/Appendable;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 103
sget-object v0, Lcom/google/protobuf/TextFormat;->UNICODE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v1, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printUnknownFields(Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p0, v1}, Lcom/google/protobuf/TextFormat$Printer;->access$500(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 104
return-void
.end method
.method private static printUnknownFieldValue(ILjava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
const/4 v0, 0x0
const/4 v2, 0x1
const/4 v3, 0x0
.line 263
invoke-static {p0}, Lcom/google/protobuf/WireFormat;->getTagWireType(I)I
move-result v1
packed-switch v1, :pswitch_data_72
.line 283
:pswitch_a
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Bad tag: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 265
:pswitch_23
check-cast p1, Ljava/lang/Long;
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
invoke-static {v0, v1}, Lcom/google/protobuf/TextFormat;->unsignedToString(J)Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/google/protobuf/TextFormat$TextGenerator;->print(Ljava/lang/CharSequence;)V
.line 285
:goto_30
return-void
.line 268
:pswitch_31
check-cast v0, Ljava/util/Locale;
const-string v1, "0x%08x"
new-array v2, v2, [Ljava/lang/Object;
check-cast p1, Ljava/lang/Integer;
aput-object p1, v2, v3
.line 269
invoke-static {v0, v1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 268
invoke-virtual {p2, v0}, Lcom/google/protobuf/TextFormat$TextGenerator;->print(Ljava/lang/CharSequence;)V
goto :goto_30
.line 272
:pswitch_43
check-cast v0, Ljava/util/Locale;
const-string v1, "0x%016x"
new-array v2, v2, [Ljava/lang/Object;
check-cast p1, Ljava/lang/Long;
aput-object p1, v2, v3
invoke-static {v0, v1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/google/protobuf/TextFormat$TextGenerator;->print(Ljava/lang/CharSequence;)V
goto :goto_30
.line 275
:pswitch_55
const-string v0, "\""
invoke-virtual {p2, v0}, Lcom/google/protobuf/TextFormat$TextGenerator;->print(Ljava/lang/CharSequence;)V
.line 276
check-cast p1, Lcom/google/protobuf/ByteString;
invoke-static {p1}, Lcom/google/protobuf/TextFormat;->escapeBytes(Lcom/google/protobuf/ByteString;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/google/protobuf/TextFormat$TextGenerator;->print(Ljava/lang/CharSequence;)V
.line 277
const-string v0, "\""
invoke-virtual {p2, v0}, Lcom/google/protobuf/TextFormat$TextGenerator;->print(Ljava/lang/CharSequence;)V
goto :goto_30
.line 280
:pswitch_69
sget-object v0, Lcom/google/protobuf/TextFormat;->DEFAULT_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
check-cast p1, Lcom/google/protobuf/UnknownFieldSet;
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printUnknownFields(Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v0, p1, p2}, Lcom/google/protobuf/TextFormat$Printer;->access$500(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
goto :goto_30
.line 263
nop
:pswitch_data_72
.packed-switch 0x0
:pswitch_23
:pswitch_43
:pswitch_55
:pswitch_69
:pswitch_a
:pswitch_31
.end packed-switch
.end method
.method public static printUnknownFieldValue(ILjava/lang/Object;Ljava/lang/Appendable;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 256
new-instance v0, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v1, 0x0
invoke-direct {v0, p2, v1}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
invoke-static {p0, p1, v0}, Lcom/google/protobuf/TextFormat;->printUnknownFieldValue(ILjava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 257
return-void
.end method
.method public static shortDebugString(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;)Ljava/lang/String;
.registers 6
.prologue
.line 128
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 129
sget-object v1, Lcom/google/protobuf/TextFormat;->SINGLE_LINE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v2, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v3, 0x0
invoke-direct {v2, v0, v3}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printField(Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v1, p0, p1, v2}, Lcom/google/protobuf/TextFormat$Printer;->access$600(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 130
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
:try_end_17
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_17} :catch_19
move-result-object v0
return-object v0
.line 131
:catch_19
move-exception v0
.line 132
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static shortDebugString(Lcom/google/protobuf/MessageOrBuilder;)Ljava/lang/String;
.registers 5
.prologue
.line 112
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 113
sget-object v1, Lcom/google/protobuf/TextFormat;->SINGLE_LINE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v2, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v3, 0x0
invoke-direct {v2, v0, v3}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->print(Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v1, p0, v2}, Lcom/google/protobuf/TextFormat$Printer;->access$400(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/MessageOrBuilder;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 115
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
:try_end_17
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_17} :catch_19
move-result-object v0
return-object v0
.line 116
:catch_19
move-exception v0
.line 117
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static shortDebugString(Lcom/google/protobuf/UnknownFieldSet;)Ljava/lang/String;
.registers 5
.prologue
.line 142
:try_start_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 143
sget-object v1, Lcom/google/protobuf/TextFormat;->SINGLE_LINE_PRINTER:Lcom/google/protobuf/TextFormat$Printer;
new-instance v2, Lcom/google/protobuf/TextFormat$TextGenerator;
const/4 v3, 0x0
invoke-direct {v2, v0, v3}, Lcom/google/protobuf/TextFormat$TextGenerator;-><init>(Ljava/lang/Appendable;Lcom/google/protobuf/TextFormat$1;)V
# invokes: Lcom/google/protobuf/TextFormat$Printer;->printUnknownFields(Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
invoke-static {v1, p0, v2}, Lcom/google/protobuf/TextFormat$Printer;->access$500(Lcom/google/protobuf/TextFormat$Printer;Lcom/google/protobuf/UnknownFieldSet;Lcom/google/protobuf/TextFormat$TextGenerator;)V
.line 145
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
:try_end_17
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_17} :catch_19
move-result-object v0
return-object v0
.line 146
:catch_19
move-exception v0
.line 147
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public static unescapeBytes(Ljava/lang/CharSequence;)Lcom/google/protobuf/ByteString;
.registers 11
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;
}
.end annotation
.prologue
const/16 v9, 0x5c
const/16 v8, 0x27
const/4 v1, 0x0
.line 1841
invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/google/protobuf/ByteString;->copyFromUtf8(Ljava/lang/String;)Lcom/google/protobuf/ByteString;
move-result-object v5
.line 1849
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v0
new-array v6, v0, [B
move v0, v1
move v2, v1
.line 1851
:goto_15
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v3
if-ge v0, v3, :cond_14f
.line 1852
invoke-virtual {v5, v0}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
.line 1853
if-ne v4, v9, :cond_147
.line 1854
add-int/lit8 v3, v0, 0x1
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v4
if-ge v3, v4, :cond_13f
.line 1855
add-int/lit8 v3, v0, 0x1
.line 1856
invoke-virtual {v5, v3}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v0
.line 1857
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->isOctal(B)Z
move-result v4
if-eqz v4, :cond_84
.line 1859
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->digitValue(B)I
move-result v0
.line 1860
add-int/lit8 v4, v3, 0x1
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v7
if-ge v4, v7, :cond_5a
add-int/lit8 v4, v3, 0x1
invoke-virtual {v5, v4}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
invoke-static {v4}, Lcom/google/protobuf/TextFormat;->isOctal(B)Z
move-result v4
if-eqz v4, :cond_5a
.line 1861
add-int/lit8 v3, v3, 0x1
.line 1862
mul-int/lit8 v0, v0, 0x8
invoke-virtual {v5, v3}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
invoke-static {v4}, Lcom/google/protobuf/TextFormat;->digitValue(B)I
move-result v4
add-int/2addr v0, v4
.line 1864
:cond_5a
add-int/lit8 v4, v3, 0x1
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v7
if-ge v4, v7, :cond_7b
add-int/lit8 v4, v3, 0x1
invoke-virtual {v5, v4}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
invoke-static {v4}, Lcom/google/protobuf/TextFormat;->isOctal(B)Z
move-result v4
if-eqz v4, :cond_7b
.line 1865
add-int/lit8 v3, v3, 0x1
.line 1866
mul-int/lit8 v0, v0, 0x8
invoke-virtual {v5, v3}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
invoke-static {v4}, Lcom/google/protobuf/TextFormat;->digitValue(B)I
move-result v4
add-int/2addr v0, v4
.line 1869
:cond_7b
add-int/lit8 v4, v2, 0x1
int-to-byte v0, v0
aput-byte v0, v6, v2
move v2, v4
.line 1851
:goto_81
add-int/lit8 v0, v3, 0x1
goto :goto_15
.line 1871
:cond_84
sparse-switch v0, :sswitch_data_15c
.line 1901
new-instance v1, Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Invalid escape sequence: \'\\"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
int-to-char v0, v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;-><init>(Ljava/lang/String;)V
throw v1
.line 1872
:sswitch_a5
add-int/lit8 v0, v2, 0x1
const/4 v4, 0x7
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1873
:sswitch_ac
add-int/lit8 v0, v2, 0x1
const/16 v4, 0x8
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1874
:sswitch_b4
add-int/lit8 v0, v2, 0x1
const/16 v4, 0xc
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1875
:sswitch_bc
add-int/lit8 v0, v2, 0x1
const/16 v4, 0xa
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1876
:sswitch_c4
add-int/lit8 v0, v2, 0x1
const/16 v4, 0xd
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1877
:sswitch_cc
add-int/lit8 v0, v2, 0x1
const/16 v4, 0x9
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1878
:sswitch_d4
add-int/lit8 v0, v2, 0x1
const/16 v4, 0xb
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1879
:sswitch_dc
add-int/lit8 v0, v2, 0x1
aput-byte v9, v6, v2
move v2, v0
goto :goto_81
.line 1880
:sswitch_e2
add-int/lit8 v0, v2, 0x1
aput-byte v8, v6, v2
move v2, v0
goto :goto_81
.line 1881
:sswitch_e8
add-int/lit8 v0, v2, 0x1
const/16 v4, 0x22
aput-byte v4, v6, v2
move v2, v0
goto :goto_81
.line 1886
:sswitch_f0
add-int/lit8 v0, v3, 0x1
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v4
if-ge v0, v4, :cond_137
add-int/lit8 v0, v3, 0x1
invoke-virtual {v5, v0}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v0
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->isHex(B)Z
move-result v0
if-eqz v0, :cond_137
.line 1887
add-int/lit8 v3, v3, 0x1
.line 1888
invoke-virtual {v5, v3}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v0
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->digitValue(B)I
move-result v0
.line 1893
add-int/lit8 v4, v3, 0x1
invoke-virtual {v5}, Lcom/google/protobuf/ByteString;->size()I
move-result v7
if-ge v4, v7, :cond_12f
add-int/lit8 v4, v3, 0x1
invoke-virtual {v5, v4}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
invoke-static {v4}, Lcom/google/protobuf/TextFormat;->isHex(B)Z
move-result v4
if-eqz v4, :cond_12f
.line 1894
add-int/lit8 v3, v3, 0x1
.line 1895
mul-int/lit8 v0, v0, 0x10
invoke-virtual {v5, v3}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v4
invoke-static {v4}, Lcom/google/protobuf/TextFormat;->digitValue(B)I
move-result v4
add-int/2addr v0, v4
.line 1897
:cond_12f
add-int/lit8 v4, v2, 0x1
int-to-byte v0, v0
aput-byte v0, v6, v2
move v2, v4
.line 1898
goto/16 :goto_81
.line 1890
:cond_137
new-instance v0, Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;
const-string v1, "Invalid escape sequence: \'\\x\' with no digits"
invoke-direct {v0, v1}, Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;-><init>(Ljava/lang/String;)V
throw v0
.line 1906
:cond_13f
new-instance v0, Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;
const-string v1, "Invalid escape sequence: \'\\\' at end of string."
invoke-direct {v0, v1}, Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;-><init>(Ljava/lang/String;)V
throw v0
.line 1910
:cond_147
add-int/lit8 v3, v2, 0x1
aput-byte v4, v6, v2
move v2, v3
move v3, v0
goto/16 :goto_81
.line 1914
:cond_14f
array-length v0, v6
if-ne v0, v2, :cond_157
.line 1915
invoke-static {v6}, Lcom/google/protobuf/ByteString;->wrap([B)Lcom/google/protobuf/ByteString;
move-result-object v0
.line 1916
:goto_156
return-object v0
:cond_157
invoke-static {v6, v1, v2}, Lcom/google/protobuf/ByteString;->copyFrom([BII)Lcom/google/protobuf/ByteString;
move-result-object v0
goto :goto_156
.line 1871
:sswitch_data_15c
.sparse-switch
0x22 -> :sswitch_e8
0x27 -> :sswitch_e2
0x5c -> :sswitch_dc
0x61 -> :sswitch_a5
0x62 -> :sswitch_ac
0x66 -> :sswitch_b4
0x6e -> :sswitch_bc
0x72 -> :sswitch_c4
0x74 -> :sswitch_cc
0x76 -> :sswitch_d4
0x78 -> :sswitch_f0
.end sparse-switch
.end method
.method static unescapeText(Ljava/lang/String;)Ljava/lang/String;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException;
}
.end annotation
.prologue
.line 1953
invoke-static {p0}, Lcom/google/protobuf/TextFormat;->unescapeBytes(Ljava/lang/CharSequence;)Lcom/google/protobuf/ByteString;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/ByteString;->toStringUtf8()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static unsignedToString(I)Ljava/lang/String;
.registers 5
.prologue
.line 505
if-ltz p0, :cond_7
.line 506
invoke-static {p0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v0
.line 508
:goto_6
return-object v0
:cond_7
int-to-long v0, p0
const-wide v2, 0xffffffffL
and-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
move-result-object v0
goto :goto_6
.end method
.method public static unsignedToString(J)Ljava/lang/String;
.registers 4
.prologue
.line 514
const-wide/16 v0, 0x0
cmp-long v0, p0, v0
if-ltz v0, :cond_b
.line 515
invoke-static {p0, p1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
move-result-object v0
.line 520
:goto_a
return-object v0
.line 519
:cond_b
const-wide v0, 0x7fffffffffffffffL
and-long/2addr v0, p0
invoke-static {v0, v1}, Ljava/math/BigInteger;->valueOf(J)Ljava/math/BigInteger;
move-result-object v0
const/16 v1, 0x3f
.line 520
invoke-virtual {v0, v1}, Ljava/math/BigInteger;->setBit(I)Ljava/math/BigInteger;
move-result-object v0
invoke-virtual {v0}, Ljava/math/BigInteger;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_a
.end method