blob: 23318f08a7a717fc23ab3e150db81b9c372d5636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// file : libbutl/manifest-types.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#pragma once
#include <string>
#include <cstdint> // uint64_t
#include <libbutl/export.hxx>
namespace butl
{
class manifest_name_value
{
public:
std::string name;
std::string value;
std::uint64_t name_line;
std::uint64_t name_column;
std::uint64_t value_line;
std::uint64_t value_column;
std::uint64_t start_pos; // Position of name/value-starting character.
std::uint64_t colon_pos; // Position of name/value-separating ':'.
std::uint64_t end_pos; // Position of name/value-terminating '\n' or EOF.
bool
empty () const {return name.empty () && value.empty ();}
};
}
|