Skip to content

Commit

Permalink
Back- and front-port fixes for #55019
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwynne Raskind committed Aug 7, 2011
1 parent 37c18f5 commit 159635f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ext/intl/grapheme/grapheme_string.c
Expand Up @@ -677,7 +677,7 @@ PHP_FUNCTION(grapheme_stristr)
/* }}} */

/* {{{ grapheme_extract_charcount_iter - grapheme iterator for grapheme_extract MAXCHARS */
inline int32_t
static inline int32_t
grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len)
{
int pos = 0, prev_pos = 0;
Expand Down Expand Up @@ -714,7 +714,7 @@ grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char
/* }}} */

/* {{{ grapheme_extract_bytecount_iter - grapheme iterator for grapheme_extract MAXBYTES */
inline int32_t
static inline int32_t
grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len)
{
int pos = 0, prev_pos = 0;
Expand Down Expand Up @@ -748,7 +748,7 @@ grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char
/* }}} */

/* {{{ grapheme_extract_count_iter - grapheme iterator for grapheme_extract COUNT */
inline int32_t
static inline int32_t
grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len)
{
int pos = 0, next_pos = 0;
Expand Down
4 changes: 2 additions & 2 deletions ext/intl/grapheme/grapheme_util.c
Expand Up @@ -432,7 +432,7 @@ int grapheme_split_string(const UChar *text, int32_t text_length, int boundary_a
/* }}} */

/* {{{ grapheme_count_graphemes */
inline int32_t
int32_t
grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len)
{
int ret_len = 0;
Expand All @@ -456,7 +456,7 @@ grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len)
/* }}} */

/* {{{ grapheme_memnstr_grapheme: find needle in haystack using grapheme boundaries */
inline int32_t
int32_t
grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, UChar *end)
{
UChar *p = haystack;
Expand Down
4 changes: 2 additions & 2 deletions ext/intl/grapheme/grapheme_util.h
Expand Up @@ -36,10 +36,10 @@ int grapheme_ascii_check(const unsigned char *day, int32_t len);

int grapheme_split_string(const UChar *text, int32_t text_length, int boundary_array[], int boundary_array_len TSRMLS_DC );

inline int32_t
int32_t
grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len);

inline int32_t
int32_t
grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, UChar *end);

inline void *grapheme_memrchr_grapheme(const void *s, int c, int32_t n);
Expand Down

0 comments on commit 159635f

Please sign in to comment.