aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/laria/code
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2019-12-10 21:32:56 +0100
committerLaria Carolin Chabowski <laria@laria.me>2019-12-10 21:32:56 +0100
commit16ee529be06429129c6aa43b0fb9b3e9af103a67 (patch)
tree00abb901c6afc0de48baad1258e5b94f4faa4872 /src/main/java/me/laria/code
parent47250273e2bb1980c213561307e5f0501975e852 (diff)
downloadidea_caseconv-0.5.2.tar.gz
idea_caseconv-0.5.2.tar.bz2
idea_caseconv-0.5.2.zip
Add dot.case conversionv0.5.2
Diffstat (limited to 'src/main/java/me/laria/code')
-rw-r--r--src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java10
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()));
+ }
+}