abstract class IntlGlobals
Provides fake static versions of the global functions in the intl extension.
U_ZERO_ERROR | Indicates that no error occurred. |
U_ILLEGAL_ARGUMENT_ERROR | Indicates that an invalid argument was passed. |
U_PARSE_ERROR | Indicates that the parse() operation failed. |
static bool | isFailure(int $errorCode) Returns whether the error code indicates a failure. | |
static int | getErrorCode() Returns the error code of the last operation. | |
static string | getErrorMessage() Returns the error message of the last operation. | |
static string | getErrorName(int $code) Returns the symbolic name for a given error code. | |
static | setError(int $code, string $message = '') Sets the current error. |
Returns whether the error code indicates a failure.
int | $errorCode | The error code returned by IntlGlobals::getErrorCode() |
bool |
Returns the error code of the last operation.
Returns IntlGlobals::U_ZERO_ERROR if no error occurred.
int |
Returns the error message of the last operation.
Returns "U_ZERO_ERROR" if no error occurred.
string |
Returns the symbolic name for a given error code.
int | $code | The error code returned by IntlGlobals::getErrorCode() |
string |
Sets the current error.
int | $code | One of the error constants in this class |
string | $message | The ICU class error message |
InvalidArgumentException | If the code is not one of the error constants in this class |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Intl/Globals/IntlGlobals.html