- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
982 B
Java
37 lines
982 B
Java
package com.ironsource.environment;
|
|
|
|
import com.ironsource.i9;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.net.URLDecoder;
|
|
import java.net.URLEncoder;
|
|
import java.util.Locale;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class StringUtils {
|
|
public static String decodeURI(String str) {
|
|
try {
|
|
return URLDecoder.decode(str, "UTF-8");
|
|
} catch (UnsupportedEncodingException e) {
|
|
i9.d().a(e);
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static String encodeURI(String str) {
|
|
try {
|
|
return URLEncoder.encode(str, "UTF-8").replace("+", "%20");
|
|
} catch (UnsupportedEncodingException e) {
|
|
i9.d().a(e);
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static String toLowerCase(String str) {
|
|
return str == null ? "" : str.toLowerCase(Locale.ENGLISH);
|
|
}
|
|
|
|
public static String toUpperCase(String str) {
|
|
return str == null ? "" : str.toUpperCase(Locale.ENGLISH);
|
|
}
|
|
}
|