StringUtils

StringUtils
object StringUtils

Utility object for string operations.

This object provides various methods for manipulating strings.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def isPalindrome(s: String): Boolean

Checks if a string is a palindrome.

Checks if a string is a palindrome.

Value parameters

s

the string to check

Attributes

Returns

true if the string is a palindrome, false otherwise

def reverse(s: String): String

Reverses a string.

Reverses a string.

Value parameters

s

the string to reverse

Attributes

Returns

the reversed string

def toUpperCase(s: String): String

Converts a string to uppercase.

Converts a string to uppercase.

Value parameters

s

the string to convert

Attributes

Returns

the uppercase string