Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/places/tests/gtest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 932 B image not shown  

Quelle  test_casing.cpp   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "gtest/gtest.h"
#include "mozilla/intl/UnicodeProperties.h"

// Verify the assertion in SQLFunctions.cpp / nextSearchCandidate that the
// only non-ASCII characters that lower-case to ASCII ones are:
//  * U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE
//  * U+212A KELVIN SIGN
TEST(MatchAutocompleteCasing, CaseAssumption)
{
  for (uint32_t c = 128; c < 0x110000; c++) {
    if (c != 304 && c != 8490) {
      ASSERT_GE(mozilla::intl::UnicodeProperties::ToLower(c), 128U);
    }
  }
}

// Verify the assertion that all ASCII characters lower-case to ASCII.
TEST(MatchAutocompleteCasing, CaseAssumption2)
{
  for (uint32_t c = 0; c < 128; c++) {
    ASSERT_LT(mozilla::intl::UnicodeProperties::ToLower(c), 128U);
  }
}

Messung V0.5 in Prozent
C=89 H=93 G=90

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






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.