detect_custom_text_format_candidate

Function detect_custom_text_format_candidate 

Source
pub fn detect_custom_text_format_candidate(
    sample: &[u8],
    hint: Option<&DetectionHint>,
) -> Option<DetectionCandidate>
Expand description

Detects custom text document formats (such as DcText with @<token>@ tokens or DcIntegerList / Dcal integer lists) within sample.

In compat mode (hint.compat == true), this returns None so that output strictly matches upstream UNIX file.