search


Description:

public unowned string? search (char[] buffer, out int matched_id)

Try to match the string buffer with a pattern in this.

Parameters:

this

The Trie to search in.

buffer

The string to match against a pattern in this.

matched_id

An integer address to store the matched pattern id in.

buflen

The length of buffer.

Returns:

The matched pattern, or null if no pattern is matched.