passes/hierarchy/hierarchy.cc
// Return the "basic" type for an array item.
Return the "basic" type for an array item.
Return the " basic " type for an array item .
std::string basic_cell_type(const std::string celltype, int pos[3] = nullptr) {
	std::string basicType = celltype;
	if (celltype.compare(0, strlen("$array:"), "$array:") == 0) {
		int pos_idx = celltype.find_first_of(':');
		int pos_num = celltype.find_first_of(':', pos_idx + 1);
		int pos_type = celltype.find_first_of(':', pos_num + 1);
		basicType = celltype.substr(pos_type + 1);
		if (pos != nullptr) {
			pos[0] = pos_idx;
			pos[1] = pos_num;
			pos[2] = pos_type;
		}
	}
	return basicType;
}
std :: string basic_cell_type ( const std :: string celltype , int pos [ 3 ] = nullptr ) { std :: string basicType = celltype ; if ( celltype . compare ( 0 , strlen ( " " ) , " " ) == 0 ) { int pos_idx = celltype . find_first_of ( ' ' ) ; int pos_num = celltype . find_first_of ( ' ' , pos_idx + 1 ) ; int pos_type = celltype . find_first_of ( ' ' , pos_num + 1 ) ; basicType = celltype . substr ( pos_type + 1 ) ; if ( pos != nullptr ) { pos [ 0 ] = pos_idx ; pos [ 1 ] = pos_num ; pos [ 2 ] = pos_type ; } } return basicType ; }
Return the "basic" type for an array item.
Return the " basic " type for an array item .