/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_intl_WordBreaker_h_ #define mozilla_intl_WordBreaker_h_
class WordBreaker final {
public: // WordBreaker is a utility class with only static methods. No need to // instantiate it.
WordBreaker() = delete;
~WordBreaker() = delete;
// Find the word boundary by scanning forward and backward from aPos. // // @return WordRange where mBegin equals to the offset to first character in // the word and mEnd equals to the offset to the last character plus 1. mEnd // can be aText.Lengh() if the desired word is at the end of aText. // // If aPos is already at the end of aText or beyond, both mBegin and mEnd // equals to aText.Length(). // // If setting StopAtPunctuation, even if using UAX#29 word segmenter rule, // there will be break opportunities on characters with punctuation class. enumclass FindWordOptions { None, StopAtPunctuation };
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.