Class CQ.shared.String
| Package: | CQ.shared |
| Class: | String |
| Extends: | Object |
| Clientlib: | cq.shared |
Deprecated:
A helper class providing a set of String related utilities.
This class is a singleton and cannot be created directly.
Added in CQ 5.5.
Public Properties
This class has no public properties.
Public Methods
| |
contains( String str, String searchStr ) : Boolean
<static> Check to see if the the str contains the searchStr.
The comparison is case sensitive.
<static> Check to see if the the str contains the searchStr.
The comparison is case sensitive.
Parameters:
str : StringThe string to check. searchStr : StringThe prefix to find.
Returns:
|
String |
| |
endsWith( String str, String suffix ) : Boolean
<static> Check to see if the the str ends with the suffix.
The comparison is case sensitive.
<static> Check to see if the the str ends with the suffix.
The comparison is case sensitive.
Parameters:
str : StringThe string to check. suffix : StringThe suffix to find.
Returns:
|
String |
| |
startsWith( String str, String prefix ) : Boolean
<static> Check to see if the the str starts with the prefix.
The comparison is case sensitive.
<static> Check to see if the the str starts with the prefix.
The comparison is case sensitive.
Parameters:
str : StringThe string to check. prefix : StringThe prefix to find.
Returns:
|
String |
Public Events
This class has no public events.