add DriverIdentifier

This commit is contained in:
Looly
2023-12-04 23:27:42 +08:00
parent df227d63aa
commit 301968cbbc
17 changed files with 469 additions and 190 deletions

View File

@@ -321,6 +321,13 @@ public class CharSequenceUtilTest {
Assertions.assertEquals(str, ret);
}
@Test
public void limitByteLengthUtf8Test2() {
final String str = "这是This一";
final String ret = StrUtil.limitByteLengthUtf8(str, 12, true);
Assertions.assertEquals("这是Thi...", ret);
}
@Test
public void limitByteLengthTest() {
final String str = "This is English";