zzq.java
4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
package com.google.android.gms.common.util;
import android.text.TextUtils;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class zzq
{
private static final Pattern a = Pattern.compile("\\\\.");
private static final Pattern b = Pattern.compile("[\\\\\"/\b\f\n\r\t]");
public static String zzdy(String paramString)
{
Matcher localMatcher;
Object localObject1;
if (!TextUtils.isEmpty(paramString))
{
localMatcher = b.matcher(paramString);
localObject1 = null;
while (localMatcher.find())
{
Object localObject2 = localObject1;
if (localObject1 == null) {
localObject2 = new StringBuffer();
}
switch (localMatcher.group().charAt(0))
{
default:
localObject1 = localObject2;
break;
case '\b':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\b");
localObject1 = localObject2;
break;
case '"':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\\\\"");
localObject1 = localObject2;
break;
case '\\':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\\\\\");
localObject1 = localObject2;
break;
case '/':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\/");
localObject1 = localObject2;
break;
case '\f':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\f");
localObject1 = localObject2;
break;
case '\n':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\n");
localObject1 = localObject2;
break;
case '\r':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\r");
localObject1 = localObject2;
break;
case '\t':
localMatcher.appendReplacement((StringBuffer)localObject2, "\\\\t");
localObject1 = localObject2;
}
}
if (localObject1 != null) {}
}
else
{
return paramString;
}
localMatcher.appendTail((StringBuffer)localObject1);
return ((StringBuffer)localObject1).toString();
}
public static boolean zze(Object paramObject1, Object paramObject2)
{
boolean bool2 = false;
boolean bool1;
if ((paramObject1 == null) && (paramObject2 == null)) {
bool1 = true;
}
for (;;)
{
return bool1;
bool1 = bool2;
Iterator localIterator;
if (paramObject1 != null)
{
bool1 = bool2;
if (paramObject2 != null) {
if (((paramObject1 instanceof JSONObject)) && ((paramObject2 instanceof JSONObject)))
{
paramObject1 = (JSONObject)paramObject1;
paramObject2 = (JSONObject)paramObject2;
bool1 = bool2;
if (((JSONObject)paramObject1).length() != ((JSONObject)paramObject2).length()) {
continue;
}
localIterator = ((JSONObject)paramObject1).keys();
}
}
}
for (;;)
{
String str;
if (localIterator.hasNext())
{
str = (String)localIterator.next();
bool1 = bool2;
if (!((JSONObject)paramObject2).has(str)) {
break;
}
}
int i;
boolean bool3;
try
{
bool1 = zze(((JSONObject)paramObject1).get(str), ((JSONObject)paramObject2).get(str));
if (!bool1) {
return false;
}
}
catch (JSONException paramObject1) {}
}
return true;
if ((!(paramObject1 instanceof JSONArray)) || (!(paramObject2 instanceof JSONArray))) {
break label211;
}
paramObject1 = (JSONArray)paramObject1;
paramObject2 = (JSONArray)paramObject2;
bool1 = bool2;
if (((JSONArray)paramObject1).length() == ((JSONArray)paramObject2).length())
{
i = 0;
if (i >= ((JSONArray)paramObject1).length()) {}
}
try
{
bool3 = zze(((JSONArray)paramObject1).get(i), ((JSONArray)paramObject2).get(i));
bool1 = bool2;
if (bool3) {
i += 1;
}
}
catch (JSONException paramObject1)
{
label211:
return false;
}
}
return true;
return paramObject1.equals(paramObject2);
return false;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/common/util/zzq.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/