Lines Matching refs:status
87 #define STRPOS_CHECK_STATUS(status, error) \ argument
88 if ( U_FAILURE( (status) ) ) { \
89 intl_error_set_code( NULL, (status) ); \
103 UErrorCode status; in grapheme_strpos_utf16() local
111 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
112 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_len, &status ); in grapheme_strpos_utf16()
113 STRPOS_CHECK_STATUS(status, "Error converting input string to UTF-16"); in grapheme_strpos_utf16()
115 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
116 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16()
117 STRPOS_CHECK_STATUS(status, "Error converting needle string to UTF-16"); in grapheme_strpos_utf16()
120 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
121 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
122 STRPOS_CHECK_STATUS(status, "Failed to get iterator"); in grapheme_strpos_utf16()
123 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
124 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
125 STRPOS_CHECK_STATUS(status, "Failed to set up iterator"); in grapheme_strpos_utf16()
138 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
139 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
140 STRPOS_CHECK_STATUS(status, "Error creating search object"); in grapheme_strpos_utf16()
144 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
145 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_SECONDARY, &status); in grapheme_strpos_utf16()
146 STRPOS_CHECK_STATUS(status, "Error setting collation strength"); in grapheme_strpos_utf16()
157 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
158 usearch_setOffset(src, last ? 0 : offset_pos, &status); in grapheme_strpos_utf16()
159 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
165 char_pos = usearch_last(src, &status); in grapheme_strpos_utf16()
174 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
183 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
185 STRPOS_CHECK_STATUS(status, "Error looking up string"); in grapheme_strpos_utf16()
232 UErrorCode status = U_ZERO_ERROR; in grapheme_split_string() local
236 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
238 if( U_FAILURE(status) ) { in grapheme_split_string()
242 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
271 UErrorCode status = U_ZERO_ERROR; in grapheme_count_graphemes() local
273 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
371 UBreakIterator* grapheme_get_break_iterator(void *stack_buffer, UErrorCode *status ) in grapheme_get_break_iterator() argument
381 status); in grapheme_get_break_iterator()
387 return ubrk_clone(global_break_iterator, status); in grapheme_get_break_iterator()
391 return ubrk_safeClone(global_break_iterator, stack_buffer, &buffer_size, status); in grapheme_get_break_iterator()