All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.hutool.core.text.StrPool Maven / Gradle / Ivy

There is a newer version: 5.8.33
Show newest version
package cn.hutool.core.text;

import cn.hutool.core.util.XmlUtil;

/**
 * 常用字符串常量定义
 * @see CharPool
 *
 * @author looly
 * @since 5.6.3
 */
public interface StrPool {

	/**
	 * 字符常量:空格符 {@code ' '}
	 */
	char C_SPACE = CharPool.SPACE;

	/**
	 * 字符常量:制表符 {@code '\t'}
	 */
	char C_TAB = CharPool.TAB;

	/**
	 * 字符常量:点 {@code '.'}
	 */
	char C_DOT = CharPool.DOT;

	/**
	 * 字符常量:斜杠 {@code '/'}
	 */
	char C_SLASH = CharPool.SLASH;

	/**
	 * 字符常量:反斜杠 {@code '\\'}
	 */
	char C_BACKSLASH = CharPool.BACKSLASH;

	/**
	 * 字符常量:回车符 {@code '\r'}
	 */
	char C_CR = CharPool.CR;

	/**
	 * 字符常量:换行符 {@code '\n'}
	 */
	char C_LF = CharPool.LF;

	/**
	 * 字符常量:下划线 {@code '_'}
	 */
	char C_UNDERLINE = CharPool.UNDERLINE;

	/**
	 * 字符常量:逗号 {@code ','}
	 */
	char C_COMMA = CharPool.COMMA;

	/**
	 * 字符常量:花括号(左) '{'
	 */
	char C_DELIM_START = CharPool.DELIM_START;

	/**
	 * 字符常量:花括号(右) '}'
	 */
	char C_DELIM_END = CharPool.DELIM_END;

	/**
	 * 字符常量:中括号(左) {@code '['}
	 */
	char C_BRACKET_START = CharPool.BRACKET_START;

	/**
	 * 字符常量:中括号(右) {@code ']'}
	 */
	char C_BRACKET_END = CharPool.BRACKET_END;

	/**
	 * 字符常量:冒号 {@code ':'}
	 */
	char C_COLON = CharPool.COLON;

	/**
	 * 字符常量:艾特 {@code '@'}
	 */
	char C_AT = CharPool.AT;

	/**
	 * 字符串常量:制表符 {@code "\t"}
	 */
	String TAB = "	";

	/**
	 * 字符串常量:点 {@code "."}
	 */
	String DOT = ".";

	/**
	 * 字符串常量:双点 {@code ".."} 
* 用途:作为指向上级文件夹的路径,如:{@code "../path"} */ String DOUBLE_DOT = ".."; /** * 字符串常量:斜杠 {@code "/"} */ String SLASH = "/"; /** * 字符串常量:反斜杠 {@code "\\"} */ String BACKSLASH = "\\"; /** * 字符串常量:回车符 {@code "\r"}
* 解释:该字符常用于表示 Linux 系统和 MacOS 系统下的文本换行 */ String CR = "\r"; /** * 字符串常量:换行符 {@code "\n"} */ String LF = "\n"; /** * 字符串常量:Windows 换行 {@code "\r\n"}
* 解释:该字符串常用于表示 Windows 系统下的文本换行 */ String CRLF = "\r\n"; /** * 字符串常量:下划线 {@code "_"} */ String UNDERLINE = "_"; /** * 字符串常量:减号(连接符) {@code "-"} */ String DASHED = "-"; /** * 字符串常量:逗号 {@code ","} */ String COMMA = ","; /** * 字符串常量:花括号(左) "{" */ String DELIM_START = "{"; /** * 字符串常量:花括号(右) "}" */ String DELIM_END = "}"; /** * 字符串常量:中括号(左) {@code "["} */ String BRACKET_START = "["; /** * 字符串常量:中括号(右) {@code "]"} */ String BRACKET_END = "]"; /** * 字符串常量:冒号 {@code ":"} */ String COLON = ":"; /** * 字符串常量:艾特 {@code "@"} */ String AT = "@"; /** * 字符串常量:HTML 不间断空格转义 {@code " " -> " "} */ String HTML_NBSP = XmlUtil.NBSP; /** * 字符串常量:HTML And 符转义 {@code "&" -> "&"} */ String HTML_AMP = XmlUtil.AMP; /** * 字符串常量:HTML 双引号转义 {@code """ -> "\""} */ String HTML_QUOTE = XmlUtil.QUOTE; /** * 字符串常量:HTML 单引号转义 {@code "&apos" -> "'"} */ String HTML_APOS = XmlUtil.APOS; /** * 字符串常量:HTML 小于号转义 {@code "<" -> "<"} */ String HTML_LT = XmlUtil.LT; /** * 字符串常量:HTML 大于号转义 {@code ">" -> ">"} */ String HTML_GT = XmlUtil.GT; /** * 字符串常量:空 JSON {@code "{}"} */ String EMPTY_JSON = "{}"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy