Lines Matching refs:status
110 #define STRPOS_CHECK_STATUS(status, error) \ argument
111 if ( U_FAILURE( (status) ) ) { \
112 intl_error_set_code( NULL, (status) TSRMLS_CC ); \
137 UErrorCode status; in grapheme_strpos_utf16() local
146 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
147 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status ); in grapheme_strpos_utf16()
148 STRPOS_CHECK_STATUS(status, "Error converting input string to UTF-16"); in grapheme_strpos_utf16()
150 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
151 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status ); in grapheme_strpos_utf16()
152 STRPOS_CHECK_STATUS(status, "Error converting input string to UTF-16"); in grapheme_strpos_utf16()
155 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
156 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_strpos_utf16()
157 STRPOS_CHECK_STATUS(status, "Failed to get iterator"); in grapheme_strpos_utf16()
158 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
159 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
160 STRPOS_CHECK_STATUS(status, "Failed to set up iterator"); in grapheme_strpos_utf16()
162 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
163 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
164 STRPOS_CHECK_STATUS(status, "Error creating search object"); in grapheme_strpos_utf16()
168 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
169 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_SECONDARY, &status); in grapheme_strpos_utf16()
170 STRPOS_CHECK_STATUS(status, "Error setting collation strength"); in grapheme_strpos_utf16()
177 status = U_ILLEGAL_ARGUMENT_ERROR; in grapheme_strpos_utf16()
178 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
180 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
181 usearch_setOffset(src, offset_pos, &status); in grapheme_strpos_utf16()
182 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
187 char_pos = usearch_last(src, &status); in grapheme_strpos_utf16()
193 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
195 STRPOS_CHECK_STATUS(status, "Error looking up string"); in grapheme_strpos_utf16()
237 UErrorCode status = U_ZERO_ERROR; in grapheme_split_string() local
241 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status TSRMLS_CC ); in grapheme_split_string()
243 if( U_FAILURE(status) ) { in grapheme_split_string()
247 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
276 UErrorCode status = U_ZERO_ERROR; in grapheme_count_graphemes() local
278 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
377 UBreakIterator* grapheme_get_break_iterator(void *stack_buffer, UErrorCode *status TSRMLS_DC ) in grapheme_get_break_iterator()
389 status); in grapheme_get_break_iterator()
396 return ubrk_safeClone(global_break_iterator, stack_buffer, &buffer_size, status); in grapheme_get_break_iterator()