| Index: base/i18n/break_iterator.cc
|
| diff --git a/base/i18n/break_iterator.cc b/base/i18n/break_iterator.cc
|
| index afa1fd80d89b080a97a0585351b1be0b6daacd71..cd22707520a3001e79183864a507ffc0727afa75 100644
|
| --- a/base/i18n/break_iterator.cc
|
| +++ b/base/i18n/break_iterator.cc
|
| @@ -92,6 +92,12 @@ bool BreakIterator::IsWord() const {
|
| return (break_type_ == BREAK_WORD && status != UBRK_WORD_NONE);
|
| }
|
|
|
| +bool BreakIterator::IsBreak(size_t position) {
|
| + UBool boundary = ubrk_isBoundary(static_cast<UBreakIterator*>(iter_),
|
| + static_cast<int32_t>(position));
|
| + return !!boundary;
|
| +}
|
| +
|
| string16 BreakIterator::GetString() const {
|
| DCHECK(prev_ != npos && pos_ != npos);
|
| return string_.substr(prev_, pos_ - prev_);
|
|
|