cpp/openlocationcode.cc
// Remove the separator and padding characters from the code.
Remove the separator and padding characters from the code.
Remove the separator and padding characters from the code .
std::string clean_code_chars(const std::string &code) {
  std::string clean_code(code);
  clean_code.erase(
      std::remove(clean_code.begin(), clean_code.end(), internal::kSeparator),
      clean_code.end());
  if (clean_code.find(internal::kPaddingCharacter)) {
    clean_code =
        clean_code.substr(0, clean_code.find(internal::kPaddingCharacter));
  }
  return clean_code;
}
std :: string clean_code_chars ( const std :: string & code ) { std :: string clean_code ( code ) ; clean_code . erase ( std :: remove ( clean_code . begin ( ) , clean_code . end ( ) , internal :: kSeparator ) , clean_code . end ( ) ) ; if ( clean_code . find ( internal :: kPaddingCharacter ) ) { clean_code = clean_code . substr ( 0 , clean_code . find ( internal :: kPaddingCharacter ) ) ; } return clean_code ; }
Remove the separator and padding characters from the code.
Remove the separator and padding characters from the code .