}
/* }}} */
-/* {{{ collator_cmp_sort_keys
- * Compare sort keys
- */
+/* {{{ Compare sort keys */
static int collator_cmp_sort_keys( const void *p1, const void *p2 )
{
char* key1 = ((collator_sort_key_index_t*)p1)->key;
}
/* }}} */
-/* {{{ collator_get_compare_function
- * Choose compare function according to sort flags.
- */
+/* {{{ Choose compare function according to sort flags. */
static collator_compare_func_t collator_get_compare_function( const zend_long sort_flags )
{
collator_compare_func_t func;
}
/* }}} */
-/* {{{ collator_sort_internal
- * Common code shared by collator_sort() and collator_asort() API functions.
- */
+/* {{{ Common code shared by collator_sort() and collator_asort() API functions. */
static void collator_sort_internal( int renumber, INTERNAL_FUNCTION_PARAMETERS )
{
zval saved_collator;
}
/* }}} */
-/* {{{ Equivalent to standard PHP sort using Collator.
- * Uses ICU ucol_getSortKey for performance. }}} */
/* {{{ Equivalent to standard PHP sort using Collator.
* Uses ICU ucol_getSortKey for performance.
*/
#include "dateformat_class.h"
#include "dateformat_data.h"
-/* {{{ * Internal function which calls the udat_format */
+/* {{{ Internal function which calls the udat_format */
static void internal_format(IntlDateFormatter_object *dfo, UDate timestamp, zval *return_value)
{
UChar* formatted = NULL;
/* }}} */
-/* {{{ * Internal function which fetches an element from the passed array for the key_name passed */
+/* {{{ Internal function which fetches an element from the passed array for the key_name passed */
static int32_t internal_get_arr_ele(IntlDateFormatter_object *dfo,
HashTable* hash_arr, char* key_name, intl_error *err)
{
}
/* }}} */
-/* {{{ * Internal function which sets UCalendar from the passed array and retrieves timestamp */
+/* {{{ Internal function which sets UCalendar from the passed array and retrieves timestamp */
static UDate internal_get_timestamp(IntlDateFormatter_object *dfo,
HashTable *hash_arr)
{
zend_class_entry *IntlException_ce_ptr;
-/* {{{ intl_error* intl_g_error_get()
- * Return global error structure.
- */
+/* {{{ Return global error structure. */
static intl_error* intl_g_error_get( void )
{
return &INTL_G( g_error );
}
/* }}} */
-/* {{{ void intl_free_custom_error_msg( intl_error* err )
- * Free mem.
- */
+/* {{{ Free mem. */
static void intl_free_custom_error_msg( intl_error* err )
{
if( !err && !( err = intl_g_error_get( ) ) )
}
/* }}} */
-/* {{{ intl_error* intl_error_create()
- * Create and initialize internals of 'intl_error'.
- */
+/* {{{ Create and initialize internals of 'intl_error'. */
intl_error* intl_error_create( void )
{
intl_error* err = ecalloc( 1, sizeof( intl_error ) );
}
/* }}} */
-/* {{{ void intl_error_init( intl_error* coll_error )
- * Initialize internals of 'intl_error'.
- */
+/* {{{ Initialize internals of 'intl_error'. */
void intl_error_init( intl_error* err )
{
if( !err && !( err = intl_g_error_get( ) ) )
}
/* }}} */
-/* {{{ void intl_error_reset( intl_error* err )
- * Set last error code to 0 and unset last error message
- */
+/* {{{ Set last error code to 0 and unset last error message */
void intl_error_reset( intl_error* err )
{
if( !err && !( err = intl_g_error_get( ) ) )
}
/* }}} */
-/* {{{ void intl_error_set_custom_msg( intl_error* err, char* msg, int copyMsg )
- * Set last error message to msg copying it if needed.
- */
+/* {{{ Set last error message to msg copying it if needed. */
void intl_error_set_custom_msg( intl_error* err, const char* msg, int copyMsg )
{
if( !msg )
}
/* }}} */
-/* {{{ const char* intl_error_get_message( intl_error* err )
- * Create output message in format "<intl_error_text>: <extra_user_error_text>".
- */
+/* {{{ Create output message in format "<intl_error_text>: <extra_user_error_text>". */
zend_string * intl_error_get_message( intl_error* err )
{
const char *uErrorName = NULL;
}
/* }}} */
-/* {{{ void intl_error_set_code( intl_error* err, UErrorCode err_code )
- * Set last error code.
- */
+/* {{{ Set last error code. */
void intl_error_set_code( intl_error* err, UErrorCode err_code )
{
if( !err && !( err = intl_g_error_get( ) ) )
}
/* }}} */
-/* {{{ void intl_error_get_code( intl_error* err )
- * Return last error code.
- */
+/* {{{ Return last error code. */
UErrorCode intl_error_get_code( intl_error* err )
{
if( !err && !( err = intl_g_error_get( ) ) )
}
/* }}} */
-/* {{{ void intl_error_set( intl_error* err, UErrorCode code, char* msg, int copyMsg )
- * Set error code and message.
- */
+/* {{{ Set error code and message. */
void intl_error_set( intl_error* err, UErrorCode code, const char* msg, int copyMsg )
{
intl_error_set_code( err, code );
}
/* }}} */
-/* {{{ void intl_errors_set( intl_error* err, UErrorCode code, char* msg, int copyMsg )
- * Set error code and message.
- */
+/* {{{ Set error code and message. */
void intl_errors_set( intl_error* err, UErrorCode code, const char* msg, int copyMsg )
{
intl_errors_set_code( err, code );
}
/* }}} */
-/* {{{ void intl_errors_reset( intl_error* err ) */
+/* {{{ */
void intl_errors_reset( intl_error* err )
{
if(err) {
}
/* }}} */
-/* {{{ void intl_errors_set_custom_msg( intl_error* err, char* msg, int copyMsg ) */
+/* {{{ */
void intl_errors_set_custom_msg( intl_error* err, const char* msg, int copyMsg )
{
if(err) {
}
/* }}} */
-/* {{{ intl_errors_set_code( intl_error* err, UErrorCode err_code ) */
+/* {{{ */
void intl_errors_set_code( intl_error* err, UErrorCode err_code )
{
if(err) {