From 3b2cb5b3446e3e66605fdf7e56cc7b148b069b8f Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 30 Sep 2024 13:07:43 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20NICE=20CI=20=EC=86=8C=EC=BC=93=20?= =?UTF-8?q?=ED=86=B5=EC=8B=A0=20=EC=B6=94=EA=B0=80=20=20=20=20=20=20=20-?= =?UTF-8?q?=20=EC=A0=84=EB=AC=B8=20=EC=9D=91=EB=8B=B5=20parsing=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/ens/modules/nice/cmm/NiceCiUtils.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/nice/cmm/NiceCiUtils.java b/src/main/java/cokr/xit/ens/modules/nice/cmm/NiceCiUtils.java index 793a040..c2635de 100644 --- a/src/main/java/cokr/xit/ens/modules/nice/cmm/NiceCiUtils.java +++ b/src/main/java/cokr/xit/ens/modules/nice/cmm/NiceCiUtils.java @@ -79,7 +79,7 @@ public class NiceCiUtils { } else if (len < 0) { return ""; } else { - return str.length() <= len ? str : getStringKr(str, len); + return lengthKr(str) <= len ? str : getStringKr(str, len); } } @@ -213,13 +213,6 @@ public class NiceCiUtils { .readLine(); } - // 특수 문자를 2바이트로 간주하는 메서드 - private static boolean isToByte(char c) { - // 추가적으로 2바이트로 계산할 특수 문자 정의 - // 필요에 따라 추가 가능 - return "\t\n".indexOf(c) >= 0; - } - public static void main(String[] args) throws IOException { final String tgt = new String("123ab한글이ㅂa들어있다열자ㅁ".getBytes(), StandardCharsets.UTF_8); final String tgt2 = new String("123ab한글이ㅂa들어있다열자ㅁ".getBytes(), StandardCharsets.ISO_8859_1);