com.google.common.net.PercentEscaper.class Maven / Gradle / Ivy
???? 4 ?
'com/google/common/escape/UnicodeEscaper ()V
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; .*[0-9A-Za-z].*
java/lang/String matches (Ljava/lang/String;)Z "java/lang/IllegalArgumentException PAlphanumeric characters are always 'safe' and should not be explicitly specified
(Ljava/lang/String;)V java/lang/StringBuilder
! " append -(Ljava/lang/String;)Ljava/lang/StringBuilder; $ >abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
& ' ( toString ()Ljava/lang/String; *
, - . contains (Ljava/lang/CharSequence;)Z 0 AplusForSpace cannot be specified when space is a 'safe' character 2 3 4 5 6 $com/google/common/net/PercentEscaper plusForSpace Z
2 8 9 : createSafeOctets (Ljava/lang/String;)[Z 2 < = >
safeOctets [Z
@ A B toCharArray ()[C
D E F G H java/lang/Math max (II)I J K L M N java/lang/CharSequence charAt (I)C
P Q R length ()I
K
2 U V W
escapeSlow '(Ljava/lang/String;I)Ljava/lang/String; 2 Y Z [ PLUS_SIGN [C 2 ] ^ [ UPPER_HEX_DIGITS ?? ?? b Invalid unicode character value
d ! e (I)Ljava/lang/StringBuilder; g 0123456789ABCDEF (Ljava/lang/String;Z)V Code LineNumberTable LocalVariableTable this &Lcom/google/common/net/PercentEscaper; safeChars Ljava/lang/String;
StackMapTable MethodParameters c C maxChar I
safeCharArray octets [ > nextEscapeIndex (Ljava/lang/CharSequence;II)I csq Ljava/lang/CharSequence; index end escape &(Ljava/lang/String;)Ljava/lang/String; s slen (I)[C dest cp RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull;
SourceFile PercentEscaper.java 7Lcom/google/common/net/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations -Lcom/google/common/annotations/GwtCompatible; 1 2 Z [ ^ [ 5 6 = > h i ? U*? +? W+
? ?
? Y? ?? Y? +? #? ? %L? +)? +?
? Y/? ?*? 1*+? 7? ;? j *
U X Z [ ^ 0 a = b G e L f T g k U l m U n o U 5 6 p ? 2 * q n 5
9 : i
V<*? ?M,N-?66? -46? C???`?N,:?66? 46-T????-? j *
o p q r $ q * t 0 u I v N u T x k > r s I r s V n o T t u O v [ 0 &