src/Convert.php
/**
     * Returns true if $input string is a single word composed only by uppercase characters.
     *
     * ```
     * isUppercaseWord('BRUSSELS'); // true
     * isUppercaseWord('Brussels'); // false
     * ```
     *
     * @see     https://www.regular-expressions.info/unicode.html#category
     *
     * @param string $input String to be tested.
     *
     * @return bool
     * @throws \Jawira\CaseConverter\CaseConverterException
     */
Returns true if $input string is a single word composed only by uppercase characters.



@param string $input String to be tested.


Returns true if $input string is a single word composed only by uppercase characters . @param string $input String to be tested .
protected function isUppercaseWord(string $input): bool
    {
        $match = preg_match('#^\p{Lu}+$#u', $input);
        if (false === $match) {
            throw new CaseConverterException('Error executing regex'); 
        }
        return 1 === $match;
    }
protected function isUppercaseWord ( string $ input ) : bool { $ match = preg_match ( '#^\p{Lu}+$#u' , $ input ) ; if ( false === $ match ) { throw new CaseConverterException ( 'Error executing regex' ) ; } return 1 === $ match ; }
Returns true if $input string is a single word composed only by uppercase characters.
Returns true if $input string is a single word composed only by uppercase characters .
// @codeCoverageIgnore