This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
If lets say I do this:
Stringsub("thisString", 3, 3)
What would it return?
"" A null string.
This function is annoying because with stranded cpp string the function is (startchar, length)
grrrr
@grenegg: Go
What do you mean?
@killa4444: Go
Oh, and welcome to sc2mapster! :D
Rather then take the starting char and last char the stranded Cpp string function takes the starting char and the length of the string. Although it seems like the starcraft way is easier.
He means to compare galaxy's substring, StringSub (string s, int start, int end), to cpp substring, string::substr (start,length).
EDIT: Or as he said, yes. =D
This would return "i". It returns everything from the 3rd to the 3rd character of the string. So only the 3rd.
It might return "s" if StringSub indices are 0-based, but I think they aren't.
If lets say I do this:
Stringsub("thisString", 3, 3)
What would it return?
"" A null string.
This function is annoying because with stranded cpp string the function is (startchar, length)
grrrr
@grenegg: Go
What do you mean?
@killa4444: Go
Oh, and welcome to sc2mapster! :D
Rather then take the starting char and last char the stranded Cpp string function takes the starting char and the length of the string. Although it seems like the starcraft way is easier.
He means to compare galaxy's substring, StringSub (string s, int start, int end), to cpp substring, string::substr (start,length).
EDIT: Or as he said, yes. =D
Stringsub("thisString", 3, 3)
This would return "i".
It returns everything from the 3rd to the 3rd character of the string. So only the 3rd.
It might return "s" if StringSub indices are 0-based, but I think they aren't.