String class functions.
More...
|
| kStr () |
|
| kStr (const kStr &in s) |
|
uint | Hash () const |
| Returns HashID from this instance.
|
|
kStr & | ToUpper () |
| Converts string to upper case characters.
|
|
kStr & | ToLower () |
| 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 s) 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.
|
|
kStr | Substr (uint64 start, uint64 length) const |
| Return a substring from the current string. Will return the current string if start or length indexes are out of range.
|
|
kStr | ReplaceSubstr (const kStr &in from, const kStr &in to) const |
| Returns a new kStr that replaced all occurrences of from with to.
|
|
bool | StartsWith (const kStr &in s) const |
| Returns true if this string starts with s.
|
|
bool | EndsWith (const kStr &in s) const |
| Returns true if this string ends with s.
|
|
const int8 | opIndex (const uint64 i) const |
| Returns the ASCII code of the character at the strings index.
|
|
int8 & | opIndex (const uint64 i) |
| Get/Set the ASCII code of the character at the strings index.
|
|
bool | opEquals (const kStr &in s) const |
|
kStr & | opAssign (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 |
|
kStr & | opAddAssign (const kStr &in s) |
|
kStr & | opAddAssign (bool b) |
|
String class functions.
Definition at line 613 of file t1_scriptAPI.cpp.
◆ kStr() [1/2]
◆ kStr() [2/2]
kStr::kStr |
( |
const kStr &in | s | ) |
|
◆ Atof()
float kStr::Atof |
( |
| ) |
const |
Converts string to float.
◆ Atoi()
◆ Contains()
bool kStr::Contains |
( |
const kStr & | in | ) |
const |
◆ ContainsNoCase()
bool kStr::ContainsNoCase |
( |
const kStr & | in | ) |
const |
contains the string ignoring case
◆ EndsWith()
bool kStr::EndsWith |
( |
const kStr &in | s | ) |
const |
Returns true if this string ends with s.
◆ Hash()
uint kStr::Hash |
( |
| ) |
const |
Returns HashID from this instance.
◆ IndexOf()
uint64 kStr::IndexOf |
( |
const kStr &in | s | ) |
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()
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() [1/2]
int8 & kStr::opIndex |
( |
const uint64 | i | ) |
|
Get/Set the ASCII code of the character at the strings index.
◆ opIndex() [2/2]
const int8 kStr::opIndex |
( |
const uint64 | i | ) |
const |
Returns the ASCII code of the character at the strings index.
◆ ReplaceSubstr()
kStr kStr::ReplaceSubstr |
( |
const kStr &in | from, |
|
|
const kStr &in | to ) const |
Returns a new kStr that replaced all occurrences of from with to.
◆ StartsWith()
bool kStr::StartsWith |
( |
const kStr &in | s | ) |
const |
Returns true if this string starts with s.
◆ Substr()
kStr kStr::Substr |
( |
uint64 | start, |
|
|
uint64 | length ) const |
Return a substring from the current string. Will return the current string if start or length indexes are out of range.
◆ ToLower()
Converts string to lower case characters.
◆ ToUpper()
Converts string to upper case characters.