LeviLamina
Loading...
Searching...
No Matches
Token.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5struct Token {
6public:
7 // Token inner types define
8 enum class Type : int {
9 String = 0,
10 Number = 1,
11 Bool = 2,
12 };
13
14public:
15 // member variables
16 // NOLINTBEGIN
18 union {
21 };
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 Token& operator=(Token const&);
29 Token(Token const&);
30 Token();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCNAPI explicit Token(::std::string const& str);
36
37 MCNAPI bool _parseRandom();
38
39 MCNAPI ::std::string const& getText(::std::string const& defaultValue) const;
40
41 MCNAPI ~Token();
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCNAPI static ::std::vector<::Token> tokenize(::std::string const& str);
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCNAPI void* $ctor(::std::string const& str);
54 // NOLINTEND
55
56public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCNAPI void $dtor();
60 // NOLINTEND
61};
MCAPI ~Token()
MCAPI Token(::std::string const &str)
MCAPI void $dtor()
MCAPI bool _parseRandom()
static MCAPI ::std::vector<::Token > tokenize(::std::string const &str)
MCAPI void * $ctor(::std::string const &str)
MCAPI::std::string const & getText(::std::string const &defaultValue) const
Definition Alias.h:14