o

gitbucket.core.util

StringUtil

object StringUtil

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. def base64Decode(value: String): Array[Byte]
  3. def base64Encode(value: Array[Byte]): String
  4. 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.

  5. 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

  6. def decodeBlowfish(value: String): String
  7. def detectEncoding(content: Array[Byte]): String
  8. def encodeBlowfish(value: String): String
  9. def escapeHtml(value: String): String
  10. def extractCloseId(message: String): Seq[String]

    Extract close issue id like close #issueId from the given message.

    Extract close issue id like close #issueId from the given message.

    message

    the message which may contains close command

    returns

    the iterator of issue id

  11. def extractIssueId(message: String): Seq[String]

    Extract issue id like #issueId from the given message.

    Extract issue id like #issueId from the given message.

    message

    the message which may contains issue id

    returns

    the iterator of issue id

  12. def getRepositoryViewerUrl(gitRepositoryUrl: String, baseUrl: Option[String]): String
  13. def isInteger(value: String): Boolean
  14. def md5(value: String): String
  15. def pbkdf2_sha256(value: String): String
  16. def pbkdf2_sha256(iter: Int, salt: String, value: String): String
  17. def sha1(value: String): String
  18. def splitWords(value: String): Array[String]
  19. def urlDecode(value: String): String
  20. def urlEncode(value: String): String