Class StatisticsEventEscaper
- java.lang.Object
-
- com.intellij.internal.statistic.eventLog.StatisticsEventEscaper
-
@Internal public final class StatisticsEventEscaper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StatisticsEventEscaper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable java.lang.StringcleanupForLegacyRulesIfNeeded(@NotNull java.lang.String str)Removes symbols prohibited in 2020.2 or earlier versions but allowed in 2020.3+.static @NotNull java.lang.Stringescape(@NotNull java.lang.String str)Only printable ASCII symbols except whitespaces and :;,'" are allowed.static @NotNull java.lang.StringescapeEventIdOrFieldValue(@NotNull java.lang.String str)Only printable ASCII symbols except whitespaces and '" are allowed.static @NotNull java.lang.StringescapeFieldName(@NotNull java.lang.String str)Only printable ASCII symbols except whitespaces and .:;,'" are allowed.static booleanisWhiteSpaceToReplace(char c)
-
-
-
Method Detail
-
escapeEventIdOrFieldValue
@NotNull public static @NotNull java.lang.String escapeEventIdOrFieldValue(@NotNull @NotNull java.lang.String str)Only printable ASCII symbols except whitespaces and '" are allowed.
-
escape
@NotNull public static @NotNull java.lang.String escape(@NotNull @NotNull java.lang.String str)Only printable ASCII symbols except whitespaces and :;,'" are allowed.
-
escapeFieldName
@NotNull public static @NotNull java.lang.String escapeFieldName(@NotNull @NotNull java.lang.String str)Only printable ASCII symbols except whitespaces and .:;,'" are allowed.
-
cleanupForLegacyRulesIfNeeded
@Nullable public static @Nullable java.lang.String cleanupForLegacyRulesIfNeeded(@NotNull @NotNull java.lang.String str)Removes symbols prohibited in 2020.2 or earlier versions but allowed in 2020.3+. Used for backward compatibility with validation rules create before 2020.2.- Returns:
- null if there are no prohibited symbols
-
isWhiteSpaceToReplace
public static boolean isWhiteSpaceToReplace(char c)
-
-