PDA

View Full Version : string() signature



eurosat7
07-21-2010, 01:36 PM
The documentation (http://udn.epicgames.com/Three/StringsInUnrealScript.html#Split) says:

int Split (coerce string Src, string Divider, out array Parts)
But in object.uc of UDK-2010-07 I find:

static final function string Split
(coerce string Text, coerce string SplitStr, optional bool bOmitSplitStr)


http://udn.epicgames.com/Three/StringsInUnrealScript.html

The whole page seems to be copied from version Two. Lot of things have improoved.
Epic, please rebuild that page!

eurosat7
07-21-2010, 02:17 PM
Seems like Divide() does no longer exist.

Bad hack: I've added that function to object.uc again:

static final function bool Divide (coerce string Src, string Divider, out string LeftPart, out string RightPart){
local int pos;
pos = InStr(Src,Divider);
if (pos==-1) return false;
LeftPart=Left(Src,pos);
RightPart=Mid(Src,pos+len(Divider));
return true;
}
I need it to get the LibHTTP4 working again.