.class public Lcom/google/android/gms/common/util/Strings; .super Ljava/lang/Object; .source "com.google.android.gms:play-services-basement@@18.0.0" # annotations .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation # static fields .field private static final zza:Ljava/util/regex/Pattern; # direct methods .method public static constructor ()V .locals 1 const-string v0, "\\$\\{(.*?)\\}" invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object v0 sput-object v0, Lcom/google/android/gms/common/util/Strings;->zza:Ljava/util/regex/Pattern; return-void .end method .method private constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static emptyToNull(Ljava/lang/String;)Ljava/lang/String; .locals 1 .param p0 # Ljava/lang/String; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .line 1 invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-eqz v0, :cond_0 const/4 p0, 0x0 :cond_0 return-object p0 .end method .method public static isEmptyOrWhitespace(Ljava/lang/String;)Z .locals 0 .param p0 # Ljava/lang/String; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Lorg/checkerframework/checker/nullness/qual/EnsuresNonNullIf; expression = { "#1" } result = false .end annotation if-eqz p0, :cond_1 .line 1 invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String; move-result-object p0 invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z move-result p0 if-eqz p0, :cond_0 goto :goto_0 :cond_0 const/4 p0, 0x0 return p0 :cond_1 :goto_0 const/4 p0, 0x1 return p0 .end method