com.cntool.core.component.SymbolPool Maven / Gradle / Ivy
The newest version!
package com.cntool.core.component;
/**
* @program: cntool
* @description: 符号池
* @author: ID-Tang
* @create: 2022-03-04 11:39
* @copyright: Copyright (c) [2022] [ID-tang]
* [cntool] is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
**/
public class SymbolPool {
/**
* 逗号
*/
public static final String COMMA = ",";
/**
* 句号
*/
public static final String FULL_STOP = "。";
/**
* 下划线字符
*/
public static final String UNDERLINE = "_";
/**
* 转义之后的"."
*/
public static final String SPOT = "\\.";
/**
* 转义后的"\"
* 由于"\"表示的是一个转义字符
* 而"\"也是正则表达式的转义
* 所以在replaceAll(str1,str2)之类的方法中
* "\"必须进行双转义才可以正常使用
*/
public static final String SLASH = "\\\\";
/**
* 英文字符
* 设立的目的是仅用在判断字符串是否是全英文判断参数中
*/
public static final String ENGLISH = "^[a-zA-Z]*";
}