Lines Matching refs:status

112 #define STRPOS_CHECK_STATUS(status, error) 							\  argument
113 if ( U_FAILURE( (status) ) ) { \
114 intl_error_set_code( NULL, (status) ); \
139 UErrorCode status; in grapheme_strpos_utf16() local
148 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
149 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_len, &status ); in grapheme_strpos_utf16()
150 STRPOS_CHECK_STATUS(status, "Error converting input string to UTF-16"); in grapheme_strpos_utf16()
152 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
153 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16()
154 STRPOS_CHECK_STATUS(status, "Error converting needle string to UTF-16"); in grapheme_strpos_utf16()
157 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
158 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
159 STRPOS_CHECK_STATUS(status, "Failed to get iterator"); in grapheme_strpos_utf16()
160 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
161 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
162 STRPOS_CHECK_STATUS(status, "Failed to set up iterator"); in grapheme_strpos_utf16()
164 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
165 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
166 STRPOS_CHECK_STATUS(status, "Error creating search object"); in grapheme_strpos_utf16()
170 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
171 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_SECONDARY, &status); in grapheme_strpos_utf16()
172 STRPOS_CHECK_STATUS(status, "Error setting collation strength"); in grapheme_strpos_utf16()
179 status = U_ILLEGAL_ARGUMENT_ERROR; in grapheme_strpos_utf16()
180 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
182 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
183 usearch_setOffset(src, offset_pos, &status); in grapheme_strpos_utf16()
184 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
189 char_pos = usearch_last(src, &status); in grapheme_strpos_utf16()
195 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
197 STRPOS_CHECK_STATUS(status, "Error looking up string"); in grapheme_strpos_utf16()
239 UErrorCode status = U_ZERO_ERROR; in grapheme_split_string() local
243 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
245 if( U_FAILURE(status) ) { in grapheme_split_string()
249 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
278 UErrorCode status = U_ZERO_ERROR; in grapheme_count_graphemes() local
280 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
379 UBreakIterator* grapheme_get_break_iterator(void *stack_buffer, UErrorCode *status ) in grapheme_get_break_iterator() argument
391 status); in grapheme_get_break_iterator()
398 return ubrk_safeClone(global_break_iterator, stack_buffer, &buffer_size, status); in grapheme_get_break_iterator()