ICU 55.1  55.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ubrk.h
Go to the documentation of this file.
1 /*
2 ******************************************************************************
3 * Copyright (C) 1996-2014, International Business Machines Corporation and others.
4 * All Rights Reserved.
5 ******************************************************************************
6 */
7 
8 #ifndef UBRK_H
9 #define UBRK_H
10 
11 #include "unicode/utypes.h"
12 #include "unicode/uloc.h"
13 #include "unicode/utext.h"
14 #include "unicode/localpointer.h"
15 
20 #ifndef UBRK_TYPEDEF_UBREAK_ITERATOR
21 # define UBRK_TYPEDEF_UBREAK_ITERATOR
22 
27 #endif
28 
29 #if !UCONFIG_NO_BREAK_ITERATION
30 
31 #include "unicode/parseerr.h"
32 
87 typedef enum UBreakIteratorType {
91  UBRK_WORD = 1,
93  UBRK_LINE = 2,
96 
97 #ifndef U_HIDE_DEPRECATED_API
98 
107 #endif /* U_HIDE_DEPRECATED_API */
108  UBRK_COUNT = 5
110 
114 #define UBRK_DONE ((int32_t) -1)
115 
116 
125 typedef enum UWordBreak {
148 } UWordBreak;
149 
158 typedef enum ULineBreakTag {
168 } ULineBreakTag;
169 
170 
171 
180 typedef enum USentenceBreakTag {
197 
198 
213 U_STABLE UBreakIterator* U_EXPORT2
215  const char *locale,
216  const UChar *text,
217  int32_t textLength,
218  UErrorCode *status);
219 
235 U_STABLE UBreakIterator* U_EXPORT2
236 ubrk_openRules(const UChar *rules,
237  int32_t rulesLength,
238  const UChar *text,
239  int32_t textLength,
240  UParseError *parseErr,
241  UErrorCode *status);
242 
261 U_STABLE UBreakIterator * U_EXPORT2
263  const UBreakIterator *bi,
264  void *stackBuffer,
265  int32_t *pBufferSize,
266  UErrorCode *status);
267 
268 #ifndef U_HIDE_DEPRECATED_API
269 
274 #define U_BRK_SAFECLONE_BUFFERSIZE 1
275 
276 #endif /* U_HIDE_DEPRECATED_API */
277 
284 U_STABLE void U_EXPORT2
286 
287 #if U_SHOW_CPLUSPLUS_API
288 
290 
301 
303 
304 #endif
305 
314 U_STABLE void U_EXPORT2
316  const UChar* text,
317  int32_t textLength,
318  UErrorCode* status);
319 
320 
338 U_STABLE void U_EXPORT2
340  UText* text,
341  UErrorCode* status);
342 
343 
344 
353 U_STABLE int32_t U_EXPORT2
354 ubrk_current(const UBreakIterator *bi);
355 
365 U_STABLE int32_t U_EXPORT2
367 
377 U_STABLE int32_t U_EXPORT2
379 
387 U_STABLE int32_t U_EXPORT2
389 
399 U_STABLE int32_t U_EXPORT2
401 
411 U_STABLE int32_t U_EXPORT2
413  int32_t offset);
414 
424 U_STABLE int32_t U_EXPORT2
426  int32_t offset);
427 
437 U_STABLE const char* U_EXPORT2
438 ubrk_getAvailable(int32_t index);
439 
448 U_STABLE int32_t U_EXPORT2
449 ubrk_countAvailable(void);
450 
451 
461 U_STABLE UBool U_EXPORT2
462 ubrk_isBoundary(UBreakIterator *bi, int32_t offset);
463 
473 U_STABLE int32_t U_EXPORT2
475 
493 U_STABLE int32_t U_EXPORT2
494 ubrk_getRuleStatusVec(UBreakIterator *bi, int32_t *fillInVec, int32_t capacity, UErrorCode *status);
495 
505 U_STABLE const char* U_EXPORT2
507 
533 U_STABLE void U_EXPORT2
535  UText *text,
536  UErrorCode *status);
537 
538 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */
539 
540 #endif