QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

classQString

QString Class Reference

List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

An abstract utility class to handle string manipulation. All methods are statically available.

Constructor & Destructor Documentation

QString::__construct (  )  [final]

This faux constructor method throws a caller exception. The String object should never be instantiated, and this constructor override simply guarantees it.

Returns:
void


Member Function Documentation

static QString::FirstCharacter ( strString  )  [static, final]

Returns the first character of a given string, or null if the given string is null.

Parameters:
string $strString
Returns:
string the first character, or null

Referenced by QCodeGenBase::EvaluateTemplate(), QCodeGenBase::GenerateFiles(), QI18n::ParsePoData(), QApplicationBase::PathInfo(), QCodeGenBase::TypeTokenFromTypeName(), QConvertNotationBase::UnderscoreFromCamelCase(), and QConvertNotationBase::WordsFromCamelCase().

static QString::LastCharacter ( strString  )  [static, final]

Returns the last character of a given string, or null if the given string is null.

Parameters:
string $strString
Returns:
string the last character, or null

Referenced by QJavaScriptAction::__construct(), QCodeGenBase::EvaluateTemplate(), QApplicationBase::RenderJavaScript(), and QSoapService::Run().

static QString::Truncate ( strText,
intMaxLength 
) [static, final]

Truncates the string to a given length, adding elipses (if needed).

Parameters:
string $strString string to truncate
integer $intMaxLength the maximum possible length of the string to return (including length of the elipse)
Returns:
string the full string or the truncated string with eplise

static QString::XmlEscape ( strString  )  [static, final]

Escapes the string so that it can be safely used in as an Xml Node (basically, adding CDATA if needed)

Parameters:
string $strString string to escape
Returns:
string the XML Node-safe String

Referenced by QRssItem::GetXml(), QApplicationBase::Redirect(), QFormBase::RenderAjax(), and QControlBase::RenderOutput().


The documentation for this class was generated from the following file: