File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
common/src/main/java/dev/felnull/fnjl
native/src/main/java/dev/felnull/fnjln Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 11package dev .felnull .fnjl ;
22
33public class FNJLBuildIn {
4- protected static final String VERSION = "1.34 " ;
4+ protected static final String VERSION = "1.35 " ;
55}
Original file line number Diff line number Diff line change 33
44import java .nio .charset .StandardCharsets ;
55import java .util .Base64 ;
6+ import java .util .UUID ;
67
78/**
89 * 文字列関係
@@ -203,4 +204,14 @@ public static String getPercentage(double par) {
203204 public static String getPercentage (float par ) {
204205 return (int ) (par * 100 ) + "%" ;
205206 }
207+
208+ /**
209+ * ハイフン無しUUID文字列からUUIDを生成
210+ *
211+ * @param uuidStr ハイフン無しUUID文字列
212+ * @return UUID
213+ */
214+ public static UUID fromNoHyphenStringToUUID (String uuidStr ) {
215+ return UUID .fromString (uuidStr .replaceAll ("(\\ w{8})(\\ w{4})(\\ w{4})(\\ w{4})(\\ w{12})" , "$1-$2-$3-$4-$5" ));
216+ }
206217}
Original file line number Diff line number Diff line change 11fnjl_group =dev.felnull
22fnjl_name =felnull-java-library
3- fnjl_version =1.34
3+ fnjl_version =1.35
Original file line number Diff line number Diff line change 11package dev .felnull .fnjln ;
22
33public class FNJLNBuildIn {
4- protected static final String VERSION = "1.34 " ;
4+ protected static final String VERSION = "1.35 " ;
55
66 protected static final int NATIVE_LIBRARY_VERSION = 1 ;
77}
You can’t perform that action at this time.
0 commit comments