Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
1.1 kB · 50 lines
C++
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#ifndef OPENMW_COMPONENTS_MISC_MESSAGEFORMATPARSER_H#define OPENMW_COMPONENTS_MISC_MESSAGEFORMATPARSER_H
#include <string_view>
namespace Misc{ class MessageFormatParser { protected: enum Placeholder { StringPlaceholder, IntegerPlaceholder, FloatPlaceholder };
enum Flags { None = 0, PositiveSpace = 1, PositiveSign = 2, AlignLeft = 4, PrependZero = 8, AlternateForm = 16 };
enum class Notation : char { Fixed = 'f', ScientificUpper = 'E', ScientificLower = 'e', ShortestUpper = 'G', ShortestLower = 'g', HexUpper = 'A', HexLower = 'a' };
virtual void visitedPlaceholder(Placeholder placeholder, int flags, int width, int precision, Notation notation) = 0; virtual void visitedCharacter(char c) = 0;
public: virtual ~MessageFormatParser();
virtual void process(std::string_view message); };}
#endif