private function parseModifiers($modifiers) {
		$info = new LoggerFormattingInfo();
	
		// If no modifiers are given, return default values
		if (empty($modifiers)) {
			return $info;
		}
	
		// Validate
		$pattern = '/^(-?[0-9]+)?\.?-?[0-9]+$/';
		if (!preg_match($pattern, $modifiers)) {
			trigger_error("log4php: Invalid modifier in conversion pattern: [$modifiers]. Ignoring modifier.", E_USER_WARNING);
			return $info;
		}
	
		$parts = explode('.', $modifiers);
	
		if (!empty($parts[0])) {
			$minPart = (integer) $parts[0];
			$info->min = abs($minPart);
			$info->padLeft = ($minPart > 0);
		}
	
		if (!empty($parts[1])) {
			$maxPart = (integer) $parts[1];
			$info->max = abs($maxPart);
			$info->trimLeft = ($maxPart < 0);
		}
	
		return $info;
	}
private function parseModifiers($modifiers) {
		$info = new LoggerFormattingInfo();
	
		// If no modifiers are given, return default values
		if (empty($modifiers)) {
			return $info;
		}
	
		// Validate
		$pattern = '/^(-?[0-9]+)?\.?-?[0-9]+$/';
		if (!preg_match($pattern, $modifiers)) {
			trigger_error("log4php: Invalid modifier in conversion pattern: [$modifiers]. Ignoring modifier.", E_USER_WARNING);
			return $info;
		}
	
		$parts = explode('.', $modifiers);
	
		if (!empty($parts[0])) {
			$minPart = (integer) $parts[0];
			$info->min = abs($minPart);
			$info->padLeft = ($minPart > 0);
		}
	
		if (!empty($parts[1])) {
			$maxPart = (integer) $parts[1];
			$info->max = abs($maxPart);
			$info->trimLeft = ($maxPart < 0);
		}
	
		return $info;
	}
private function parseModifiers ( $ modifiers ) { $ info = new LoggerFormattingInfo ( ) ; // If no modifiers are given, return default values
 if ( empty ( $ modifiers ) ) { return $ info ; } // Validate
 $ pattern = '/^(-?[0-9]+)?\.?-?[0-9]+$/' ; if ( ! preg_match ( $ pattern , $ modifiers ) ) { trigger_error ( "log4php: Invalid modifier in conversion pattern: [$modifiers]. Ignoring modifier." , E_USER_WARNING ) ; return $ info ; } $ parts = explode ( '.' , $ modifiers ) ; if ( ! empty ( $ parts [ 0 ] ) ) { $ minPart = ( integer ) $ parts [ 0 ] ; $ info -> min = abs ( $ minPart ) ; $ info -> padLeft = ( $ minPart > 0 ) ; } if ( ! empty ( $ parts [ 1 ] ) ) { $ maxPart = ( integer ) $ parts [ 1 ] ; $ info -> max = abs ( $ maxPart ) ; $ info -> trimLeft = ( $ maxPart < 0 ) ; } return $ info ; }
Parses the formatting modifiers and produces the corresponding
LoggerFormattingInfo object.

@param string $modifier
@return LoggerFormattingInfo
@throws LoggerException
Parses the formatting modifiers and produces the corresponding LoggerFormattingInfo object .