mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 18:07:16 +01:00
30 lines
1.1 KiB
Java
30 lines
1.1 KiB
Java
package com.google.common.net;
|
|
|
|
import com.google.common.annotations.GwtCompatible;
|
|
import com.google.common.escape.Escaper;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@GwtCompatible
|
|
/* loaded from: classes8.dex */
|
|
public final class UrlEscapers {
|
|
static final String URL_PATH_OTHER_SAFE_CHARS_LACKING_PLUS = "-._~!$'()*,;&=@:";
|
|
static final String URL_FORM_PARAMETER_OTHER_SAFE_CHARS = "-_.*";
|
|
private static final Escaper URL_FORM_PARAMETER_ESCAPER = new PercentEscaper(URL_FORM_PARAMETER_OTHER_SAFE_CHARS, true);
|
|
private static final Escaper URL_PATH_SEGMENT_ESCAPER = new PercentEscaper("-._~!$'()*,;&=@:+", false);
|
|
private static final Escaper URL_FRAGMENT_ESCAPER = new PercentEscaper("-._~!$'()*,;&=@:+/?", false);
|
|
|
|
private UrlEscapers() {
|
|
}
|
|
|
|
public static Escaper urlFormParameterEscaper() {
|
|
return URL_FORM_PARAMETER_ESCAPER;
|
|
}
|
|
|
|
public static Escaper urlFragmentEscaper() {
|
|
return URL_FRAGMENT_ESCAPER;
|
|
}
|
|
|
|
public static Escaper urlPathSegmentEscaper() {
|
|
return URL_PATH_SEGMENT_ESCAPER;
|
|
}
|
|
}
|