Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

automata/bin/trie_generator: Output length rather than membership. RN…

…S-794
  • Loading branch information...
commit f44adb9fde31a17191ba7fff90bedd1a6315fbc1 1 parent afe9d55
Christopher Alfeld authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 automata/bin/trie_generator.cpp
View
4 automata/bin/trie_generator.cpp
@@ -102,7 +102,7 @@ void add_word(Automata& a, const string& s)
IronAutomata::buffer_t content_buffer;
IronAutomata::BufferAssembler assembler(content_buffer);
- assembler.append_object(uint32_t(1));
+ assembler.append_object(uint32_t(s.length()));
output->content().assign(
content_buffer.begin(), content_buffer.end()
@@ -154,7 +154,7 @@ int main(int argc, char** argv)
breadth_first(a, optimize_edges);
deduplicate_outputs(a);
- a.metadata()["Output-Type"] = "string";
+ a.metadata()["Output-Type"] = "length";
write_automata(a, cout, chunk_size);
}
Please sign in to comment.
Something went wrong with that request. Please try again.