Esempio n. 1
0
void ClassInstanceData::replace(BrowserClassInstance * other,
				RelationData * current,
				RelationData * future,
				bool current_isa,
				bool future_isa) {
  replace_internal(other, current, future, current_isa, future_isa);
  ((ClassInstanceData *) other->get_data())
    ->replace_internal((BrowserClassInstance *) browser_node,
		       current, future, !current_isa, !future_isa);
  
  if (future != 0) {
    remove_clone(other, future, future_isa);
    ((ClassInstanceData *) other->get_data())
      ->remove_clone((BrowserClassInstance *) browser_node, 
		     future, !future_isa);
  }
}
Esempio n. 2
0
void StringUtils::replace_all(std::string *source,
                              const std::string &from, const std::string &to)
{
    replace_internal(source, from, to, false);
}