Exemple #1
0
dArrayT<dString*>*
dString::stringsByAppendingPaths(dArrayT<dString*>* paths) const {
	dArrayT<dString*>* result = CL_NEW(dArrayT<dString*>)->autorelease();
	
	for (dUInteger i = 0, cnt = paths->count(); i < cnt; ++i) {
		dString* str = paths->objectAtIndex(i);
		
		str = stringByAppendingPathComponent(str);
		result->addObject(str);
    }
	
	return result;
}
awx_string &awx_string::stringByAppendingPathComponent(awx_string &a)
{
	awx_string *temp = new awx_string();
	temp->value = stringByAppendingPathComponent((char*)a.value.c_str()).value;
	return *temp;
}