void kexBinFile::WriteString(const kexStr &val) { const char *c = val.c_str(); for(int i = 0; i < val.Length(); i++) { Write8(c[i]); } Write8(0); }
kexStr::kexStr(const kexStr &string) { Init(); if(string.charPtr == NULL) return; CopyNew(string.charPtr, string.Length()); }
void kexInputKey::AddAction(byte id, const kexStr &str) { AddAction(id, str.c_str()); }
int kexStr::IndexOf(const kexStr &pattern) const { return IndexOf(pattern.c_str()); }
kexStr kexStr::operator+(const kexStr &str) { kexStr out(*this); return out.Concat(str.c_str()); }
bool kexStr::Compare(const kexStr &a, const kexStr &b) { return Compare(a.c_str(), b.c_str()); }
bool kexWorldObject::RangeDamage(const kexStr &damageDef, const float dmgRadius, const kexVec3 &dmgOrigin) { return RangeDamage(damageDef.c_str(), dmgRadius, dmgOrigin); }