src/ccutil/unicharset.cpp
void UNICHARSET::CopyFrom(const UNICHARSET &src) {
  clear();
  for (unsigned ch = 0; ch < src.unichars.size(); ++ch) {
    const UNICHAR_PROPERTIES &src_props = src.unichars[ch].properties;
    const char *utf8 = src.id_to_unichar(ch);
    unichar_insert_backwards_compatible(utf8);
    unichars[ch].properties.ExpandRangesFrom(src_props);
  }
  // Set properties, including mirror and other_case, WITHOUT reordering
  // the unicharset.
  PartialSetPropertiesFromOther(0, src);
}
// Makes this a copy of src. Clears this completely first, so the automatic
// ids will not be present in this if not in src. Does NOT reorder the set!
Makes this a copy of src. Clears this completely first, so the automatic
ids will not be present in this if not in src. Does NOT reorder the set!
Makes this a copy of src . Clears this completely first so the automatic ids will not be present in this if not in src . Does NOT reorder the set!
void UNICHARSET::CopyFrom(const UNICHARSET &src) {
  clear();
  for (unsigned ch = 0; ch < src.unichars.size(); ++ch) {
    const UNICHAR_PROPERTIES &src_props = src.unichars[ch].properties;
    const char *utf8 = src.id_to_unichar(ch);
    unichar_insert_backwards_compatible(utf8);
    unichars[ch].properties.ExpandRangesFrom(src_props);
  }
  PartialSetPropertiesFromOther(0, src);
}
void UNICHARSET :: CopyFrom ( const UNICHARSET & src ) { clear ( ) ; for ( unsigned ch = 0 ; ch < src . unichars . size ( ) ; ++ ch ) { const UNICHAR_PROPERTIES & src_props = src . unichars [ ch ] . properties ; const char * utf8 = src . id_to_unichar ( ch ) ; unichar_insert_backwards_compatible ( utf8 ) ; unichars [ ch ] . properties . ExpandRangesFrom ( src_props ) ; } PartialSetPropertiesFromOther ( 0 , src ) ; }
Makes this a copy of src.
Makes this a copy of src .
// Set properties, including mirror and other_case, WITHOUT reordering // the unicharset.