31 void Replace(
const std::vector<std::pair<int64_t, const FstClass *>> &pairs,
33 for (
const auto &pair : pairs) {
40 Apply<Operation<FstReplaceArgs>>(
"Replace", ofst->
ArcType(), &args);
void Replace(const std::vector< std::pair< int64_t, const FstClass * >> &pairs, MutableFstClass *ofst, std::vector< std::pair< int64_t, int64_t >> *parens, int64_t root, PdtParserType parser_type, int64_t start_paren_labels, const std::string &left_paren_prefix, const std::string &right_paren_prefix)
REGISTER_FST_OPERATION_3ARCS(Compress, CompressArgs)
constexpr uint64_t kError
const std::string & ArcType() const final
std::tuple< const std::vector< std::pair< int64_t, const FstClass * >> &, MutableFstClass *, const ReplaceOptions & > FstReplaceArgs
bool ArcTypesMatch(const M &m, const N &n, const std::string &op_name)
void SetProperties(uint64_t props, uint64_t mask)