Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: source/common/unicode/brkiter.h

Issue 23480090: Add BreakIterator::getRuleStatus (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu46.git@master
Patch Set: Proposed patch v3 Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/common/brkiter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************** 2 ********************************************************************************
3 * Copyright (C) 1997-2010, International Business Machines 3 * Copyright (C) 1997-2010, International Business Machines
4 * Corporation and others. All Rights Reserved. 4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************** 5 ********************************************************************************
6 * 6 *
7 * File brkiter.h 7 * File brkiter.h
8 * 8 *
9 * Modification History: 9 * Modification History:
10 * 10 *
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 * @param n which boundary to return. A value of 0 277 * @param n which boundary to return. A value of 0
278 * does nothing. Negative values move to previous boundaries 278 * does nothing. Negative values move to previous boundaries
279 * and positive values move to later boundaries. 279 * and positive values move to later boundaries.
280 * @return The index of the nth boundary from the current position, or 280 * @return The index of the nth boundary from the current position, or
281 * DONE if there are fewer than |n| boundaries in the specfied direction. 281 * DONE if there are fewer than |n| boundaries in the specfied direction.
282 * @stable ICU 2.0 282 * @stable ICU 2.0
283 */ 283 */
284 virtual int32_t next(int32_t n) = 0; 284 virtual int32_t next(int32_t n) = 0;
285 285
286 /** 286 /**
287 * For RuleBasedBreakIterators, return the status tag from the
288 * break rule that determined the most recently
289 * returned break position.
290 * <p>
291 * For break iterator types that do not support a rule status,
292 * a default value of 0 is returned.
293 * <p>
294 * @return the status from the break rule that determined the most recently
295 * returned break position.
296 * @see RuleBaseBreakIterator::getRuleStatus()
297 * @see UWordBreak
298 */
299 virtual int32_t getRuleStatus() const;
300
301 /**
287 * Create BreakIterator for word-breaks using the given locale. 302 * Create BreakIterator for word-breaks using the given locale.
288 * Returns an instance of a BreakIterator implementing word breaks. 303 * Returns an instance of a BreakIterator implementing word breaks.
289 * WordBreak is useful for word selection (ex. double click) 304 * WordBreak is useful for word selection (ex. double click)
290 * @param where the locale. 305 * @param where the locale.
291 * @param status the error code 306 * @param status the error code
292 * @return A BreakIterator for word-breaks. The UErrorCode& status 307 * @return A BreakIterator for word-breaks. The UErrorCode& status
293 * parameter is used to return status information to the user. 308 * parameter is used to return status information to the user.
294 * To check whether the construction succeeded or not, you should check 309 * To check whether the construction succeeded or not, you should check
295 * the value of U_SUCCESS(err). If you wish more detailed information, you 310 * the value of U_SUCCESS(err). If you wish more detailed information, you
296 * can check for informational error results which still indicate success. 311 * can check for informational error results which still indicate success.
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 return fBufferClone; 563 return fBufferClone;
549 } 564 }
550 565
551 U_NAMESPACE_END 566 U_NAMESPACE_END
552 567
553 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ 568 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */
554 569
555 #endif // _BRKITER 570 #endif // _BRKITER
556 //eof 571 //eof
557 572
OLDNEW
« no previous file with comments | « source/common/brkiter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698