Skip to content

Commit 3d8cb61

Browse files
authored
[skip ci] ext/intl: Fix various typo (GH-21615)
1 parent b822ebd commit 3d8cb61

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

ext/intl/ERROR_CONVENTIONS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ no way to pass ownership of the string without it being copied.
4040
unless the error is due to bad arguments, in which case only the global error
4141
should be set.
4242
43-
Objects store an intl_error structed in their private data. For instance:
43+
Objects store an intl_error in their private data. For instance:
4444
4545
```c
4646
typedef struct {
@@ -59,7 +59,7 @@ void intl_errors_set_code(intl_error* err, UErrorCode err_code);
5959
void intl_errors_set(intl_error* err, UErrorCode code, char* msg, int copyMsg);
6060
```
6161
62-
by passing a pointer to the object's `intl_error` structed as the first parameter.
62+
by passing a pointer to the object's `intl_error` as the first parameter.
6363
Node the extra `s` in the functions' names (`errors`, not `error`).
6464
6565
Static methods should only set the global error.

ext/intl/collator/collator_convert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ U_CFUNC zval* collator_convert_string_to_double( zval* str, zval *rv )
289289

290290
/* {{{ collator_convert_string_to_number_if_possible
291291
*
292-
* Convert string to numer.
292+
* Convert string to number.
293293
*
294294
* @param zval* str String to convert.
295295
*

ext/intl/collator/collator_sort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ U_CFUNC PHP_FUNCTION( collator_sort_with_sort_keys )
380380
if( !hash || zend_hash_num_elements( hash ) == 0 )
381381
RETURN_TRUE;
382382

383-
/* Create bufers */
383+
/* Create buffers */
384384
sortKeyBuf = reinterpret_cast<char *>(ecalloc( sortKeyBufSize, sizeof( char ) ));
385385
sortKeyIndxBuf = reinterpret_cast<collator_sort_key_index_t *>(ecalloc( sortKeyIndxBufSize, sizeof( uint8_t ) ));
386386
utf16_buf = eumalloc( utf16_buf_size );

ext/intl/formatter/formatter_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void formatter_data_init( formatter_data* nf_data )
3232
/* }}} */
3333

3434
/* {{{ void formatter_data_free( formatter_data* nf_data )
35-
* Clean up mem allocted by internals of formatter_data
35+
* Clean up mem allocated by internals of formatter_data
3636
*/
3737
void formatter_data_free( formatter_data* nf_data )
3838
{

ext/intl/intl_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void intl_error_set( intl_error* err, UErrorCode code, const char* msg);
3737
UErrorCode intl_error_get_code( intl_error* err );
3838
zend_string* intl_error_get_message( intl_error* err );
3939

40-
// Wrappers to synchonize object's and global error structures.
40+
// Wrappers to synchronize object's and global error structures.
4141
void intl_errors_reset( intl_error* err );
4242
void intl_errors_set_custom_msg( intl_error* err, const char* msg);
4343
void intl_errors_set_code( intl_error* err, UErrorCode err_code );

ext/intl/locale/locale_methods.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static zend_off_t getStrrtokenPos(char* str, zend_off_t savedPos)
254254
}
255255
}
256256
if(result < 1){
257-
/* Just in case inavlid locale e.g. '-x-xyz' or '-sl_Latn' */
257+
/* Just in case invalid locale e.g. '-x-xyz' or '-sl_Latn' */
258258
result =-1;
259259
}
260260
return result;
@@ -362,7 +362,7 @@ static zend_string* get_icu_value_internal( const char* loc_name , const char* t
362362
if( strcmp(tag_name , LOC_LANG_TAG)==0 ){
363363
return zend_string_init(loc_name, strlen(loc_name), 0);
364364
} else {
365-
/* Since Grandfathered , no value , do nothing , retutn NULL */
365+
/* Since Grandfathered , no value , do nothing , return NULL */
366366
return NULL;
367367
}
368368
}

ext/intl/transliterator/transliterator_class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void transliterator_object_init( Transliterator_object* to )
8080
/* }}} */
8181

8282
/* {{{ void transliterator_object_destroy( Transliterator_object* to )
83-
* Clean up mem allocted by internals of Transliterator_object
83+
* Clean up mem allocated by internals of Transliterator_object
8484
*/
8585
static void transliterator_object_destroy( Transliterator_object* to )
8686
{

0 commit comments

Comments
 (0)