// This function searches a complete word starting from |offset| in wb[fragN]. // If it reaches the end of wb[fragN], and there is no word break opportunity // between wb[fragN] and wb[fragN+1], it will continue the search in wb[fragN+1] // until a word break. void java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 constchar* expected) {
uint32_t numOfFragment = sizeof(wb) / sizeof(char*);
NS_ConvertASCIItoUTF16 fragText(wb[fragN]);
mozilla::intl::WordRange res = WordBreaker::FindWord(fragText, offset);
if ((uint32_t)fragText.Length() <= res.mEnd) { // if we hit the end of the fragment for (uint32_t p = fragN + 1; p < numOfFragment; p++) {
NS_ConvertASCIItoUTF16 nextFragText(wb[p]); if (nextFragText.IsEmpty()) { // If nextFragText is empty, there's no new possible word break // opportunity between previous word and nextFragText. continue;
}
mozilla::intl::WordRange r = WordBreaker::FindWord(nextFragText, 0);
// Test for StopAtPunctuation option.
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 51
{
nsString fragText(u"one.two");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.