Turok EX Modding Guide

Scripts kStr

string object

Constructors

void kStr( kStr& str )

copy constructor

Methods

int IndexOf( kStr& str )

returns the index of the first instance of str in the string, or -1 if there are none

uint Hash()

hash the string

int Atoi()

float Atof()

parse the string as an int or float

large numbers should not have commas separating digits

kStr& ToUpper()

kStr& ToLower()

convert the string to all upper or lower case

Operators

kStr = kStr

assignment

kStr + kStr

kStr += kStr

kStr + bool

kStr += bool

kStr + int

kStr + float

concatenate

kStr[ int ]

character code of the character at the given index