src/ccutil/unicharcompress.cpp
static bool DecodeRadicalTable(std::string &radical_data, RSMap *radical_map) {
  std::vector<std::string> lines = split(radical_data, '\n');
  for (unsigned i = 0; i < lines.size(); ++i) {
    if (!DecodeRadicalLine(lines[i], radical_map)) {
      tprintf("Invalid format in radical table at line %d: %s\n", i, lines[i].c_str());
      return false;
    }
  }
  return true;
}
// Helper function builds the RSMap from the radical-stroke file, which has
// already been read into a string. Returns false on error.
// The radical_stroke_table is non-const because it gets split and the caller
// is unlikely to want to use it again.
Helper function builds the RSMap from the radical-stroke file, which has
already been read into a string. Returns false on error.
The radical_stroke_table is non-const because it gets split and the caller
is unlikely to want to use it again.
Helper function builds the RSMap from the radical - stroke file which has already been read into a string . Returns false on error . The radical_stroke_table is non - const because it gets split and the caller is unlikely to want to use it again .
static bool DecodeRadicalTable(std::string &radical_data, RSMap *radical_map) {
  std::vector<std::string> lines = split(radical_data, '\n');
  for (unsigned i = 0; i < lines.size(); ++i) {
    if (!DecodeRadicalLine(lines[i], radical_map)) {
      tprintf("Invalid format in radical table at line %d: %s\n", i, lines[i].c_str());
      return false;
    }
  }
  return true;
}
static bool DecodeRadicalTable ( std :: string & radical_data , RSMap * radical_map ) { std :: vector < std :: string > lines = split ( radical_data , ' \n ' ) ; for ( unsigned i = 0 ; i < lines . size ( ) ; ++ i ) { if ( ! DecodeRadicalLine ( lines [ i ] , radical_map ) ) { tprintf ( " \n " , i , lines [ i ] . c_str ( ) ) ; return false ; } } return true ; }
Helper function builds the RSMap from the radical-stroke file, which has
already been read into a string.
Helper function builds the RSMap from the radical - stroke file which has already been read into a string .