Class StringTransformers
java.lang.Object
com.github.marschall.memoryfilesystem.StringTransformers
Constant definitions for the standard
StringTransformers
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTransformer
Keeps a string as is.static final StringTransformer
Normalizes a string using NFCstatic final StringTransformer
Normalizes a string using NFD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a case insensitive transformer for the current locale.static StringTransformer
caseInsensitive
(Locale locale) Creates a case insensitive transformer for the given locale.static StringTransformer
caseInsensitiveMacOSJvm
(Locale locale) Creates a case insensitive transformer for macOS as presented by the JVM (NFC) for the given locale.static StringTransformer
caseInsensitiveMacOSNative
(Locale locale) Creates a case insensitive transformer for native macOS (NFD) for the given locale.
-
Field Details
-
Constructor Details
-
StringTransformers
public StringTransformers()
-
-
Method Details
-
caseInsensitive
Creates a case insensitive transformer for the current locale.- Returns:
- the transformer
-
caseInsensitive
Creates a case insensitive transformer for the given locale.- Parameters:
locale
- the locale- Returns:
- the transformer
-
caseInsensitiveMacOSNative
Creates a case insensitive transformer for native macOS (NFD) for the given locale.- Parameters:
locale
- the locale- Returns:
- the transformer
-
caseInsensitiveMacOSJvm
Creates a case insensitive transformer for macOS as presented by the JVM (NFC) for the given locale.- Parameters:
locale
- the locale- Returns:
- the transformer
-