object StringUtil
- Alphabetic
- By Inheritance
- StringUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
appendNewLine(content: String, lineSeparator: String): String
Appends LF if the given string does not end with LF.
Appends LF if the given string does not end with LF.
- content
the content
- lineSeparator
"LF" or "CRLF"
- returns
the converted content
- def base64Decode(value: String): Array[Byte]
- def base64Encode(value: Array[Byte]): String
-
def
convertFromByteArray(content: Array[Byte]): String
Make string from byte array.
Make string from byte array. Character encoding is detected automatically by StringUtil.detectEncoding. And if given bytes contains UTF-8 BOM, it's removed from returned string.
-
def
convertLineSeparator(content: String, lineSeparator: String): String
Converts line separator in the given content.
Converts line separator in the given content.
- content
the content
- lineSeparator
"LF" or "CRLF"
- returns
the converted content
- def decodeBlowfish(value: String): String
- def detectEncoding(content: Array[Byte]): String
- def encodeBlowfish(value: String): String
- def escapeHtml(value: String): String
-
def
extractCloseId(message: String): Seq[String]
Extract close issue id like
from the given message.close #issueId
Extract close issue id like
from the given message.close #issueId
- message
the message which may contains close command
- returns
the iterator of issue id
-
def
extractIssueId(message: String): Seq[String]
Extract issue id like
from the given message.#issueId
Extract issue id like
from the given message.#issueId
- message
the message which may contains issue id
- returns
the iterator of issue id
- def getRepositoryViewerUrl(gitRepositoryUrl: String, baseUrl: Option[String]): String
- def isInteger(value: String): Boolean
- def md5(value: String): String
- def pbkdf2_sha256(value: String): String
- def pbkdf2_sha256(iter: Int, salt: String, value: String): String
- def sha1(value: String): String
- def splitWords(value: String): Array[String]
- def urlDecode(value: String): String
- def urlEncode(value: String): String