Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

stristr haystack needle [before_needle = false]


Alias

None


Description

Case-insensitive strstr.


Parameters

haystack

The input string.

needle

Search pattern (must be a string).

before_needle

Optional Parameter: If TRUE, this command returns the part of the haystack before the first occurrence of the needle (excluding the needle).


Return Value

String: Returns the portion of string, or FALSE if needle is not found. Use libcox_value_to_string() to extract the processing result.