diff options
Diffstat (limited to 'src/main/java/me')
-rw-r--r-- | src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java b/src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java new file mode 100644 index 0000000..e49c42b --- /dev/null +++ b/src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java @@ -0,0 +1,10 @@ +package me.laria.code.idea_caseconv; + +import java.util.Optional; + +public class DotCaseAction extends SelectionReplacerAction { + @Override + protected String replace(String s) { + return WordSplitConverter.convert(s, ".", (i, part) -> Optional.of(part.toLowerCase())); + } +} |