API Guides > ConceptRT 3.x
StringDynamicFixed Class Reference

String whose size is fixed at the construction time. Construction is non-deterministic. Usage is deterministic. More...

Detailed Description

String whose size is fixed at the construction time. Construction is non-deterministic. Usage is deterministic.

+ Inheritance diagram for StringDynamicFixed:

Public Member Methods

 StringDynamicFixed (Int32 size)
 Constructor. More...
 
 StringDynamicFixed (const StringDynamicFixed &text)
 Constructor. More...
 
 StringDynamicFixed (const BaseStaticString &text)
 Constructor. More...
 
 StringDynamicFixed (PCChar8 text)
 Constructor. More...
 
StringDynamicFixed operator= (const StringDynamicFixed &text)
 Assignment operator. More...
 
StringDynamicFixedoperator= (PCChar8 right)
 Assignment operator. More...
 
StringDynamicFixedoperator= (Char8 right)
 Assignment operator. More...
 
 ~StringDynamicFixed ()
 Destructor. More...
 
- Public Member Methods inherited from BaseStaticString
 operator PCChar8 () const
 PCChar8 casting operator. More...
 
Int32 GetLength () const
 Gets the length. More...
 
BaseStaticStringoperator= (const BaseStaticString &right)
 Assignment operator. More...
 
BaseStaticStringoperator= (PCChar8 right)
 Assignment operator. More...
 
BaseStaticStringoperator= (Char8 right)
 Assignment operator. More...
 
BaseStaticStringoperator+= (PCChar8 right)
 Concatenation operator. More...
 
BaseStaticStringoperator+= (Char8 right)
 Concatenation operator. More...
 
Char8 GetAt (int charIndex) const
 Gets character at. More...
 
Char8 operator[] (int charIndex) const
 Array indexer operator. More...
 
Char8 operator[] (Int32 charIndex) const
 Array indexer operator. More...
 
void Left (BaseStaticString &result, Int32 count) const
 Extract the left part. More...
 
void Right (BaseStaticString &result, Int32 count) const
 Extract the right part. More...
 
void Mid (BaseStaticString &result, Int32 first, Int32 count) const
 Extract a string from this. More...
 
String Left (Int32 count) const
 Extract the left part. More...
 
String Right (Int32 count) const
 Extract the right part. More...
 
String Mid (Int32 first, Int32 count) const
 Extract a middle string. More...
 
void MakeUpper ()
 Makes upper. More...
 
void MakeLower ()
 Makes lower. More...
 
void TrimLeft ()
 Trim left. Removes blank characters on the left of the string. More...
 
void TrimRight ()
 Trim right. Removes blank characters on the right of the string. More...
 
void Trim ()
 Trim left and right. Removes blank characters on both side of the string. More...
 
bool Contains (Char8 c) const
 Query if this object contains the given character. More...
 
bool Contains (PCChar8 subString) const
 Query if this object contains the given subString. More...
 
void Replace (Char8 oldValue, Char8 newValue)
 Replaces a charactrer by another. More...
 
Int32 Find (Char8 c, Int32 start=0) const
 Searches for a character in the string. More...
 
Int32 Find (PCChar8 subString, Int32 start=0) const
 Searches for a subString in the string. More...
 
Int32 FindRightToLeft (Char8 c, Int32 start=-1) const
 Searches for a character from the left in the string. More...
 
Int32 FindRightToLeft (PCChar8 subString, Int32 start=-1) const
 Searches for a subString from the left in the string . More...
 
Int32 Compare (PCChar8 text) const
 Compare to the given string. More...
 
bool IsEmpty () const
 Query if the string is empty. More...
 
bool IsBool () const
 Query if this string contains a bool value. More...
 
bool IsInt (Int32 base=DefaultBase) const
 Query if this string contains an integer value. More...
 
bool IsFloat () const
 Query if this string contains a float value.. More...
 
void CheckBool () const
 Check bool. Raise an exception whenever the string doesn't contains a bool value. More...
 
void CheckInt (Int32 base=DefaultBase) const
 Check int. Raise an exception whenever the string doesn't contains an integer value. More...
 
void CheckFloat () const
 Check float. Raise an exception whenever the string doesn't contains a float value. More...
 
bool ValBool () const
 Convert the string in bool value. More...
 
Int32 ValInt (Int32 base=DefaultBase) const
 Convert the string in integer value. More...
 
UInt32 ValUInt (Int32 base=DefaultBase) const
 Convert the string in integer value. More...
 
Int64 ValInt64 () const
 Convert the string in integer value. More...
 
UInt64 ValUInt64 () const
 Convert the string in integer value. More...
 
Float64 ValFloat () const
 Convert the string in float value. More...
 
Int32 GetSize () const
 Gets the string size. More...
 

Constructor & Destructor Documentation

Constructor.

Parameters
sizeThe size.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Constructor.

Parameters
textThe text.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Constructor.

Parameters
textThe text.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Constructor.

Parameters
textThe text.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Destructor.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Methods Documentation

StringDynamicFixed operator= ( const StringDynamicFixed text)

Assignment operator.

Parameters
textThe text.
Returns
A shallow copy of this object.
StringDynamicFixed& operator= ( PCChar8  right)

Assignment operator.

Parameters
rightThe right.
Returns
A shallow copy of this object.
StringDynamicFixed& operator= ( Char8  right)

Assignment operator.

Parameters
rightThe right.
Returns
A shallow copy of this object.