We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877bfed commit 3347e30Copy full SHA for 3347e30
src/aho-corasick.cpp
@@ -270,6 +270,18 @@ node; either active or inactive.
270
:complexity: Constant
271
)pbdoc");
272
273
+ thing.def(
274
+ "is_terminal",
275
+ [](AhoCorasick const& ac, size_t i) {
276
+ ac.throw_if_node_index_out_of_range(i);
277
+ ac.throw_if_node_index_not_active(i);
278
+ return ac.node_no_checks(i).is_terminal();
279
+ },
280
+ py::arg("i"),
281
+ R"pbdoc(
282
+ TODO
283
+)pbdoc");
284
+
285
// Helpers
286
m.def("aho_corasick_add_word",
287
&aho_corasick::add_word<word_type>,
0 commit comments