Turok
 
Loading...
Searching...
No Matches
kStr Class Reference

String class functions. More...

Public Member Functions

 kStr ()
 
 kStr (const kStr &in s)
 
uint Hash () const
 Returns HashID from this instance.
 
kStrToUpper ()
 Converts string to upper case characters.
 
kStrToLower ()
 Converts string to lower case characters.
 
int Atoi () const
 Converts string to int.
 
float Atof () const
 Converts string to float.
 
bool Contains (const kStr &in) const
 contains the string
 
bool ContainsNoCase (const kStr &in) const
 contains the string ignoring case
 
bool IsEmpty () const
 length of string is 0
 
uint64 IndexOf (const kStr &in) const
 Reports the zero-based index of the first occurrence of a specified string within this instance. The method returns uint64(-1) if the string is not found in this instance.
 
uint64 Length () const
 Returns the length of the string.
 
int8 opIndex (const int64 i)
 Returns The ASCII code of the character at the strings index.
 
bool opEquals (const kStr &in s) const
 
kStropAssign (const kStr &in s)
 
kStr opAdd (const kStr &in s) const
 
kStr opAdd (bool b) const
 
kStr opAdd (int i) const
 
kStr opAdd (uint i) const
 
kStr opAdd (int64 i) const
 
kStr opAdd (uint64 i) const
 
kStr opAdd (int16 i) const
 
kStr opAdd (uint16 i) const
 
kStr opAdd (float f) const
 
kStropAddAssign (const kStr &in s)
 
kStropAddAssign (bool b)
 

Detailed Description

String class functions.

Definition at line 596 of file t1_scriptAPI.cpp.

Constructor & Destructor Documentation

◆ kStr() [1/2]

kStr::kStr ( )

◆ kStr() [2/2]

kStr::kStr ( const kStr &in s)

Member Function Documentation

◆ Atof()

float kStr::Atof ( ) const

Converts string to float.

◆ Atoi()

int kStr::Atoi ( ) const

Converts string to int.

◆ Contains()

bool kStr::Contains ( const kStr & in) const

contains the string

◆ ContainsNoCase()

bool kStr::ContainsNoCase ( const kStr & in) const

contains the string ignoring case

◆ Hash()

uint kStr::Hash ( ) const

Returns HashID from this instance.

◆ IndexOf()

uint64 kStr::IndexOf ( const kStr & in) const

Reports the zero-based index of the first occurrence of a specified string within this instance. The method returns uint64(-1) if the string is not found in this instance.

◆ IsEmpty()

bool kStr::IsEmpty ( ) const

length of string is 0

◆ Length()

uint64 kStr::Length ( ) const

Returns the length of the string.

◆ opAdd() [1/9]

kStr kStr::opAdd ( bool b) const

◆ opAdd() [2/9]

kStr kStr::opAdd ( const kStr &in s) const

◆ opAdd() [3/9]

kStr kStr::opAdd ( float f) const

◆ opAdd() [4/9]

kStr kStr::opAdd ( int i) const

◆ opAdd() [5/9]

kStr kStr::opAdd ( int16 i) const

◆ opAdd() [6/9]

kStr kStr::opAdd ( int64 i) const

◆ opAdd() [7/9]

kStr kStr::opAdd ( uint i) const

◆ opAdd() [8/9]

kStr kStr::opAdd ( uint16 i) const

◆ opAdd() [9/9]

kStr kStr::opAdd ( uint64 i) const

◆ opAddAssign() [1/2]

kStr & kStr::opAddAssign ( bool b)

◆ opAddAssign() [2/2]

kStr & kStr::opAddAssign ( const kStr &in s)

◆ opAssign()

kStr & kStr::opAssign ( const kStr &in s)

◆ opEquals()

bool kStr::opEquals ( const kStr &in s) const

◆ opIndex()

int8 kStr::opIndex ( const int64 i)

Returns The ASCII code of the character at the strings index.

◆ ToLower()

kStr & kStr::ToLower ( )

Converts string to lower case characters.

◆ ToUpper()

kStr & kStr::ToUpper ( )

Converts string to upper case characters.