GoLang intl_error_name

request it (435)
GoLang replacement for PHP's intl_error_name [edit | history]



Do you know a GoLang replacement for PHP's intl_error_name? Write it!

PHP intl_error_name

PHP original manual for intl_error_name [ show | php.net ]

intl_error_name

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)

intl_error_nameGet symbolic name for a given error code

Description

string intl_error_name ( int $error_code )

Return ICU error code name.

Parameters

error_code

ICU error code.

Return Values

The returned string will be the same as the name of the error code constant.

Examples

Example #1 intl_error_name() example

<?php
$coll     
collator_create'en_RU' );
$err_code collator_get_error_code$coll );

printf"Symbolic name for %d is %s\n."$err_codeintl_error_name$err_code ) );
?>

The above example will output something similar to:

Symbolic name for -128 is U_USING_FALLBACK_WARNING.

See Also