org.specs.util.ExtendedString.ExtendedString

class ExtendedString

case class ExtendedString(val s : String)

 extends Product


This class adds utility functions to Strings


Source: ExtendedString.scala(9)

 Constructors

def this(s : String)

 Fields

productArity override def productArity Int
productPrefix override def productPrefix String
uncapitalize def uncapitalize
[details]
return
- the String s with its first character being uncapitalized: "HELLO".uncapitalize -> "hELLO"
String

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals override def equals(arg0 : Any) Boolean
finalize protected def finalize Unit AnyRef
findAll def findAll(group : String)
This is a shortcut for groups("(" + group + ")") [details]
param
group - specification of the groups to find
return
- a list with every group found
List[String]
getClass final def getClass Class[Object] AnyRef
groups def groups(pattern : String)
[details]
param
pattern - regexp pattern with groups (defined using parenthesis) specifying what to search in the string s
return
- a list with every group found
List[String]
hashCode override def hashCode Int
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
productElement override def productElement(arg0 : Int) Any
removeAll def removeAll(remove : String)
[details]
param
remove - String to suppress from the original string
return
- a String where every occurrence of remove has been suppressed
String
removeFrom def removeFrom(sub : String)
Remove everything from the first occurrence of a given substring
String
replaceGroups def replaceGroups(pattern : String, function : (String) => Any) String
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString override def toString String
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.