FAST.Framework  1.0.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
FString Class Reference

#include <FString.h>

Inheritance diagram for FString:
Inheritance graph
[legend]
Collaboration diagram for FString:
Collaboration graph
[legend]

Public Member Functions

 FString (const FString &string)
 Constructor string object.
 
 FString (const FChar &character)
 Constructor string object.
 
 FString (const char *string)
 Constructor string object.
 
 FString (const char &character)
 Constructor string object.
 
 FString ()
 Constructor string object.
 
virtual ~FString ()
 Destructor string object.
 
UInt Length () const
 Returns the length of the string, in terms of bytes.
 
FString Left (UInt length) const
 Returns left part of the string.
 
FString Right (UInt length) const
 Returns right part of the string.
 
FString Mid (UInt position, UInt length) const
 Returns mid part of the string.
 
FString Trim () const
 Trim the string on left and right.
 
FString TrimLeft () const
 Trim the string on left.
 
FString TrimRight () const
 Trim the string on right.
 
Boolean StartsWith (const char *string) const
 Returns TRUE if string started with "string", otherwise FALSE.
 
Boolean EndsWith (const char *string) const
 Returns TRUE if string ends with "string", otherwise FALSE.
 
Int Find (const char *string) const
 Returns first index of string with "string", if not exists, -1.
 
Int Find (UInt position, const char *string) const
 Returns first index of string with "string" startet from position, if not exists, -1.
 
Boolean Exists (const char *string) const
 Returns TRUE if string exists in the "string", otherwise FALSE.
 
FString Remove (UInt position) const
 Remove a character from string.
 
FString Insert (UInt position, const char *string) const
 Insert characters into string.
 
Boolean IsEmpty () const
 Returns TRUE if string is empty, otherwise FALSE.
 
Boolean IsNull () const
 Returns TRUE if string is NULL, otherwise FALSE.
 
Boolean IsNullOrEmpty () const
 Returns TRUE if string is NULL or empty, otherwise FALSE.
 
FString ToLower () const
 Convert object to lower string.
 
FString ToUpper () const
 Convert object to UPPER string.
 
Double ToDouble () const
 Convert object to douoble value.
 
Float ToFloat () const
 Convert object to fload value.
 
Int ToInt () const
 Convert object to intager value.
 
Long ToLong () const
 Convert object to long value.
 
FList< FStringSplit (const char *delimeter=" ") const
 Split the object, return flist object.
 
const char * Data () const
 
char operator[] (UInt position) const
 Returns a char from string.
 
void operator= (const FString &string)
 Create new string object.
 
void operator= (const char *string)
 Create new string object.
 
void operator= (const FChar &character)
 Create new string object.
 
void operator= (const char &character)
 Create new string object.
 
Boolean operator== (const FString &string) const
 Returns TRUE if current object and string equels, otherwise FALSE.
 
Boolean operator== (const char *string) const
 Returns TRUE if current object and string equels, otherwise FALSE.
 
Boolean operator!= (const FString &string) const
 Returns TRUE if current object and string are not equels, otherwise FALSE.
 
Boolean operator!= (const char *string) const
 Returns TRUE if current object and string are not equels, otherwise FALSE.
 
FStringoperator+= (const FString &string)
 Add a string to the current object.
 
FStringoperator+= (const FChar &character)
 Add a fchar to the current object.
 
FStringoperator+= (const char *string)
 Add a string to the current object.
 
FStringoperator+= (const char &character)
 Add a char to the the current object.
 
const type_info & GetType () override
 Returns the type info over object.
 
FString GetName () const override
 Returns the name of object.
 
- Public Member Functions inherited from FObject
 FObject ()=default
 Constructor.
 
virtual ~FObject ()=default
 Destructor.
 

Static Public Member Functions

static Boolean IsEmpty (const FString &string)
 Returns TRUE if string is empty, otherwise FALSE.
 
static Boolean IsEmpty (const char *string)
 Returns TRUE if string is empty, otherwise FALSE.
 
static Boolean IsNull (const FString &string)
 Returns TRUE if object is NULL, otherwise FALSE.
 
static Boolean IsNull (const char *string)
 Returns TRUE if object is NULL, otherwise FALSE.
 
static Boolean IsNullOrEmpty (const FString &string)
 Returns TRUE if string is NULL or empty, otherwise FALSE.
 
static Boolean IsNullOrEmpty (const char *string)
 Returns TRUE if string is NULL or empty, otherwise FALSE.
 
static Float ToFloat (const char *string)
 Convert static object to float value.
 
static Double ToDouble (const char *string)
 Convert static object to double value.
 
static Int ToInt (const char *string)
 Convert static object to int value.
 
static Long ToLong (const char *string)
 Convert static object to long value.
 
static const FString Format (const char *format,...)
 Create new string object.
 
static const FString Empty ()
 Returns a empty string.
 

Friends

const FString operator+ (const FString &first, const FString &second)
 
const FString operator+ (const FString &first, const FChar &second)
 
const FString operator+ (const FString &first, const char *second)
 
const FString operator+ (const FString &first, const char &second)
 

Detailed Description

Represents text as a sequence of UTF-16 code units

Member Function Documentation

◆ Data()

const char* FString::Data ( ) const
inline

Returns a pointer to an array that contains the same sequence of characters as the characters that make up the value of the string object.

Friends And Related Function Documentation

◆ operator+ [1/4]

const FString operator+ ( const FString first,
const char &  second 
)
friend
Parameters
firstAdd char at strings

◆ operator+ [2/4]

const FString operator+ ( const FString first,
const char *  second 
)
friend
Parameters
firstAdd char at strings

◆ operator+ [3/4]

const FString operator+ ( const FString first,
const FChar second 
)
friend
Parameters
firstAdd fchar at strings

◆ operator+ [4/4]

const FString operator+ ( const FString first,
const FString second 
)
friend
Parameters
firstAdd two strings

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