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
147 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
148 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_len, &status ); in grapheme_strpos_utf16()
149 STRPOS_CHECK_STATUS(status, "Error converting input string to UTF-16"); in grapheme_strpos_utf16()
151 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
152 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16()
153 STRPOS_CHECK_STATUS(status, "Error converting needle string to UTF-16"); in grapheme_strpos_utf16()
156 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
157 bi = grapheme_get_break_iterator(u_break_iterator_buffer, &status ); in grapheme_strpos_utf16()
158 STRPOS_CHECK_STATUS(status, "Failed to get iterator"); in grapheme_strpos_utf16()
159 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
160 ubrk_setText(bi, uhaystack, uhaystack_len, &status); in grapheme_strpos_utf16()
161 STRPOS_CHECK_STATUS(status, "Failed to set up iterator"); in grapheme_strpos_utf16()
163 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
164 src = usearch_open(uneedle, uneedle_len, uhaystack, uhaystack_len, "", bi, &status); in grapheme_strpos_utf16()
165 STRPOS_CHECK_STATUS(status, "Error creating search object"); in grapheme_strpos_utf16()
169 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
170 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_SECONDARY, &status); in grapheme_strpos_utf16()
171 STRPOS_CHECK_STATUS(status, "Error setting collation strength"); in grapheme_strpos_utf16()
178 status = U_ILLEGAL_ARGUMENT_ERROR; in grapheme_strpos_utf16()
179 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
181 status = U_ZERO_ERROR; in grapheme_strpos_utf16()
182 usearch_setOffset(src, offset_pos, &status); in grapheme_strpos_utf16()
183 STRPOS_CHECK_STATUS(status, "Invalid search offset"); in grapheme_strpos_utf16()
188 char_pos = usearch_last(src, &status); in grapheme_strpos_utf16()
194 char_pos = usearch_next(src, &status); in grapheme_strpos_utf16()
196 STRPOS_CHECK_STATUS(status, "Error looking up string"); in grapheme_strpos_utf16()
238 UErrorCode status = U_ZERO_ERROR; in grapheme_split_string() local
242 bi = grapheme_get_break_iterator((void*)u_break_iterator_buffer, &status ); in grapheme_split_string()
244 if( U_FAILURE(status) ) { in grapheme_split_string()
248 ubrk_setText(bi, text, text_length, &status); in grapheme_split_string()
277 UErrorCode status = U_ZERO_ERROR; in grapheme_count_graphemes() local
279 ubrk_setText(bi, string, string_len, &status); in grapheme_count_graphemes()
378 UBreakIterator* grapheme_get_break_iterator(void *stack_buffer, UErrorCode *status ) in grapheme_get_break_iterator() argument
390 status); in grapheme_get_break_iterator()
397 return ubrk_safeClone(global_break_iterator, stack_buffer, &buffer_size, status); in grapheme_get_break_iterator()