All pastes #73053 Raw Edit

Something

public text v1 · immutable
#73053 ·published 2006-06-27 11:47 UTC
rendered paste body
// Splitting up skills into the array
if (i->first == "skills") {
	int commas = std::count_if(i->second.begin(), i->second.end(), std::bind2nd(std::equal_to<char>(), ','));
	int done = 0;

	for (int j=0; j<i->second.size(); j+=2) {
		skills[done] = string_cast<int>(i->second.substr(j, 0));
		done++;

		if (done == commas) {
			break;
		}
	}
}