Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  NumberPart.h   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/. */

#ifndef intl_components_NumberPart_h_
#define intl_components_NumberPart_h_

#include <cstddef>
#include <cstdint>

#include "mozilla/Vector.h"

namespace mozilla::intl {

enum class NumberPartType : int16_t {
  ApproximatelySign,
  Compact,
  Currency,
  Decimal,
  ExponentInteger,
  ExponentMinusSign,
  ExponentSeparator,
  Fraction,
  Group,
  Infinity,
  Integer,
  Literal,
  MinusSign,
  Nan,
  Percent,
  PlusSign,
  Unit,
};

enum class NumberPartSource : int16_t { Shared, Start, End };

// Because parts fully partition the formatted string, we only track the
// index of the end of each part -- the beginning is implicitly the last
// part's end.
struct NumberPart {
  NumberPartType type;
  NumberPartSource source;
  size_t endIndex;

  bool operator==(const NumberPart& rhs) const {
    return type == rhs.type && source == rhs.source && endIndex == rhs.endIndex;
  }
  bool operator!=(const NumberPart& rhs) const { return !(*this == rhs); }
};

using NumberPartVector = mozilla::Vector<NumberPart, 8>;

}  // namespace mozilla::intl
#endif

Messung V0.5
C=91 H=100 G=95

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge