src/Split/Splitter.php
/**
     * This is an utility method, typically this method is used by to split a string based on pattern.
     *
     * @param string $inputString
     * @param string $pattern
     *
     * @return string[]
     * @throws \Jawira\CaseConverter\CaseConverterException
     */
This is an utility method, typically this method is used by to split a string based on pattern.
@param string $inputString
@param string $pattern


This is an utility method typically this method is used by to split a string based on pattern . @param string $inputString @param string $pattern
protected function splitUsingPattern(string $inputString, string $pattern): array
    {
        $words = preg_split($pattern, $inputString, 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
        if ($words === false) {
            throw new CaseConverterException("Error while processing '{$this->inputString}'"); 
        }
        return $words;
    }
protected function splitUsingPattern ( string $ inputString , string $ pattern ) : array { $ words = preg_split ( $ pattern , $ inputString , 0 , PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ) ; if ( $ words === false ) { throw new CaseConverterException ( " Error while processing ' { $ this -> inputString } ' " ) ; } return $ words ; }
This is an utility method, typically this method is used by to split a string based on pattern.
This is an utility method typically this method is used by to split a string based on pattern .
// @codeCoverageIgnore