Automattic\WooCommerce\Vendor\Sabberworm\CSS\Parsing

ParserState::strposprivateWC 1.0

Method of the class: ParserState{}

No Hooks.

Returns

Int|false.

Usage

// private - for code of main (parent) class only
$result = $this->strpos( $sString, $sNeedle, $iOffset );
$sString(string) (required)
.
$sNeedle(string) (required)
.
$iOffset(int) (required)
.

ParserState::strpos() code WC 10.5.0

private function strpos($sString, $sNeedle, $iOffset)
{
    if ($this->oParserSettings->bMultibyteSupport) {
        return mb_strpos($sString, $sNeedle, $iOffset, $this->sCharset);
    } else {
        return strpos($sString, $sNeedle, $iOffset);
    }
}