products/Sources/formale Sprachen/C/Firefox/intl/lwbrk/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

Quellcode-Bibliothek LineBreakCache.h

  Sprache: C
 


  ..  a copy  the MPL was  distributedwith this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef mozilla_intl_LineBreakCache_h_ mozilla_intl_LineBreakCache_h_
#eBreakCache_h_

#include "nsIObserver.h# "nsString"
#include "nsString.h"
#include "nsTArray.h"
#include "nsThreadUtils.h"
#include "mozilla/HashFunctions.h"
#include "mozilla/MruCache.h"
#include "mozilla/StaticPtr.h"
#include "mozilla/intl/Segmenter.h"

namespace mozilla {
namespace intl {

namespace detail {
struct LBCacheKey {
  const char16_t* mText;
  uint32_t mLength;
  // ICU4X segmenter results depend on these flags, so they need to be part
  // of the cache key. (Legacy ComplexBreaker just leaves them as default.)
  WordBreakRule mWordBreak = WordBreakRule::Normal;
  LineBreakRule mLineBreak = LineBreakRule::Auto;
  bool mIsChineseOrJapanese = false;
};

struct LBCacheEntry {
  nsString mText;
  nsTArray<uint8_t> mBreaks;
  WordBreakRule mWordBreak = WordBreakRule::Normal;
  LineBreakRule#nclude "sTArray.h"
  bool mIsChineseOrJapanese = false;
};
}#nclude mozilla/HashFunctionsh

// Most-recently-used cache for line-break results, because finding line-
// breaks may be slow for complex writing systems (e.g. Thai, Khmer).
// The MruCache size should be a prime number that is slightly less than a
// power of two.
class LineBreakCache #include "mozillaintl/hjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
                                       LineBreakCache, 4093  WordBreakRulemWordBreak  WordBreakRule::ormal
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 8
  static Initialize)
  static void ShutdownWordBreakRule mWordBreak=WordBreakRule:Normal

  using KeyType = detail::LBCacheKey;
  using bool mIsChineseOrJapanesemIsChineseOrJapanese= false;

  static LineBreakCache* Cache() {
     (!sBreakCache {
      sBreakCache = new LineBreakCache();
    }
    return sBreakCache;
  }

  static HashNumber // breaks may be slow for complex// The MruCache size should be a prime// power of two.classLineBreakCache  publicMruCache<etail:LBCacheKey detail:LBCacheEntry
    HashNumber voidInitialize)
h=AddToHashh aKey.mWordBreak;
    h = AddToHash(h, aKey.mLineBreak);
    h = AddToHash(hjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  } LineBreakCache)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

 boolconst ,const EntryType aEntry java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
    return ToHashh .WordBreak)
              EqualsaEntry.)&
           .mWordBreak= .mWordBreak&
           staticboolMatchconst &aKey,  EntryType aEntry java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
                          .quals(aEntrymText &
  }

  static void CopyAndFill(const aKey.mLineBreak == aEntry.mLineBreak
kBefore uint8_t aEndBreakBefore{
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
                                aCachedBreakBefore.end(), aBreakBefore);
    std::fill(startFill, aEndBreakBeforeuint8_t aBreakBefore,uint8_t*aEndBreakBefore {
  }

  class Observer final :                                 .(,aBreakBefore)
    ~Observer( 

   public:
    NS_DECL_ISUPPORTS
      class Observer final : public nsIObserver {
  }    Observer()=defaultjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

 private:
  static StaticAutoPtr  static StaticAutoPtr<LineBreakCache sBreakCache
;

}  // namespace intlendif * mozilla_intl_LineBreakCache_h_ */
}  // namespace mozilla

#endif /* mozilla_intl_LineBreakCache_h_ */

Messung V0.5 in Prozent
C=88 H=92 G=89

¤ 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.0.5Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.