public class Sanitizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SANITIZE_PATTERN |
Constructor and Description |
---|
Sanitizer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
sanitize(java.lang.String slug) |
static java.lang.String |
sanitize(java.lang.String slug,
java.lang.String filler) |
static java.lang.String |
sanitize(java.lang.String slug,
java.lang.String filler,
boolean lower) |
static java.lang.String |
sanitize(java.lang.String slug,
java.lang.String filler,
boolean lower,
Normalizer.Form form) |
static java.lang.String |
sanitize(java.lang.String slug,
java.lang.String filler,
boolean lower,
Normalizer.Form form,
java.lang.String pattern)
Used to sanitize a string.
|
static java.lang.String |
sanitize(java.lang.String slug,
java.lang.String filler,
boolean lower,
java.lang.String pattern) |
static java.lang.String |
sanitize(java.lang.String slug,
java.lang.String filler,
java.lang.String pattern) |
public static final java.lang.String SANITIZE_PATTERN
public static java.lang.String sanitize(java.lang.String slug)
public static java.lang.String sanitize(java.lang.String slug, java.lang.String filler)
public static java.lang.String sanitize(java.lang.String slug, java.lang.String filler, boolean lower)
public static java.lang.String sanitize(java.lang.String slug, java.lang.String filler, java.lang.String pattern)
public static java.lang.String sanitize(java.lang.String slug, java.lang.String filler, boolean lower, java.lang.String pattern)
public static java.lang.String sanitize(java.lang.String slug, java.lang.String filler, boolean lower, Normalizer.Form form)
public static java.lang.String sanitize(java.lang.String slug, java.lang.String filler, boolean lower, Normalizer.Form form, java.lang.String pattern)
slug
- The source stringfiller
- The replacement stringlower
- True if the result should be lowercaseform
- Unicode Normalization form to use (or null)Copyright © 2010 - 2020 Adobe. All Rights Reserved