mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add CharSequenceUtil
This commit is contained in:
parent
7633733cfe
commit
7a03bbe93a
@ -14,6 +14,7 @@
|
|||||||
* 【json 】 JSONStrFormater改为JSONStrFormatter
|
* 【json 】 JSONStrFormater改为JSONStrFormatter
|
||||||
* 【dfa 】 增加FoundWord(pr#1290@Github)
|
* 【dfa 】 增加FoundWord(pr#1290@Github)
|
||||||
* 【core 】 增加Segment(pr#1290@Github)
|
* 【core 】 增加Segment(pr#1290@Github)
|
||||||
|
* 【core 】 增加CharSequenceUtil
|
||||||
|
|
||||||
### Bug修复
|
### Bug修复
|
||||||
* 【cache 】 修复Cache中get重复misCount计数问题(issue#1281@Github)
|
* 【cache 】 修复Cache中get重复misCount计数问题(issue#1281@Github)
|
||||||
|
@ -5,6 +5,14 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.poi</groupId>
|
||||||
|
<artifactId>poi</artifactId>
|
||||||
|
<version>4.1.2</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.hutool</groupId>
|
<groupId>cn.hutool</groupId>
|
||||||
|
4231
hutool-core/src/main/java/cn/hutool/core/text/CharSequenceUtil.java
Normal file
4231
hutool-core/src/main/java/cn/hutool/core/text/CharSequenceUtil.java
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -65,6 +65,36 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public class XmlUtil {
|
public class XmlUtil {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字符串常量:XML 空格转义 {@code " " -> " "}
|
||||||
|
*/
|
||||||
|
public static final String NBSP = " ";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字符串常量:XML And 符转义 {@code "&" -> "&"}
|
||||||
|
*/
|
||||||
|
public static final String AMP = "&";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字符串常量:XML 双引号转义 {@code """ -> "\""}
|
||||||
|
*/
|
||||||
|
public static final String QUOTE = """;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字符串常量:XML 单引号转义 {@code "&apos" -> "'"}
|
||||||
|
*/
|
||||||
|
public static final String APOS = "'";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字符串常量:XML 小于号转义 {@code "<" -> "<"}
|
||||||
|
*/
|
||||||
|
public static final String LT = "<";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字符串常量:XML 大于号转义 {@code ">" -> ">"}
|
||||||
|
*/
|
||||||
|
public static final String GT = ">";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在XML中无效的字符 正则
|
* 在XML中无效的字符 正则
|
||||||
*/
|
*/
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Spring相关工具封装
|
||||||
|
*
|
||||||
|
* @author looly
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package cn.hutool.extra.spring;
|
@ -10,9 +10,9 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
* @author sidian
|
* @author sidian
|
||||||
*/
|
*/
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(classes = EnableSprintUtilTest.class)
|
@SpringBootTest(classes = EnableSpringUtilTest.class)
|
||||||
@EnableSpringUtil
|
@EnableSpringUtil
|
||||||
public class EnableSprintUtilTest {
|
public class EnableSpringUtilTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() {
|
public void test() {
|
Loading…
x
Reference in New Issue
Block a user