Class StringTransformers
java.lang.Object
com.github.marschall.memoryfilesystem.StringTransformers
Constant definitions for the standard
StringTransformers.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTransformerKeeps a string as is.static final StringTransformerNormalizes a string using NFCstatic final StringTransformerNormalizes a string using NFD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a case insensitive transformer for the current locale.static StringTransformercaseInsensitive(Locale locale) Creates a case insensitive transformer for the given locale.static StringTransformercaseInsensitiveMacOSJvm(Locale locale) Creates a case insensitive transformer for macOS as presented by the JVM (NFC) for the given locale.static StringTransformercaseInsensitiveMacOSNative(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
-